Architecture
One engine. On your computer or in the cloud.
The Wasify AI desktop app and web app run the same engine. What differs is where each one keeps its data and where the models run. This page shows how it fits together, and what's built today versus still ahead.
- Built One shared engine
- Built Kubernetes chart
- Planned OpenTofu infrastructure as code
The big picture
Same engine, two ways to run it
Switch between the desktop path and the web path to see which parts each one uses.
Wasify AI architecture: one shared engine that runs as a desktop profile on your computer or as a web profile on Kubernetes in the cloud.
Where you use it
Desktop app Built
Mac first. Runs on your computer.
Web app In progress
In a browser. Cloud first.
Shared, identical in both
Interface Built
The same screens: React and Next.js.
The Wasify AI engine Built
FastAPI, LangGraph and every product, from chat to music. One codebase, two deployment profiles.
Model gateway Built
Products ask for a capability, never for a specific model, so swapping a model is configuration.
Different per profile
Desktop profile Built
SQLite, an in-process queue and local files. Listens on this computer only.
Web profile Built
Postgres and pgvector, Redis, object storage and media workers.
Models on your Mac Built
Local language, image, video, speech and music models.
Models in the cloud In progress
vLLM and ComfyUI on GPUs, or hosted model APIs.
Web only: how it stays up
Kubernetes Built on a test cluster
Helm chart, Gateway API, KEDA on queue depth, GPU Operator and Argo CD. k3s, or a managed cluster on AWS, Google Cloud or Azure.
Monitoring Built
Prometheus, Grafana, Loki and alerts.
OpenTofu Planned
Infrastructure as code, one module per target.
- Built works and is tested
- In progress being built now
- Planned designed, not yet built
One engine, two profiles
The engine doesn't know where it's running
Products never ask which profile they're in. The profile is just the set of adapters behind interfaces the engine already had.
| Desktop | Web (cloud) | |
|---|---|---|
| Records | A SQLite file | Postgres |
| Run events and queue | In the engine's own process | Redis, with a separate media worker |
| Files | A folder on your computer, opened through signed links | S3-compatible object storage (AWS, Google Cloud or Azure) |
| Search | Vectors kept in the local database | pgvector in Postgres |
| Sign-in | A token the app makes at each launch | Sign-in through the web app |
| Network | Listens on this computer only | Behind the cluster's gateway |
| Models | Run on your computer | GPU nodes, or hosted model APIs |
Built to keep working
Designed so one failure doesn't lose your work
The web profile is built around a few simple rules, so that any piece can be replaced or restarted.
State lives in the database
Any copy of the API can pick up any run, so no session is tied to one machine.
Heavy work is queued
GPU jobs are never awaited inline. The run resumes when the job finishes.
Streams can resume
Run events carry sequence numbers, so a dropped connection can pick up where it left off.
Outputs are links
Pictures, video and audio are passed as links, never pushed through the stream.
Scale on demand
Workers scale on queue depth, and GPU pools are meant to scale to zero when idle.
How it's deployed
Kubernetes everywhere, with the same images
One set of container images and Helm charts runs in every environment. What changes between them is configuration, never code.
Development Built
A MacBook
Containers for the services, with the models running natively on the Apple GPU.
Staging In progress
A home lab
k3s with one NVIDIA GPU, reached privately, with Argo CD syncing from the main branch.
Cloud Planned
Google Cloud first
A managed cluster with GPU nodes. AWS and Azure stay deployable, so no single cloud is locked in.
- Helm
- Argo CD
- Gateway API
- KEDA
- NVIDIA GPU Operator
- cert-manager
- External Secrets
- AWS
- Google Cloud
- Azure
Infrastructure as code
OpenTofu, one module per target
Decided and designed. The modules themselves are next.
The plan Planned
Each target (a home lab, Google Cloud, AWS and Azure) gets one OpenTofu module, and every module exposes the same outputs: a cluster, CPU and GPU node pools, Postgres, Redis, a storage bucket and DNS. Everything above that layer is identical everywhere.
Infrastructure
OpenTofu modules per target, with identical outputs
Planned
Cluster add-ons
Gateway API, cert-manager, ExternalDNS, External Secrets, GPU Operator, KEDA, Argo CD
Planned
The platform
The same Helm charts and images, with values per environment
Built
Security by design
Private by default, careful by design
These are the rules the engine is built around.
Listens on this computer only
On desktop, the engine binds to your computer's loopback address. Every route except a health check and signed file links needs a token made fresh at each launch.
Signed, time-limited file links
A link opens one file, only against that launch of the engine.
Asks before it acts
Anything the assistant wants to make or change waits for your go-ahead, and text it read can't talk it into acting.
No static cloud keys
In the cloud, each workload gets its own identity from the provider instead of a key stored in a pod.
How it's checked
Checked, and written down in public
Every architectural decision is recorded, and the code and deployment configuration are open to read.
Automated checks on every change
Linting, type checks, tests, a production build and Helm chart linting all run before code is merged.
Real-browser layout tests
The shared screens are tested in a browser, on both the desktop window and the web app.
A local cluster for end-to-end testing
The whole stack can be brought up on a local Kubernetes cluster and exercised without touching the cloud.
Alerts that can be drilled
Monitoring and alerting can be fire-drilled on demand, so you find out it works before you need it.
Questions
Good questions
Does my data leave my computer?
On desktop, the models run on your computer and your prompts, documents and creations stay there. Web search is off until you allow it, and if anything ever has to leave, the app says so first.
Is the web app live?
Not yet. The desktop app comes first, on Mac. The web edition runs the same engine and is being built out; the roadmap shows where each part stands.
Which clouds will it run on?
It is designed to be portable across AWS, Google Cloud and Azure, with one deployed at a time. Google Cloud comes first.
Can my organisation run it privately?
That is the design goal: the same containers on your own hardware or in your own cloud account, so your data stays inside your network. Get in touch to talk it through.
Want to talk about a private deployment? Get in touch.
- Built works and is tested
- In progress being built now
- Planned designed, not yet built
Be first to try Wasify AI.
Coming first to Mac. Join the early-access list and we'll email you when it's ready.