Technology

Serverless, tested and careful with AI.

Our products share one engineering approach: small, well-tested services on managed cloud infrastructure, with AI used only where it improves the result and never allowed to invent facts.

Architecture

Five layers, used across our products.

  1. 01

    Customer applications

    Responsive web apps built with React and TypeScript, designed for phones first and tested for accessibility with automated browser checks.

  2. 02

    APIs and business logic

    Server-side APIs in Hono (TypeScript) and FastAPI (Python). Every request is validated against a schema, every account’s data is checked for ownership, and prices are always calculated on the server.

  3. 03

    AI integration

    AI is used where it helps and is always optional. Each product calls AI through its own adapter, with cost limits, timeouts and a non-AI fallback, and AI output is checked before it is shown. Not every product uses every model.

  4. 04

    Hosting and data

    Serverless hosting on Cloudflare Workers and Google Cloud Run, with Cloudflare D1, Cloud SQL for PostgreSQL and Firestore for data, and private object storage for files.

  5. 05

    Delivery and operations

    Continuous integration, unit, integration and browser tests, staged releases with rollback, scheduled maintenance jobs and documented production audits.

Per-product stacks

What each product actually runs on.

Taken from each product’s code and documentation. Items still under development or planned are marked as such.

ImprintSites AI

Public preview
  • HostingCloudflare Workers with static assets
  • APIHono with Zod validation, TypeScript (strict)
  • FrontendReact 19 single-page app
  • DataCloudflare D1 (SQLite)
  • AIWorkers AI for wording and design refinement, with a rule-based fallback
  • TestingVitest unit and integration suites, Playwright with axe-core
  • Backend migrationPython (Django) service on PostgreSQLUnder development
  • Custom domainsCustomer-owned domains for published sitesPlanned

PaperAid

Private beta
  • HostingFirebase Hosting
  • APIPython FastAPI on Google Cloud Run
  • DataCloud SQL for PostgreSQL with pgvector (Pro); Firestore (formatting service)
  • Background jobsGoogle Cloud Tasks
  • FilesPrivate Google Cloud Storage buckets
  • IdentityFirebase Authentication, tokens verified on the server
  • AIProvider adapters, including Gemini on Vertex AI; enabled for a pilot group onlyUnder development
  • DeliveryGitHub Actions CI and a gated release script

Opportunity Radar

Public preview
  • HostingCloudflare Workers with static assets
  • APIHono, with shared Zod schemas
  • FrontendReact with Vite and Tailwind CSS
  • DataCloudflare D1; Workers KV for private documents
  • SchedulingCron Triggers for discovery, alerts and reminders
  • PaymentsPesapal adapter with server-side verificationUnder development
  • AIAI-assisted CV parsing and writing behind a provider interfacePlanned
  • Planning and creativeGuided web app with AI-assisted planning and creative draftsUnder development
  • Ad platformsGoogle Ads and Meta integrations, authorised per customerPlanned

Google Cloud

How we use Google Cloud.

PaperAid runs on Google Cloud today. As products grow, we plan to use more managed Google Cloud services for AI, background processing and monitoring.

Google Cloud services and how Locus Analytics uses them
ServiceUseState
Cloud RunRuns the PaperAid APIs and background workers.In use
Cloud TasksQueues long-running PaperAid jobs such as PDF processing, one stage per task.In use
Cloud SQL (PostgreSQL)PaperAid Pro database, with pgvector for search.In use
Firestore and Cloud StorageJob records and private storage for uploaded papers.In use
Firebase Hosting and AuthenticationDelivers the PaperAid web apps and handles sign-in.In use
Secret ManagerHolds API keys and credentials for production services.In use
Vertex AI (Gemini)Provider adapter implemented in PaperAid; wider use across products is being evaluated.Under development
Cloud Monitoring and LoggingShared observability as more products move onto Google Cloud.Planned

Engineering principles

Rules every product follows.

Never invent outputs

Products report “not available” or “partial” rather than producing placeholder or fabricated results.

Explicit approval for external actions

Publishing, payments and anything sent on a user’s behalf need a deliberate user action.

Isolate sensitive information

Secrets live in managed secret stores, never in code or the browser. Uploads are private to their owner.

Human-readable errors

When something fails, people are told what happened and what they can do next.

Security and privacy

Practical safeguards.

Examples from our products’ public code and documentation:

  • Every account-scoped request is checked for ownership on the server; requests for another account’s data are refused.
  • Passwords are hashed, sessions use secure HTTP-only cookies, and forms are protected against cross-site request forgery.
  • Uploaded files are checked by content, not by name, and kept in private storage.
  • Published customer websites run with a strict content security policy and no user-supplied scripts.
  • Payment webhooks are signature-verified and processed once, and payment status is confirmed with the provider before anything is unlocked.
  • Each product has documented known limitations and has been through recorded audits, with findings fixed and tested.

We do not hold formal security certifications such as ISO 27001 or SOC 2, and we do not claim compliance with specific regulations. The safeguards above are described in each product’s public documentation.

Read the code on GitHub (opens in a new tab)