Every app is a full-stack project. The platform handles the rest.
An app is a Git repository plus a manifest. Turn on the capabilities you need in the manifest, and the platform takes care of builds, releases, databases, auth, scheduling, secrets and notifications. The platform's Agent uses the same CLI you do: anything you can do in the UI, you can do from the command line.
One manifest declares everything the app needs
Capabilities, RPC services, routes and widgets all live in manifest.ts, and TypeScript catches a bad config before you deploy. The frontend, backend and widgets sit in conventional folders.
Native frontend
@hatch/uiThe default for new apps. Screens are composed from a closed component catalog, adapt to phone, tablet, desktop and web, and follow the user's theme and accent color, with no redeploy to retheme.
React frontend
runtime: 'web'When you need a fully custom page, write a regular React frontend that runs in a same-origin Hatch page.
Backend
deno serveA Fetch handler on Deno. APIs are defined in proto and exposed over Connect RPC, with typed code generated by buf. Start it on demand or keep it running.
Widgets
widgets/*.tsxReact components on the dashboard grid, 1 to 12 columns wide. They respond to size changes and hook into the dashboard's refresh button and auto-refresh.
Outbound network
backend.networkEvery backend declares its network access. New apps can't reach the internet by default; external services must be listed in the declaration.
App icons
hatch app iconWithout an icon, an app shows a letter tile. The Agent can design one with a configured image model, or you can upload a file.
export default defineAppManifest({ id: __APP_ID__, name: __APP_NAME__, compatibilityVersion: 2, capabilities: { frontend: true, widgets: true, backend: true, dataTable: true, database: false, storage: false, cron: false, webhook: false, kv: false, }, backendMode: 'serverless', rpc: { proto: 'proto/service.proto', service: 'app.v1.CounterService' }, backend: { entry: 'backend/main.ts', runtime: 'deno-serve', network: [] }, app: { entry: 'app/main.tsx', runtime: 'native', routes: [{ path: '/' }] }, widgets: [{ id: 'counter', entry: 'widgets/counter.tsx', defaultSize: { w: 4, h: 3 } }], });
Five kinds of storage, picked by need
From managed data tables that need no backend to full Postgres. Every store is isolated per app and can be inspected and edited from the CLI.
Managed data tables
dataTableDeclare fields to get typed CRUD and live queries. Schema changes migrate forward automatically, and no backend is required.
Postgres database
databaseOne database per app, reached through DATABASE_URL. Good for SQL, joins, aggregates, transactions and ORMs.
Key-value store
kvFor small config, tokens and counters. Values marked secret are encrypted and always masked in the UI.
File storage
STORAGE_DIRA private directory only the backend can reach, with no direct browser access. Files survive restarts, deploys and rollbacks, and are deleted with the app.
Static assets
backend/assets/Read-only files bundled with each deploy; the path is injected as HATCH_ASSETS_DIR.
Data from the command line
app db · kv · data-tableQuery the database, read and write keys, inspect and edit data tables: each has a command with structured JSON output.
hatch app data-table inspect <id> --table records --json hatch app db query <id> --file ./query.sql --json hatch app kv set <id> <key> --file ./value.txt --secret --json
Schedules, webhooks and background tasks
Let apps work while nobody has them open: run on a schedule, receive external events, and move long work to the background with a complete record.
Background tasks
tasksMark a backend RPC method as a task and the platform generates a run form from its request message. Run it by hand, or trigger it from a schedule, a webhook or the app itself.
Every run is recorded
hatch app taskEach run gets its own backend instance and ends when cancelled or after 5 minutes. Inputs, outputs, steps and logs are kept. Concurrency is configurable (1–32, default 4); extra runs queue.
Scheduled calls
cronCall a backend method on a cron expression. Attach new scheduled work to a task to get inputs, step records and an isolated instance.
Webhook
/api/app/<id>/hookEach app can have its own receiving URL. The platform strips sensitive headers such as auth and cookies; the app verifies the sender with a dedicated header or a signature.
capabilities: { backend: true, tasks: true },
backendMode: 'serverless',
rpc: { proto: 'proto/service.proto', service: 'app.v1.DigestService' },
tasks: {
concurrency: 4, // optional: runs at once across the App (1-32, default 4)
definitions: [
{
name: 'digest', // lowercase letters, digits, hyphens; not "runs"
method: 'RunDigest', // unary method on rpc.service
title: 'Star digest', // optional, shown in the UI
description: 'Collects a digest for one repository.', // optional
concurrency: 1, // optional: this task's own cap, at most tasks.concurrency
cron: [
{ name: 'daily', schedule: '0 9 * * *', input: { repo: 'denoland/deno' } },
],
webhook: true, // optional: expose /api/app/<id>/tasks/<name>/run
},
],
},Apps call models without ever holding a key
Apps declare roles in the manifest, such as summarize, and the user picks the model for each role. Provider API keys stay inside the platform; the app backend calls through @hatch/app/ai.
Chat models
kind: 'chat'Streaming, tool calls and image input. A role can declare needs for tools, vision or reasoning, and you're warned when the chosen model lacks one.
Image generation
kind: 'image'Declare an image role to generate images. The platform can host several image models, and the Agent uses them to design app icons.
Multiple providers
hatch providerOpenAI Responses, OpenAI Chat Completions–compatible APIs and Anthropic Messages, with a searchable model catalog.
Clear boundaries
hatch app aiApps handle outside input, so they can't start the platform Agent, and a prompt injection can't spread to the whole platform. Tool loops use the app's own functions. Every AI call an app makes is visible.
{
"capabilities": { "backend": true, "ai": true },
"backend": {
"entry": "backend/main.ts",
"runtime": "deno-serve",
"network": []
},
"ai": {
"roles": [
{
"name": "summarize",
"kind": "chat",
"description": "Summarizes a saved article into three bullet points."
},
{
"name": "assistant",
"kind": "chat",
"description": "Answers questions about the user's tasks and edits them with tools.",
"needs": ["tools"]
},
{
"name": "cover",
"kind": "image",
"description": "Draws a cover image for a recipe."
}
]
}
}Apps call each other with declared permissions
The caller lists in its manifest's appAccess exactly what it uses from the target app, and the target needs no changes. Requests go through the platform, which checks each grant.
What can be granted
appAccessRPC methods (one, Service/* or all), read or write on data tables, specific tasks, and webhook paths.
Checked at deploy
hatch app getA deploy fails if a target app is missing or archived. Whether a target still offers a capability is checked on every call and shown on the manage page and in the CLI.
Every notification goes where it should
Apps, external systems and the Agent send notifications with the same fields, and users decide who gets what with groups and routing rules. The CLI and the platform share one set of validation rules: whatever the CLI rejects, the platform rejects too.
Three formats
text · markdown · cardPlain text, Markdown, or a card built from @hatch/ui/card components, plus a one-line summary for places that only show plain text, like push banners.
Replies
replyNotifications can carry a reply form, and cards can hold questions and buttons. Answers are routed to the app or to an Agent conversation.
Senders
notify()The App SDK's notify and updateNotification, hatch notification send, and external systems through a Channel's HTTP endpoint. Sent notifications can be updated or withdrawn.
Destinations
device · webhook · appSigned-in iPhones, webhooks with a signing secret, or apps that declare they receive notifications. Device groups can add newly signed-in phones automatically.
Every change is a version you can roll back
hatch app deploy pushes the current commit to the platform's master, then creates a deployment for it. Builds run on the Builder or on your machine; the platform only verifies the build package before releasing it and never runs code from it.
Two ways to build
--localThe platform's dedicated Builder by default; without one, or while it's offline, add --local to build from your checkout and upload. Build logs stream live.
Versions & rollback
hatch app rollbackEvery deploy records release notes and build logs. Go back to any earlier version from the manage page or the CLI, even between native and web runtimes.
Signed native packages
hatch app release-keyNative app packages are signed with the instance's release key, and clients verify them. Keys can be rotated and revoked.
Import existing apps
importing-appsHand the Agent a source ZIP from another environment: it runs a static security review, then imports it as a new app.
Anything in the UI, you can do from the CLI
Every platform capability has a hatch command, backed by a public Connect RPC API (/api/rpc) that calls the same domain services as the web UI. The platform Agent drives the platform only through the CLI, so the CLI is never weaker than the UI.
Built for scripts and AI
--jsonNever prompts. --json prints complete structures, and failures print {ok:false,error:{code,message}} with stable exit codes. Destructive operations need an explicit flag.
Sign-in & credentials
hatch auth loginBrowser device login, API keys and multiple profiles. Inside an Agent run it uses that run's credentials automatically, with no login.
Paginated lists
--limit --cursorList commands page through results and print the next cursor; requests support timeouts and cancellation.
Works offline
hatch helpEvery command documents its full usage and side effects, and help works offline.
appCreate, sync, deploy and operate appsapp deploymentsList, follow and cancel deployments; read logsapp taskRun and inspect background tasksapp invokeCall a deployed backend or webhookapp docsRead an app's RPC reference and public docsapp kv / db / data-tableRead and write app dataprovider / modelProviders, models and the model catalogdashboard / pinDashboards, widgets and pinsnotificationSend, view and route notificationsthemeThemes and the shared theme libraryimageGenerate imagesserverPlatform and Builder statushatch auth login --url https://hatch.example.com --profile personal echo '{"slug":"notes","name":"Notes"}' | hatch app create --file - --directory apps/notes --json hatch app deploy --directory apps/notes --message 'Add tags' --json hatch app invoke backend notes app.v1.TodoService/ListTodos --json hatch app rollback <id> --version 3
One design system across every entry point
The web, macOS and iPhone clients share one set of design tokens, and so do generated native apps, so your app looks like part of Hatch.
Web desktop
DeskA desktop in the browser: windows, Dock, dashboard, search and Agent chat.
macOS client
Tauri 2Sessions live in the Keychain and sign-in happens in your default browser, with hatch:// deep links and native menu shortcuts.
iPhone client
ExpoAn app library, chat, attachments and run controls built from native components, plus push notifications.
Themes are data
hatch themeNine colors, a corner radius and fonts make a theme, with text contrast checked on save. desk and desk-dark are built in, and custom themes are shared with everyone.
Sign-in & sessions
passkeySign in with a password or a passkey. The account page lists every active session and can sign out the others.
Tailscale
Settings → TailscaleConnect Hatch to your tailnet from Settings, with interactive login or an auth key.
One Docker Compose file runs it all
The platform, the Agent Runner and your data all live on your machine. Apps, their databases and files are kept in Docker volumes; to upgrade, run docker compose up -d again.
Public URL
APP_URLThe public origin for reaching Hatch (scheme, host and optional port). Behind a domain or reverse proxy, use the external address.
Agent Runner
HATCH_RUNNER_IDThe Agent runs in a separate Runner with a persistent workspace. Each Runner ID maps to one workspace volume; on Kubernetes, use a StatefulSet's stable identity.
Web search
TAVILY_API_KEYThe Agent prefers the model provider's built-in search and falls back to Tavily; reading pages always uses Tavily. You can bring your own Tavily account.
License
ACL v1.0Source-available: run and modify it for yourself, but don't redistribute it or offer it as a hosted service. Each release converts to Apache 2.0 four years after it ships.