Skip to content
whisk
FeaturesExamplesGuidesDocsPricingStatus
Sign inStart free
whisk

Websites, shops, apps, portals and tools, built with AI. Run your own.

ProductFeaturesExamplesPricingUsage allowancesStatus
LearnDocsGuidesComparisonsLearnResearchSkill
CompanyAboutContactSecurity
LegalTermsAcceptable usePrivacyData processingTakedown
System statusPrices in US dollars.

Docs

  • Getting started
  • The rules
  • Manifest
  • Headers
  • Environment
  • Errors
  • Doctor rules
  • CLI reference

Files

  • SKILL.md
  • whisk.schema.json
  • graph.schema.json
  • webhook-presets.yaml
  1. Docs
  2. Getting started

Getting started

This is what your coding agent reads before it builds on Whisk. You don't need to read it yourself: give your agent whisk.run/skill and it does the rest. It's here so you can see exactly what it's told.

From SKILL.md, the same document your agent reads.

  1. Quick start
  2. What Whisk is
  3. The rules
  4. Getting an app live
  5. Identity
  6. Database
  7. Secrets
  8. Jobs and workflows
  9. Webhooks, other apps and outside systems
  10. Storage, email, key-value
  11. Local development
  12. When something fails
  13. Tell Whisk what got in your way
  14. Do not

Conventions version 1. This is the document a coding agent reads before touching a Whisk app. Every file it refers to is published beside it at https://skill.whisk.run/<file>: whisk.schema.json, graph.schema.json, headers.md, environment.md, webhook-presets.yaml, errors.md, doctor-rules.md. Working starter apps come with the CLI (whisk init --template).

Quick start

The person wants something live they can open, so get them an address first and build after. Do these in order, before writing any of their app:

  1. Install the CLI if whisk is not on the PATH: curl -fsSL https://github.com/Whisk-Hosting/cli/releases/latest/download/install.sh | sh (Windows in §3). If it says its folder is not on your PATH, run whisk by the full path it prints.
  2. whisk login --agent "<your name>". Show the person the link and code at once, while they are still watching, then run the whisk login --resume command it prints.
  3. In an empty folder named for the app (the name becomes its address): whisk init --template ts (or py, go, next, astro). If it prints FREE_APP_TAKEN or PLAN_LIMIT_APPS, tell the person before going further.
  4. whisk deploy -m "Starter", about a minute, and give the person the address it prints.
  5. Build what they asked for on top of the starter, deploying each piece as it works. Read §2 before writing code, and the sections below as the app needs them: sign-in §4, data §5, secrets §6, jobs §7, webhooks §8, files and email §9, failures §11.

With existing code, skip the template and run whisk init in its folder (§3).

1. What Whisk is

Whisk hosts websites, online shops, customer portals and internal tools written by coding agents. An app is a container that speaks HTTP; the platform adds login, a Postgres database, a queue with durable workflows, secrets, webhooks, storage, email and backups, all by convention rather than by SDK. Tenant apps live at <app>.<org>.whisk.page on a paid plan, <app>--<org>.whisk.page on the free plan; the platform is at whisk.run. Use the hostname the API returns rather than building one.

What you will do: whisk login, whisk init, whisk doctor, whisk deploy, then tell the human which secrets to set and where. The human's part is a few screens in the dashboard. Yours is everything else, and one more thing: whenever Whisk gets in your way, tell us with whisk feedback (section 12). You are the user Whisk is built for, so your feedback is how it gets better.

Whisk already does this

Use the built-in. Do not add an outside service, SDK account or library for any of these unless the human asks for that service by name; if a built-in falls short, say so with whisk feedback (§12) rather than working around it.

NeedWhisk's built-inInstead of
Sign-in, users, rolesthe platform's login and X-Whisk-* headers (§4)Auth0, Clerk, NextAuth, Supabase Auth, a password page
Database and backupsPostgres per app, DATABASE_URL, backups and restore points (§5)Supabase, Neon, Firebase, SQLite files
Scheduled and background workfunctions, steps, retries, approvals (§7)node-cron, Celery, BullMQ, an outside cron, Zapier
Secretsdeclared names, set in the dashboard (§6).env files, Doppler, Vault
Incoming webhookswebhooks: with verification, retries, replay (§8)a relay service, your own signature code
Receiving emailinbox:, an address per app, delivered like a webhook (§8)SES receiving, Mailgun routes, Postmark inbound, an IMAP poller
Files and uploadsstorage: true (§9)an S3 or R2 account, Cloudinary, UploadThing
Video and audio<whisk-video> (§9)Mux, Vimeo, YouTube embeds
Emailemail: true (§9)SendGrid, Resend, Mailgun, SMTP
Push notifications/.whisk/push.js and …/push/send (§9)OneSignal, Firebase Cloud Messaging, Pusher Beams, the web-push package
Cache, counters, lockskv: true (§9)Upstash, Redis Cloud
ErrorsSENTRY_DSN, Whisk's own error store, whisk errors (§3)a Sentry account, Bugsnag, Rollbar
Logs and request tracingstdout, X-Whisk-Request-Id, whisk logs, OpenTelemetry traces to OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, whisk traces (§2, §11)Datadog, Logtail, LogRocket, Honeycomb, an APM agent
Analytics<script defer src="/.whisk/analytics.js"></script>, whisk analytics (§3)Google Analytics, Plausible, PostHog, Mixpanel, a tracking pixel
Bot protectionroutes.challenge (§4)reCAPTCHA, hCaptcha, Turnstile
Hosting, HTTPS, domains, cachingthe platform (§3)Vercel, Cloudflare, a CDN

One app or two

To the people you work for, an app is one tool their team uses in a web browser, with its own web address, its own data and its own list of who can use it. Size is not a reason to split: a whole CRM with many screens is one app. When asked for something new, decide whether it belongs in an existing app or is a new one:

  • Same people, same information: add it to the existing app. A report on the CRM's customers belongs in the CRM.
  • Different people should see it (a client portal beside the staff tools): a new app, because access is set per app.
  • Something they would switch off, roll back or hand to someone else on its own: a new app.
  • Someone else maintains it: a new app, so their changes do not collide with yours.
  • Needing the other app's data is not a reason to merge: use a shared database (§5). Reuse the key the business already holds for a service rather than asking for a new one (§6).

Say which you chose and why in one sentence. When the rules do not settle it, ask the human.

2. The rules

An app on Whisk is a stateless HTTP server in a container.

  1. Listen on PORT (always 8080) on all interfaces.
  2. Answer GET <health.path> with 200 when ready to serve. Default /health.
  3. Log to stdout and stderr. JSON lines are indexed by field; plain lines are indexed as text.
  4. Write files only under /tmp. Everything else is read-only. /tmp is emptied on every restart; files that must last go to storage (§9, files a job keeps). /tmp is memory: what you keep there and what the process uses share WHISK_MEMORY_BYTES (256 MiB on Free), and a run that goes over is killed without SIGTERM.
  5. Exit cleanly on SIGTERM within the grace period (default 28 seconds). A deploy sends new requests to the new version at once and sends SIGTERM to the old one only once the requests it already holds have finished, or after 15 minutes.
  6. Read configuration and secrets from the environment. Never from files in the repository.
  7. Trust identity only from the X-Whisk-* headers, which only the platform can set.
  8. Treat every queue delivery and webhook as possibly repeated; use the provided IDs to dedupe.
  9. Start fast. Under five seconds from process start to health 200 is the target, because sleeping apps wake on demand.

Limits. Every plan's limits are in one table at https://whisk.run/usage: memory, processor, storage, database connections, workflow runs, email, requests, domains and outbound traffic. Read it before building anything that has to grow, and design inside it.

Keep it light. Memory is what an app costs to run, and a small app wakes fast and is never killed for running out. Stream large files and query results in chunks (storage reads, CSV and spreadsheet parsing, database cursors) instead of loading them whole into memory or /tmp. Process a big job as many small steps, each handling one batch. Let the database filter, sort and total rather than fetching every row to do it in code. React to an event or webhook when something changes instead of a schedule that checks every few minutes, and choose the longest schedule the business can live with. Load heavy libraries only in the code path that needs them. Pages and API reads that can be a little old should send Cache-Control: private, max-age=<seconds> (public for a page anyone may see): the edge answers repeat requests from its cache, per person and for up to an hour, without waking the app. A response that sets a cookie is never cached.

Live updates. Server-sent events and WebSockets work on every plan and address, sign-in included; prefer server-sent events when only the server talks. Writes reach the visitor at once and nothing times a stream out, so send a heartbeat every 30 seconds (: on an event stream, a ping on a WebSocket) to keep phone networks and proxies from dropping it. An open stream keeps the app awake by itself. Streams close on every deploy (close them on SIGTERM) and now and then when Whisk updates its servers, so every client reconnects with backoff: give events an id: and resume from Last-Event-ID, and keep what a stream reports in the database or key-value store so a reconnect misses nothing. Close a stream after an hour or so: the sign-in is checked when it opens, and the reconnect checks it again.

3. Getting an app live

If whisk is not on the PATH, install it first; neither script needs root:

curl -fsSL https://github.com/Whisk-Hosting/cli/releases/latest/download/install.sh | sh        # linux, macOS
irm https://github.com/Whisk-Hosting/cli/releases/latest/download/install.ps1 | iex             # windows PowerShell
powershell -NoProfile -Command "irm https://github.com/Whisk-Hosting/cli/releases/latest/download/install.ps1 | iex"   # windows Git Bash or cmd

Each command runs in a fresh shell for most agents, so an export PATH does not last: when the script says its folder is not on your PATH, run whisk by the full path it prints.

If whisk is already installed, run whisk update once at the start of a session: this document describes the CLI the platform serves, and an older one lacks commands it names. Later, any --json output that carries cli_update, or an UNKNOWN_COMMAND error, means the same: run whisk update and retry.

whisk login --agent "<your name>"
                         name yourself as people know you ("Claude Code", "Codex", "Cursor"):
                         the approval page, deploys and token lists show it. Exits 2 at once
                         with a URL and a code in the NEEDS_HUMAN block (also under --json):
                         show both to the human, then run the resume command it names
                         (whisk login --resume <device_code>), which waits for approval.
                         The token works only from this computer: use it through whisk,
                         never copy it elsewhere
whisk init --template ts|py|go|next|astro|shop writes whisk.yaml, .whisk/app.json, and
                         the template; next and astro are Next.js and Astro; shop is a whole online shop (on Whisk's commerce engine) for a business selling
                         to the public, and runs only as a Promoted app
whisk doctor             checks the repository; exit 3 means fix the listed problems
whisk deploy -m "…"      commits, pushes, builds, migrates, health-checks, switches traffic
whisk logs -f            tails the app
whisk clone <org>/<app>  copies an existing app's code here; git pull and push then work

If whisk login --resume is cut off by your shell's time limit, run it again: the code stays good until it expires and the waiting key is kept.

Following and recovering. These are the commands to reach for when something takes a while or goes wrong:

whisk deploy --no-wait -m "…"   prints the deploy id at once; a deploy can take up to 25 minutes
whisk deploys info <id>          its status and phase; deploys cancel <id> stops a stuck one
whisk deploys log <id>           its whole build log and, for a failed start, the app's last lines
whisk status                     running, sleeping or broken, and why it stopped answering
whisk whoami · whisk orgs        who you are and which businesses this token reaches
whisk use <org>/<app>            binds this folder to an app (the NOT_FOUND fix names it)
whisk secrets list               declared names, set or unset; never values
whisk functions list             declared functions, their triggers and drift from the code
whisk events send <name> --data @event.json    sends an event to test an event function
whisk runs show <id> · whisk runs replay <id> · whisk runs cancel <id>
whisk restore show <id> --wait   follows a restore (whisk restore list lists them)

Every command takes --org <slug> and --app <slug> instead of .whisk/app.json, and --quiet to drop progress lines. In CI, where nobody can approve a login, a person runs whisk agent-token create --label "ci" and puts the token in WHISK_TOKEN.

Run whisk login in the app's folder, or with --org (and --app): the approval page then starts on that app or business, the narrowest login that fits. The person can choose all their businesses instead; that login acts as them in every business they belong to, including ones they join later: whisk orgs lists them and --org <slug> picks one when the folder names none. A computer has one sign-in: do not pass --profile to make another, and do not try other profiles to find a business. When the business you need is missing, run whisk whoami: under "Not in this login" (not_in_login with --json) it names each of the person's businesses the login does not cover, with the link where the person adds it. When a command meets one, it exits 2 with a NEEDSHUMAN block whose link (details.url, details.reason `BUSINESSNOTINLOGIN) is the same page. Show the person the link, then run the command again. Do not run whisk login again for it. A business whoami does not name is one the person is not in: ask them to join it or to have an owner invite them. A person adds a new business themselves at https://whisk.run/new`.

If you speak MCP rather than a shell, run whisk mcp as a stdio server: this document and every error code are its resources, every command is a tool.

In a chat with no shell, such as ChatGPT or Claude, the person connects Whisk's assistant connector (https://api.whisk.run/mcp) and signs in once. Its tools cover deploying (deploy_app takes the files themselves), rolling back, logs, runs (and replaying one), the database's tables and queries, access and feedback; whisk_build_guide names which command each one stands for and what a chat cannot do (cron runs on demand, webhook deliveries, errors and traces, restores, previews, domains, export), which needs the dashboard or a developer with the CLI.

Every command takes --json. Exit codes: 0 success; 1 an error, including a refused request such as a bad slug or uncommitted files (INVALID_REQUEST), read code and fix; 2 needs a human, show them the printed URL and wait; 3 doctor or the manifest found problems, fix the listed ones and retry; 4 not signed in or not allowed: read code (for AUTH_REQUIRED or TOKEN_EXPIRED run whisk login; for AGENT_CATEGORY, AGENT_PAUSED, FORBIDDEN_ROLE or TOKEN_SCOPE logging in again does nothing, so tell the human what to grant or resume); 5 network or Whisk's side, retry with backoff and do not change the code; 6 deploy failed in the app, read the log excerpt.

Start from a template unless the human already has code: whisk init --template ts (Hono, Drizzle), --template py (FastAPI, SQLAlchemy, Alembic), --template go (chi, pgx, goose). Each is a plain starter (a notes page, a health route, one event function; a few hundred lines, the Go one about 900) that passes doctor with zero warnings, deploys with nothing for a person to set, and shows the conventions below working. whisk init --template works in a folder holding only dot-files and CLAUDE.md or AGENTS.md. Existing code deploys too: whisk init in its folder writes whisk.yaml for it, carrying across what its previous host's Procfile, app.json, render.yaml, railway.json, railway.toml or fly.toml says (migrate step, workers, health path, Dockerfile, secret names, settings) and listing at the top what is left to do by hand. Keep what the app already does for itself (its own sign-in and job queue on a Promoted app, its payment provider) and move what Whisk does for it: files to storage, mail to email: true, scheduled commands to functions, backups to Whisk's. Then make it follow the rules and run doctor.

Errors and traces. Wire both in before the first deploy, in every app, whatever it is built with. They are how you and the human find out what broke and what is slow once real people use the app: whisk errors and the Errors page list its exceptions, grouped, with the stack; whisk traces and the Traces page list every request with the edge's timing, and the app's own spans show where inside the app each request's time went: its queries, its calls out. The platform sets SENTRY_DSN and the OTEL_* variables (environment.md) in every deployed container, so all the app does is start a Sentry SDK and an OpenTelemetry SDK when they are set. whisk dev sets neither, so nothing is sent while you work. The templates already do this. Until an app does, whisk doctor warns (W140, W141) and whisk deploy says "Not set up: errors and traces." Without an SDK, the stacks the app prints (a Node error and its frames, a Python traceback, a Go panic) still reach the Errors page from its logs, but without the request, the user, or the exceptions a framework catches and answers 500 for without printing.

Any Node server (Express, Fastify, Hono, Koa, Astro, SvelteKit, React Router, Remix, Nuxt) loads one file before the app. Install @sentry/node @opentelemetry/sdk-node @opentelemetry/instrumentation-http @opentelemetry/instrumentation-undici @opentelemetry/instrumentation-pg, write instrument.mjs, and start the server with node --import ./instrument.mjs <entry> in the Dockerfile's CMD or the start script:

import * as Sentry from "@sentry/node";
import { NodeSDK } from "@opentelemetry/sdk-node";
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
import { UndiciInstrumentation } from "@opentelemetry/instrumentation-undici";
import { PgInstrumentation } from "@opentelemetry/instrumentation-pg";

if (process.env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT) {
  const sdk = new NodeSDK({
    instrumentations: [
      new HttpInstrumentation({ ignoreIncomingRequestHook: (req) => req.url === "/health" }),
      new UndiciInstrumentation(), // fetch
      new PgInstrumentation(),     // pg, and Drizzle or Kysely over pg
    ],
  });
  sdk.start();
  process.once("SIGTERM", () => sdk.shutdown().finally(() => process.exit(0)));
}
if (process.env.SENTRY_DSN) {
  Sentry.init({ dsn: process.env.SENTRY_DSN, environment: process.env.WHISK_ENV });
}

The SDK reads the endpoint, the token and the app's name from the OTEL_* variables itself, and the HTTP instrumentation continues the edge's traceparent, so each request's trace id is its request id. Leave out @opentelemetry/auto-instrumentations-node: it loads dozens of instrumentations and slows every start. Sentry 11 reports errors and leaves tracing to the SDK above; leave its enableOpenTelemetrySetup off.

Next.js: put the same code in instrumentation.node.ts (without the SIGTERM line, and without the HTTP instrumentation, since Next.js traces each request itself) and add instrumentation.ts at the project root, or in src/. A new app can start from whisk init --template next or --template astro, which have both wired.

export async function register() {
  if (process.env.NEXT_RUNTIME === "nodejs") await import("./instrumentation.node");
}
export async function onRequestError(err: unknown, request: { headers: Record<string, string | string[] | undefined> }) {
  const Sentry = await import("@sentry/node");
  Sentry.captureException(err, { tags: { request_id: String(request.headers["x-whisk-request-id"] ?? "") } });
}

Frameworks catch errors themselves and answer 500, so tell Sentry about them where the framework hands them over, tagged with the request's X-Whisk-Request-Id as request_id so the error links to its trace:

FrameworkWhere
ExpressSentry.setupExpressErrorHandler(app) after the routes
FastifySentry.setupFastifyErrorHandler(app)
KoaSentry.setupKoaErrorHandler(app)
Honoapp.onError((err, c) => { Sentry.captureException(err); … })
SvelteKithandleError in src/hooks.server.ts
Astroa middleware: try { return await next() } catch (e) { Sentry.captureException(e); throw e }
React Router, Remixexport function handleError(error) in entry.server
Nuxta Nitro plugin: nitroApp.hooks.hook("error", (e) => Sentry.captureException(e))

Python: add sentry-sdk, opentelemetry-sdk, opentelemetry-exporter-otlp-proto-http and the framework's instrumentation (opentelemetry-instrumentation-fastapi, -django or -flask), then where the app is made:

import os, sentry_sdk
from opentelemetry import trace
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor

if os.environ.get("SENTRY_DSN"):
    sentry_sdk.init(dsn=os.environ["SENTRY_DSN"], environment=os.environ.get("WHISK_ENV"))
if os.environ.get("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"):
    provider = TracerProvider()
    provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter()))
    trace.set_tracer_provider(provider)
    FastAPIInstrumentor.instrument_app(app, exclude_spans=["receive", "send"])

Go: sentry.Init(sentry.ClientOptions{Dsn: os.Getenv("SENTRY_DSN")}) when it is set, and when OTEL_EXPORTER_OTLP_TRACES_ENDPOINT is set, otlptracehttp.New(ctx) as the exporter of sdktrace.NewTracerProvider(sdktrace.WithBatcher(exp)), otel.SetTracerProvider, otel.SetTextMapPropagator(propagation.TraceContext{}), and the router wrapped in otelhttp.NewHandler. The Go template's whisk.go (startTracing, traceRequests, traceQueries) is the whole of it, database queries included, to copy.

Everything whisk.yaml takes. Unknown keys are errors; whisk schema prints the JSON schema. Settings marked paid are refused with PLAN_FEATURE on the free app, except kv, which deploys without a cache and a W080 line instead (§9). Storage, email and customer identity are on every plan, the free app included, within its allowances.

whisk: 1                          # required
name: job-tracker                 # required; the app's address derives from it
title: Job board                  # what people call it, two to four plain words
description: Every open job, who is on it and what is due this week.   # one sentence, 120 at most
category: Jobs                    # the group the business's home lists it under
routes:
  public: ["/", "/health"]        # everything else needs a signed-in person (§4)
  challenge: ["/contact"]         # public POSTs here need a solved bot challenge (§4)
  csrf_off: []                    # rare: routes exempt from the CSRF check, for embeds
  device_header: X-Device-Id      # optional: your own clients' install header, rate limited per install (§4)
  headers: { X-Frame-Options: DENY }   # add or override response headers
health: { path: /health, timeout: 30 } # seconds from start to the first 200; default 90
database: app                     # app | shared:<name> | none (§5)
migrate: "node dist/migrate.js"   # runs before traffic switches, at most 600 seconds (§5)
build:
  dockerfile: Dockerfile          # optional; the stack is detected without one
  secrets: [NPM_TOKEN]            # available only while building, never at run time
secrets: [XERO_CLIENT_SECRET]     # names only (§6)
env: { LOG_LEVEL: info }          # plain configuration, visible in logs
queue: { endpoint: /.whisk/inngest }
functions: []                     # cron and event functions (§7)
webhooks: []                      # incoming webhooks (§8)
inbox: { handler: /inbound/email } # receive email at the app's own address (§8)
static:                           # committed folders served by the edge, cached for a year
  - { dir: public/assets, path: /assets }
redirects:                        # old addresses the edge redirects, before the app wakes
  - { from: /about-us, to: /about }               # 301 unless status says otherwise
redirects_file: redirects.txt     # more rules, one a line: from to [status] [query=drop]
storage: false                    # files, uploads, images, video (§9) · every plan
kv: false                         # a Redis of its own (§9) · paid
kv_evict: true                    # false for a job queue: a full cache refuses writes (§9)
email: false                      # sending email (§9) · every plan
always_on: false                  # never sleeps · paid
promoted: false                   # runs only as a Promoted app (§4) · paid
b2b: false                        # the shop template's trade ordering, beside promoted: true (§4) · paid
commerce: medusa                  # the shop template's own setting: keep it in a shop made from it (§4)
content: payload                  # the site and shop templates' own setting: keep it (§4)
workers: []                       # an existing app's own job processes, beside promoted: true (§4) · paid
calls: []                         # other apps of the business this one calls (§8)
accepted_callers: []              # other apps of the business that may call this one (§8)
customer_identity: none           # none | app | org: the app's own users (§4) · every plan
sign_in: { logo: brand/logo.png, colour: "#0b6e4f" }   # customers' sign-in look (§4) · app pool
network: public                   # the only value, the same as leaving it out: apps are public
previews: { database: empty, ttl_days: 3 }   # previews start empty; days a preview lasts

static folders are read from the commit, not from the built image: a folder the commit does not hold, such as git-ignored build output like dist/, fails the deploy with MANIFEST_INVALID naming it (whisk doctor warns first, W004). Serve build output from the app itself, or commit the folder. Static files never wake the app and are cached for a year, so give them content-hashed names. always_on is for apps that must answer at once. People can also switch it on the app's page in the dashboard, which commits the change to whisk.yaml and deploys it, so pull before you push again. An open WebSocket or event stream keeps an app awake by itself, and everything else should sleep. A sleeping app has 60 seconds to answer its health check when a visitor wakes it, whatever health.timeout allows a deploy, so an app that needs longer sets always_on (W005). A sleeping app starts again on its next request, so start fast: the TypeScript template bundles each entry point into one file with esbuild (build.mjs), so its image holds no node_modules and Node reads a few files instead of thousands. A package that must stay a file on disk (a native addon, or one that reads its own files at run time) goes in esbuild's external list, and the Dockerfile copies it into the image. A preview starts with an empty database of its own; seed what testing needs from a migration or a script, never from production.

Settings apply in seconds. When a push changes only whisk.yaml since the live deploy and leaves build, env, the static folders and b2b as they were, Whisk skips the build and runs the live image with the new settings: routes and who can visit, always_on, health, secrets and the rest. It goes live in the time a deploy takes. Commit a settings change on its own to get this, and tell the human it applies straight away. A route made public still waits for a person to allow it.

Describe the app. The business's home lists every app by its title, description and category, so set all three in whisk.yaml before the first deploy. People open apps from the home, and most of them never see the code. The title is what the people who use the app would call it, in two to four plain words: "Job board", never "jobtrackr-v2". The description is one sentence of at most 120 characters for someone who uses the app, starting with what they do in it: "Log your hours each day and send them for approval on Friday." Leave out the app's name, technical words, the stack, and words like "powerful" or "AI-powered". The category is the group it sits in, such as Sales or Jobs. Reuse one the business already has: whisk doctor lists them (W160). When the app changes what it is for, change the description in the same commit. An owner can change all three on the home, and what they set stays, so doctor tells you when your values are no longer the ones shown.

Say what changed. Every deploy shows the subject line of its commit to the business, on the app's Deploys page and in whisk deploys list. Write it for the people who use the app, in one plain sentence about what they will notice: whisk deploy -m "Add a CSV export to the jobs page", not "fix bug", "wip" or "whisk deploy". -m commits uncommitted changes with that message; when you commit yourself, the first line of your commit message is what shows. Keep it under 72 characters and leave file names and internals out.

whisk deploy from main or master deploys production, and nothing else does. From any other branch it starts a preview at its own URL, says so, and leaves production alone; to put a branch live, merge it into main and run whisk deploy from main (PRODUCTION_NEEDS_MAIN otherwise). Work on main unless the human asks to try something out first. Check environment in the --json summary before telling the human something is live. A plain git push of a branch only stores it: start its preview with whisk envs start <branch> when someone needs to see it, and from then on every push to that branch updates it. Each app may have one preview on the free app and three on a paid plan (PLAN_LIMIT_PREVIEWS); remove one you are done with using whisk envs delete preview:<branch>. Previews sleep when idle and go a few days after their last push or visit. A preview runs no scheduled functions, workflows or events (PREVIEW_NO_WORKFLOWS); skip sending events when WHISK_ENV starts with preview:, and test functions with whisk dev. whisk apps delete <app> [<app>...] (or <org>/<app>) prints one link where a person deletes them all in one step; show it to them. A deleted app keeps its data for 7 days, and whisk apps deleted then whisk apps restore <id> bring it back stopped.

Several people on one app. Other people and their agents may be changing the same app while you work. Start from the latest code: in a copy made by whisk clone, run git pull --rebase whisk main before you change anything (plain git is signed in there). If someone pushes while you are working, whisk deploy fetches their commits and rebases yours on top when that goes cleanly, then pushes; the --json summary has caught_up when it did, so run the tests again before you tell the human it is done. When it cannot, you get PUSH_BEHIND and your copy is left as it was: run the git rebase or git merge its fix names, resolve each file in details.conflicts so both changes still work, run the tests, and deploy again. For a bigger change, work on a branch and show it on a preview, so nobody else's work is in the way until it is merged into main. Never force-push to Whisk: it deletes the other person's work.

whisk deploy ends with the URL, the address of each declared webhook, and any warnings: a deploy that went live with something wrong, such as FUNCTIONS_NOT_REGISTERED (a function name in whisk.yaml the code does not use), whose fix says what to change. If declared secrets (build.secrets included) have no value yet it also prints a NEEDS_HUMAN block naming them and the dashboard URL. Relay that block to the human verbatim. Do not ask them for the values; the app restarts on its own when they are set.

Some changes are the business's to allow, not yours. A production deploy waits with GRANT_NEEDED (exit 2, a NEEDS_HUMAN block) when, compared with the live app, it calls another app, adds a webhook, makes a route public, drops a route's challenge or CSRF check, or changes customer_identity; when it names a business secret this app is not on the list of, or a key another app of the business holds (§6); or when a connection needs a grant. The block names each change in a plain sentence and gives one link where an owner or admin approves them all with one tap. Relay it verbatim and say plainly what each change lets the app do; never try to approve it yourself. The first deploy, a deploy that widens nothing and a deploy the same as one approved before do not wait, and previews never do.

Their own domain. On a paid plan, whisk domains add jobs.acme.com prints two DNS records for the human to create: a TXT that proves they own the name and a CNAME to the app's address. A bare domain (acme.com) cannot have a CNAME. If the human's DNS host offers an ALIAS or ANAME record, or CNAME flattening (Cloudflare flattens a CNAME at the domain itself), point it that way at the apex_target printed, the app's address: it then goes through the app's CDN while that is on. Otherwise it takes A (and AAAA) records to the addresses printed, which reach the app directly and never through the CDN; to have the site on the CDN anyway, make www.acme.com the main address (below). Relay the records with their HOST, the name as a DNS provider's form takes it (@ is the domain itself), changing the name's existing A record rather than adding a second one and leaving its MX and other TXT records alone. Then whisk domains verify jobs.acme.com once they are in place; until then it answers DOMAIN_UNVERIFIED naming what is missing. The certificate is issued on verification and the app answers on the name with no deploy. DNS cannot redirect www.acme.com to acme.com: add and verify both, then make one the main address (below). Prefer relative links; WHISK_PUBLIC_URL stays the platform address, and the Host header is the name the visitor used.

One main address. Once the human's domain answers, ask them whether it should be the app's main address, and if so run whisk domains main acme.com. Every other address of the app (its Whisk address, www.acme.com, an old domain) then sends a browser to the same page on acme.com with a 301, so people and search engines see one site. Anything other than a page load, such as a webhook's POST, is still answered on the address it was sent to, so integrations set up with an old address keep working; point new ones at the main address. Previews keep their own addresses. A domain becomes the main address only once its certificate is issued, and the Whisk address takes over again by itself if the domain stops working. whisk domains main prints the main address and whisk domains main --whisk makes the Whisk address the main one again; a human can press Make main on the app's domains page.

To put every app on the business's domain at once (crm.acme.com, billing.acme.com, and each new app with no further DNS), an owner or admin's session runs whisk domains business add acme.com instead: a TXT and one wildcard CNAME (*.acme.com), then whisk domains business verify. The human's existing records (www, mail) keep working.

A new address. The app's platform address is made from its slug. To change it, run whisk apps rename <new-slug> on the same app: never create a new app and delete the old one. The app keeps its data, secrets, history and domains, the old address sends visitors to the new one, and the old slug still names the app. Commit the .whisk/app.json and whisk.yaml it updates. The name people see is the app's display name, which starts as its slug: whisk apps display-name "Job Tracker" sets it and leaves the address as it is.

Redirects. When a page is renamed or a site moves to Whisk, keep every old address working, or search engines drop the pages. List each old path under redirects with the new one (from, to, status 301 by default, 308, 302, 307 or 410 for a page that is gone). from: /blog/* with to: /news/* moves a whole section, carrying the rest of the path; from: /blog/:year/:slug with to: /posts/:slug reshapes addresses; from: /product.php?id=12 matches only that query. Short links and campaigns are rules too (/go/zoom to an outside address, status 302 when it will change). The request's query is kept unless query: drop, or the rule's from names one. More than a few dozen rules go in a file named by redirects_file, one rule a line: /old-page /new-page, /blog/* /news/* 308, /old-promo 410; at most 10,000 rules in all. The edge answers them on every hostname of the app without waking it, ahead of the app's own routes. Point each rule straight at the final address: whisk redirects check (and whisk doctor, W111) reports a rule whose target another rule redirects again, and a loop fails the push. whisk redirects test /old-page prints what a request gets, and whisk redirects list what is live. To move the old domain itself, add it to the app (whisk domains add old-acme.com, verify it), then whisk domains redirect old-acme.com acme.com: every request to the old name gets a 301 to the same path on the new one, and a path a rule names goes straight to the rule's target there. A human can also set it on the app's domains page in the dashboard. To send www.acme.com and every other address to acme.com, make acme.com the main address instead (above).

Their customers' domains. An app that serves other businesses under their own names (a white-label app) lets each bring a domain of its own from inside the app, with no person running the CLI: the template's domains helper (domains.add, list, verify, remove; Go domains.Add and so on) calls /v1/orgs/<org>/apps/<app>/domains with WHISK_SERVICE_TOKEN from production. add(hostname) answers the domain with its id, status and records; show the customer records as they are (a TXT, then a CNAME, or A and AAAA records for a bare domain like lab.com) and store the id with the customer. Let them press a button that calls verify(id) once they have created the records: DOMAIN_UNVERIFIED says in details.missing what is not in place yet, and DNS can take an hour, so never verify in a loop. status is then pending_certificate until the certificate is served and active after; the app answers on the name with no deploy and reads the name the visitor used from Host. Remove with remove(id), never by hostname. The app removes only the domains it added; the business's own (added_by: team) answer DOMAIN_ADDED_BY_TEAM. A name another app holds is DOMAIN_TAKEN, one app holds at most the plan's custom_domains_per_app (PLAN_LIMIT_DOMAINS), and more than 30 adds and removes or 120 verifies an hour is RATE_LIMITED. Only the customer's own admins should reach these screens: check their role in the app first. whisk dev answers the same routes; names under .test or .example verify there at once.

Serving from near the visitors. On Team and Business, whisk cdn on puts the app's address and its CNAME'd domains behind a CDN (whisk cdn shows the status and each hostname's route). It helps public pages, sites and downloads. A public page is cached only as long as the app's Cache-Control says, so set it on public pages and assets you want cached; a response that sets a cookie is never cached. Each production deploy empties the cache. To show a change sooner, the app drops the pages it changed: POST /v1/orgs/<org>/apps/<app>/cdn/purge with WHISK_SERVICE_TOKEN and {"paths": ["/entries/42", "/entries/*"]} (a trailing * takes everything under it, at most 20 paths, {} for everything), or whisk cdn purge by hand. Then a public page can carry a long max-age and still change at once. An app the CDN does not serve answers "on": false, and so does whisk dev, so purging on every change is safe anywhere.

Looking after a live app. whisk status says whether it is running, sleeping or broken, which deploy is live and which secrets are unset, and, when it stopped answering, why: the exit code and last lines of a crash, or a wake that failed. whisk rollback puts the previous deploy back (or a named one from whisk deploys list). whisk errors lists the app's grouped exceptions and whisk traces shows where its requests' time went, once the app sends them (§3, "Errors and traces"). SENTRY_DSN points at Whisk's own error store: initialise the Sentry SDK with only the DSN, without Sentry's tracing, profiling or session replay, which cost memory and start time and which Whisk already covers. A log line's request_id opens its trace. Traces are kept 7 days, 100,000 spans per app per day. whisk open <page> prints the dashboard link for the human (logs, runs, secrets, domains, access, errors, analytics). whisk github shows the app's optional two-way copy on the business's GitHub; a person links it in the app's settings.

Analytics. Every app has analytics on every plan. Put <script defer src="/.whisk/analytics.js"></script> in the <head> of every page layout (the templates do), and each page view is counted. The script and what it sends stay on the app's own address, it sets no cookie and keeps no IP address. The business's own people signed in to the app are left out (analytics: { team: count } in whisk.yaml counts them), and so is a browser asking not to be tracked (analytics: { do_not_track: ignore } counts it). Send an event from the page with umami.track("signup", { plan: "team" }) (check window.umami first, since a blocker can stop the script), or mark a button with data-umami-event="signup". Crawlers run no script, so Whisk counts them from its own request log: search engines, AI assistants and crawlers, link previews and other bots, with nothing to add to the app. whisk analytics prints views, visitors, top pages, sources, events and crawlers over --period 24h|7d|30d|90d or --from 2026-11-01 --to 2026-11-07. --source google.com, --page /pricing and --event signup narrow it to those visits, and --by breaks it down by day (or hour, month, with --tz), page, entry, exit, source, event, event-property (the properties --event carried), country, browser, os or device. whisk analytics visitors lists the visitors and whisk analytics visitor <id> what one did, page by page. whisk analytics traffic --by day,path,agent counts every request, robots, scripts and what the CDN answered from its copy included, grouped by any of its parts (query, user_agent, referer, user_id, address, country, network, edge_cache, hour…) and narrowed with --status 404, --kind ai_crawler, --country NZ or --user-id <id>; --list prints the latest requests one by one, with the time the app and a wake took, and --json every field. whisk analytics crawlers [--crawler Googlebot] prints each crawler's pages, answers and journeys, and whisk analytics journey <id> one journey request by request; the human sees everything with whisk open analytics. Visits are kept 7 days on Free, 13 months on paid plans and 25 months on Business. If the app has a privacy notice, say there that it counts visits with Whisk's analytics, without cookies, and for how long. Do not add another analytics tool unless the human names one.

Known vulnerabilities in packages (Business plan). Whisk checks the live app's packages after every production deploy and daily: the image (base image packages and everything installed in it) and every lockfile in the commit. whisk status says how many findings need fixing now; whisk doctor lists them as W063, one line per package: it checks the local lockfiles as they are, before you deploy, so run it after each change and the list shrinks as you fix; whisk scan lists each one with its severity, the installed version, the version that fixes it (fixed) and where it was found (a lockfile, or a path in the image). Fix the critical and high ones that have a fix: move the package to that version or newer in the lockfile (a base image package by moving to a newer base image), deploy, then whisk scan --now to check again. A finding with no fixed has no fix yet; leave it. whisk doctor also sums up the person's other apps (where they are an owner, admin or developer) that have packages to upgrade, under other_apps; whisk scan --all lists each of those apps with its packages and fixed versions. Tell your human about them, and fix them in each app's own repository. For Go, Whisk also checks whether the app's code calls the vulnerable part: a finding with reach: not_called is listed apart under "Not called by your code" and is not counted as one to fix now; update it when convenient, never ahead of the ones to fix. Every other language is unknown and counts as called. Python's slim image ships pip, which bundles its own copies of urllib3, msgpack and setuptools that the scan reports; the Python template uninstalls pip after uv sync, since the app runs from uv's virtualenv, and an app with its own Dockerfile does the same. Most image findings come from the operating system in a full base image: the TypeScript and Go templates run on a distroless image (gcr.io/distroless/nodejs24-debian13:nonroot for Node, the Python one on python:3.14-slim), which has no shell or package manager, so keep migrate a plain command such as node dist/migrate.js, not npm run or shell syntax (whisk doctor warns, W062). An app that needs a system program (ffmpeg, ImageMagick, a browser) moves the Dockerfile's last stage to FROM node:24-trixie-slim, installs it with RUN apt-get update && apt-get install -y --no-install-recommends <package> && rm -rf /var/lib/apt/lists/*, and sets USER node and CMD ["node", "dist/index.js"], since only the distroless image starts node itself. A slim image has no CA certificates, so add ca-certificates to that install whenever a build step or the app makes HTTPS calls (a postinstall download, a fetch at start), or they fail with a certificate error. Deploys are never blocked by findings. On another plan whisk scan says scanning is on the Business plan.

4. Identity

The platform signs people in. Your app never sees a password, a token or a login form. On every request, read who it is from headers (full table in headers.md):

HeaderMeaning
X-Whisk-Audienceanonymous, team, customer or service
X-Whisk-User-Idstable ULID; store this, never the email, as the key
X-Whisk-Email, X-Whisk-Nameverified email; display name (may be empty)
X-Whisk-Orgorg ULID
X-Whisk-Groupscomma-separated group names (team only)
X-Whisk-Rolescomma-separated org roles: owner, admin, developer, billing, member, plus guest (team only)
X-Whisk-Flagscomma-separated feature flags on for this person, when any is (below)
X-Whisk-Request-Idtrace ID; put it in every log line
X-Whisk-Countrythe visitor's country, NZ, when the edge knows it; a hint, not proof

Routes are private unless listed under routes.public in the manifest. A private route only ever receives requests with a team or customer identity (or service, for platform deliveries and app-to-app calls); the platform has already redirected browsers to login and answered API clients 401. A public route receives anonymous when nobody is signed in and the full identity when someone is.

Someone not signed in is rate limited by their network address, which an office shares. When the app's own clients (a desktop or phone install that signs its requests itself) call public routes, have each send a header naming its install and list it as routes.device_header (for example X-Device-Id): each install then has its own allowance, and the installs at one address together have ten times it. The edge does not check the header, so the app still authenticates every request.

Authorise inside the app by role or group:

const roles = (c.req.header("X-Whisk-Roles") ?? "").split(",").filter(Boolean);
if (!roles.includes("admin") && !roles.includes("owner")) return c.text("Forbidden", 403);

Never read identity from a cookie, a query parameter, a body, or an Authorization header a browser sent; the headers are the only source and the platform strips any copy arriving from the internet. To sign someone out, redirect to /.whisk/logout?return=/. To force login from a public page, redirect to /.whisk/login?return=<path>. Both are handled in front of the app.

Using an app as your person. To change what lives in a deployed app (its pages, records, settings), call the app's own API rather than writing to its database: whisk call GET /cms/api/pages?limit=5, whisk call PATCH /cms/api/pages/4 --data @page.json. It sends the request to the app's address with your Whisk credential, so you never put the token in a request yourself; prefer it to curl. The edge lets you in as the person you act for, with their grants, and adds X-Whisk-Agent (your name) and X-Whisk-Agent-Id; the app records the change as theirs, made by you. An answer outside 2xx is CALL_FAILED with the app's answer in details.body. When the person you act for is an owner of the app's business, your whisk login works as it is: whisk call signs each request on this computer, and the call is recorded in the business's audit log like any agent's. For anyone else (an admin, a member) the edge refuses a login with TOKEN_SCOPE, and you need an agent token: an agent identity's credential, which needs change to write, or one from whisk agent-token create, which needs deploy, as WHISK_TOKEN. In the site and shop templates the pages are at /cms/api. For many requests (an import, a bulk change), write one JSON request per line, {"method", "path", "data"}, and send them with whisk call --batch file.ndjson --parallel 4: one run, one connection, an answer per line. Keep --parallel 1 when a line needs an earlier one made first.

customer identities are the app's own users (portals, public apps), enabled with customer_identity: app | org. They arrive in the same headers without roles or groups, and X-Whisk-User-Id names the customer. The way in is an invitation until an owner opens registration; onboard your own with POST /v1/orgs/<org>/apps/<app>/customers {email, name} and your service token, which answers the link (201) and emails nothing; someone already in the pool answers 200 with them. To have Whisk email someone their invitation, POST .../customers/<id>/invite (once a day per person at most, CUSTOMER_INVITE_SENT, counted as your app's email). Only send one when the owner or the person asked for it, never on a schedule or for a whole list. whisk customers list, invite (with --email to send it), block and unblock do the same from the CLI. An owner can remove a customer: they are signed out and can no longer sign in. Invited again (or signing up again) within 30 days they come back under the same X-Whisk-User-Id, so keep their records rather than deleting them when a request stops naming them; after 30 days the platform deletes the person, and a later invitation makes a new id.

Customers sign in on Whisk's pages in the app's display name (set it with whisk apps display-name, or the pages say its slug), with a password, an emailed code or a passkey. Give them a way out: link /.whisk/account (their own page, with their password, passkeys and Sign out) somewhere a signed-in customer sees it, or /.whisk/logout?return=/ (W132). With customer_identity: app, sign_in in whisk.yaml makes those pages and the sign-in emails look like the app: logo (a PNG or JPEG in the repository, at most 100 KB), colour, background, text, font (whisk, system or serif) and corners (square, rounded, pill). A logo takes the name's place at the top, so use one that carries the name. Match the app's own design, keep text and background readable (W131), and leave the "Secured by Whisk" band alone: it is not the app's to style.

Promoted apps. An app a business sells to its own customers can be made a Promoted app by an owner in the dashboard (promoted.in_force on GET /v1/orgs/<org>/apps/<app>): it never sleeps, has 4 GB of memory that is always there for it and at least two processor cores (the plan's, when it gives more), and is served first when its server is busy. Never ask for promotion to get round anything in this skill, and never promote an app yourself: it is charged, so it is the owner's choice. An app that cannot run any other way says promoted: true in whisk.yaml: its production deploy then waits, blocked with PROMOTED_APP_REQUIRED, until an owner promotes it, and goes live by itself after; relay the NEEDS_HUMAN block. Previews of it run with a Promoted app's memory without waiting. Everything else in this skill still applies.

A Promoted app is where an existing product brings what it already has:

  • Its own sign-in. List every route under routes.public (["/**"]) and the app's own login decides who gets in; doctor leaves out W090 for it. The edge then limits each address as it would one signed-in person (600 requests a minute, 3000 on Business); every request counts, the files the app serves itself included, so keep a cold load (a service worker's precache too) well under that. Build or keep a login of the app's own only on a Promoted app.
  • Its own job processes. workers runs up to ten long-running commands beside the web process, in the same container and memory, one copy of each, restarted when it exits: ```yaml workers:
  • name: jobs # WHISK_WORKER=jobs; its log lines start [worker:jobs] command: bundle exec sidekiq
  • name: queue command: node dist/worker.js database: direct # DATABASE_URL is a session connection: LISTEN, advisory # locks and SET work; at most 3 open across the workers `` Use it to bring a queue an app already has across unchanged (graphile-worker, pg-boss, Sidekiq, Oban, Celery, Que, GoodJob); Procfile worker: lines map onto it, and release: onto migrate`. Size each library's own pool to the three direct connections. Whisk shows a worker's logs, restarts and memory, and does not see inside its jobs: no run history, replay or failure alerts. New background work is written as functions (§7) on every app.
  • A shop's setup. A shop made from the shop template goes live closed for orders (SHOP_NOT_READY) until the business has given who is emailed each order and each enquiry, a way to be paid, delivery options with prices and its name. Right after its first deploy, and whenever its checkout is closed, read whisk call GET /admin/whisk/setup and walk the person through each item not done, one at a time, in their words: each has a fix and steps, from signing up for Stripe to pasting its keys on the secrets page. Ask for the details and send them with whisk call POST /admin/whisk/setup --data '{"orders_email": "…"}'; recommend the rest (GST number, phone, address, policy pages, own domain and email) without holding up the launch.
  • Trade ordering. The shop template runs on any plan with room for it and keeps its own customer sign-in. Its trade ordering (companies, trade prices, paying on account, the ERP link) comes only with Promoted apps: b2b: true beside promoted: true, and a preview of an app not yet promoted fails with B2B_UNAVAILABLE. Its whisk.yaml says commerce: medusa: keep it, since Whisk's commerce engine answers its API (/store, /admin, /auth, /hooks, in Medusa's shape) and the app serves only its pages. The site and shop templates' whisk.yaml say content: payload: keep it, since Whisk's content engine answers their site editor (/cms) and its API (/cms/api, in Payload's shape). A page block of the site's own is a file, content/blocks/<slug>.json: {"label": ..., "fields": [{"name", "type", "label", "default", ...}]}, its types text, textarea, words, picture, check, number, select (with options), link, group and rows (with fields); CONTENT_BLOCK_INVALID says what is wrong with one.

Who may open the app (groups, people, everyone in the business) and who is in the business are an owner's or admin's choice. Everyone in the business means its members. A guest, someone from outside such as a contractor, opens only the apps they are given and works on those alone, so invite one with whisk members invite <email> --guest --app <app>. whisk access show and whisk members list read them. When the person asks you to change them, whisk access grant/revoke and whisk members invite/remove do not change anything yourself: they print a link and exit 2 (NEEDS_HUMAN, with details.request_id). Show the person the link; they approve exactly that change on it, signed in, within 24 hours. whisk requests show <id> --wait then waits for their answer and prints the result (an invite's link to send, for instance); a declined or expired request is REQUEST_CLOSED, and nothing changed. When the person is a developer, whose role cannot make that change, the request goes to the business's owners instead (details.asked_of is owners): they are emailed and have 7 days. Tell the person it is waiting on their owners; do not wait for it. The same holds for whisk apps restore.

Public pages. The edge rejects a cross-site POST to the app (CSRF_REJECTED), so forms work from the app's own pages with no token. Put a public form that strangers fill in (contact, quote request, sign-up) under routes.challenge: a POST without a solved proof-of-work challenge gets CHALLENGE_REQUIRED carrying one; solve it with the Altcha widget and resend with the solution in the altcha form field. There is no difficulty to set: a person gets one a phone solves in about a second, and an address that keeps posting to the app gets harder ones (a larger maxnumber) until it slows down, so always solve the challenge the latest CHALLENGE_REQUIRED carries. routes.headers adds or replaces response headers on every route, such as a Content-Security-Policy. The edge sends Cross-Origin-Opener-Policy: same-origin, so a link to the app from inside a sandboxed iframe (a CRM tile, a widget on another site) opens to Chrome's ERR_BLOCKED_BY_RESPONSE; when the app is meant to be opened that way, set Cross-Origin-Opener-Policy: unsafe-none in routes.headers.

The Whisk bar. When the app has an admin (a dashboard, a back office, a CMS), name it in whisk.yaml so the business's team gets a bar across the top of every page, like WordPress's toolbar, with Admin and Edit page links:

admin:
  path: /admin                        # the admin's address on this app
  edit: "/admin/edit?path={path}"     # optional: opens the editor at the page with this path
  setup: /admin/setup                 # optional: what the app still needs from the business

admin.path and admin.edit are paths on the app's own address; {path} is the page's path, percent-encoded. The edge adds the bar to team members' pages only, signs them in quietly on public pages once they have signed in on the app's address, and never shows it to customers, guests or the public. Build the admin.edit route to check the person is on the team (or send them to /.whisk/login?return=<this url>), find what that path shows, and redirect to its edit screen, or to the list when nothing matches. An app with no admin leaves admin out and gets no bar. The site and shop templates already declare theirs.

admin.setup names a route that answers GET, for a team member, with what the app still needs from the business before it works for its customers: {"ready": false, "items": [{"key", "label", "required", "done", "fix", "steps"}]}, done null for what the app cannot check itself. When an app needs the business's own details, accounts or choices to work (where emails go, how it is paid, its prices), keep them in the app, editable in its admin, and list them there rather than leaving a person to find them. whisk deploy prints each item not done once the deploy is live, required ones first, and the bar shows Finish setup beside Admin while a required one is missing. Walk the person through those items after a deploy.

An MCP server in the app. When the person wants to use the app from Claude or ChatGPT, serve an MCP server (Streamable HTTP, one POST per JSON-RPC message) from the app and name it in whisk.yaml:

mcp:
  path: /mcp                          # where the MCP server answers; never under routes.public
  read_tools: [list_invoices, get_invoice]   # the tools that only read

The person adds https://<app address>/mcp as a custom connector, and the platform does the sign-in: no OAuth, tokens or login code in the app. Each request arrives with the person's team headers and X-Whisk-Agent naming the assistant, so a tool answers and changes exactly what that person may, and records changes as theirs, made by it. Give every tool annotations with readOnlyHint, and list each read-only tool under read_tools too: an agent allowed only to read may call those and no other, and any tool not listed counts as a change. Keep the server stateless (answer each request on its own, ignore Mcp-Session-Id), because the app can sleep and restart between requests.

Feature flags

To ship a change to a few people first, declare a flag in whisk.yaml and read it from X-Whisk-Flags (Starter plan and up):

flags:
  new-checkout:
    remove_by: 2027-01-31        # a release flag: gone by this day
  payments-off: {kind: kill-switch}
const flags = new Set((c.req.header("X-Whisk-Flags") ?? "").split(",").filter(Boolean));
if (flags.has("new-checkout")) return newCheckout(c);
return checkout(c);

Keep both sides working until the flag is on for everyone. The person decides who sees it, on the app's Flags page or with whisk flags set new-checkout --team (everyone on the team), --people a@example.com, --groups beta, --percent 10, then whisk flags on new-checkout for everyone and whisk flags off new-checkout to go back. None of it needs a deploy. Once a release flag is on for everyone, delete its off side and the flag in one change. A background job asks GET $WHISK_FLAGS_URL?user=<id> with WHISK_SERVICE_TOKEN and gets {"flags": [...]}. Never keep a flag's rollout in code or the database; the platform holds it.

Who may see and change what

The platform decides who may open the app. The app decides which records each person may see and change, and that is where most real security holes in business apps are: one customer opening another's invoice by changing the number in the address. Do it the same way every time.

  1. Store the owner on every record a person creates: their X-Whisk-User-Id, in a column such as owner_id or author_id. Never take the owner from the body, the query string or a hidden form field.
  2. Filter in the query, not afterwards. The template's whisk module has scopeFor (scope_for, ScopeFor in Go): the business's team sees every record, a customer only their own, anyone else nothing. Every list, search, count, export and report goes through it.
  3. Check every record fetched by id with canSee, then canChange before changing or deleting it (can_see and can_change; CanSee and CanChange). A record the person may not see answers 404, as if it did not exist; one they may see but not change answers 403.
  4. Change the rules in one place. When a business wants something different (members see only their own records, a group sees a department's), change the helpers, not each route. The template's access tests (access.test.ts, test_access.py, access_test.go) check the rules over thousands of generated people and records; keep them passing and add a case for the new rule.
  5. Test each kind of record as the wrong person. For every route that reads or changes one, add a test that calls it as a second customer, as a team member who is not an owner or admin, and with no identity at all, and expects 404, 403 or an empty list, never the record. Ids in the address and in the body both count.

The same habits close the other common holes. Send SQL with parameters (the ORM, or $1), never by joining strings. Let the framework escape HTML; never insert text a person typed as raw HTML. Keep keys on the server, never in code sent to the browser. Fetch only addresses the app chose, never a URL a person typed without checking its host first. Keep uploads in storage (§9) and serve them from there. Before pushing, run the tests and whisk doctor: W094 warns when an app with customer sign-in never limits anything to the signed-in person, and W096 to W099 flag SQL built from text, raw HTML, a list of people's records with no owner filter, and public routes that write.

5. Database

DATABASE_URL is a pooled Postgres connection in transaction mode. Use it as-is with any driver: its certificate verifies, Node's pg included. No session-level state: no SET outside a transaction, no advisory locks held across statements, no LISTEN. Prepared statements are fine inside a transaction. Before a migration relies on a function from a recent release (such as uuidv7()), check the server's version: whisk db schema --json prints it as postgres.

Migrations run from the manifest's migrate command before traffic switches, with a direct connection the platform provides for that step and a snapshot taken first. The previous deploy stays live and keeps writing while the migration runs. A migration that runs longer than 600 seconds is stopped; split a long backfill into a function instead. A failed migration that changed no tables, columns, indexes or functions leaves the database as it is, so nothing users wrote is lost; one that did change them is rolled back to the snapshot, and the error names the replaced database, kept for 7 days, where anything users wrote meanwhile can be read back with whisk db query --database. So run each migration in one transaction (most tools do on Postgres), and keep migrations forward-only and idempotent where the tool allows. whisk dev also runs the migrate command on your own machine before it starts the app.

database: app (default) gives the app its own database. database: shared:<name> gives the app its own schema inside a database shared across the org, for apps that must join across each other. database: none for apps without one. When an app needs data another app of the business keeps, read it from there: a grant in the owning app's migration when both are on one shared database (below), or a call to the other app (§8). Prefer that to a new database or a copy of the data.

In a shared database each app connects as its own role and owns one schema of the same name, app_<app id in lower case>, which is first on its search_path, so unqualified tables land there. Every schema is private to its app until that app grants access; nothing in whisk.yaml opens it. The owning app grants read access in one of its migrations, naming the reader's role (whisk apps info <reader> --json prints the reader's id as app.id; inside an app, select current_user names its own role):

GRANT USAGE ON SCHEMA app_<owner id> TO app_<reader id>;
GRANT SELECT ON ALL TABLES IN SCHEMA app_<owner id> TO app_<reader id>;
ALTER DEFAULT PRIVILEGES IN SCHEMA app_<owner id> GRANT SELECT ON TABLES TO app_<reader id>;

The first two cover the tables that exist; the third covers tables the owner creates later. The reader then queries app_<owner id>.<table> and joins it with its own tables. Grant INSERT, UPDATE or DELETE the same way only when the reader must write; REVOKE takes access back.

Row-level security: one customer never sees another's rows. When the app serves customers (customer_identity), or people who must not see each other's records, every table holding rows that belong to someone gets a policy, so a query that forgets its where still answers only the caller's rows. Add it in a migration, naming the column that holds the owner's X-Whisk-User-Id:

create index orders_owner_id on orders (owner_id);
alter table orders enable row level security;
alter table orders force row level security;
create policy orders_by_audience on orders using (
    current_setting('whisk.audience', true) in ('team', 'system')
    or owner_id = nullif(current_setting('whisk.user_id', true), '')
);

force matters: the app's role owns the table, and an owner skips policies without it. The policy lets the team and the app's own work see every row and a customer only their own. Then every query on such a table goes through the template's helper, which tells Postgres who is asking at the start of one short transaction: dbFor(who(c), (tx) => …) in TypeScript, with db_for(identity(request.headers)) as session: in Python, db.For(ctx, callerOf(identityFrom(r.Header)), func(tx pgx.Tx) error {…}) in Go. Functions and webhook deliveries, which run for nobody in particular, use asSystem (as_system, db.AsSystem); never use it to answer a person's request. A query that skips the helper sees none of the rows and cannot write them, which is the safe way to fail. Keep slow work (calls to other services) outside the helper, since the transaction holds a pooled connection until it ends.

To tailor it: a table every signed-in customer may read but only the team may change (a price list) needs no policy; a team member who should see only their own rows drops 'team' from the list; rows shared by a customer's company use a column holding that company's id instead of the person's. A migration that reads or changes rows of a policy table starts with select set_config('whisk.audience', 'system', true); (DDL needs nothing). whisk db query runs as system and sees every row. Another app reading a shared schema is filtered by the owner's policies too: it sets system the same way when it should see every row. whisk dev connects as a superuser, which policies never filter, so prove isolation on a deploy.

Keep the app's own queries from changing the schema. By default the app connects as the role that owns its tables, so a bug or an injected statement could turn row-level security off, drop a policy or rewrite a table. Set database_role: restricted and the app connects as a second login, <owner>_run, that owns nothing: it reads and writes rows, under every policy, and cannot change a table, a policy or anything else the migrations made. Only the migrate step connects as the owner. Use it for any app whose data is kept apart with row-level security, and for an app moving to Whisk that already runs as a restricted role.

database: app
database_role: restricted          # owner (default) | restricted; needs a migrate command
migrate: "npx prisma migrate deploy"
  • DATABASE_URL in the running app is the run login (pooled, as always); in migrate it is the owner (direct). Use each as-is. Prisma users point url at DATABASE_URL and need no directUrl: the migrate step's DATABASE_URL is already direct.
  • Every table, view and sequence the owner makes is readable and writable by the run login without a grant, now and later (select, insert, update, delete; usage and update on sequences). It has no truncate, cannot create anything, and cannot set role to the owner, so drop any SET ROLE or SET LOCAL ROLE the app used to switch to a restricted role itself: the login already is one.
  • Schema changes belong in migrate alone. An app that creates tables when it starts (create table if not exists at boot, prisma migrate deploy or db push in the start command) fails under the run login with permission denied; move that into migrate. whisk doctor warns (W105, W102).
  • Make a table append-only with policies, not with revoke: give it a for select and a for insert policy and no update or delete policy, and the run login can add rows and never change them. A revoke in a migration also works and lasts across deploys, but a restore that swaps the database in gives the run login its grants on every table again; policies are part of the schema and come back with it.
  • In a shared database, a reader that runs with database_role: restricted connects as app_<reader id>_run: grant that login what you grant app_<reader id>, in the same three statements. It exists once the reader has deployed with the setting, and a grant to a login that does not exist fails, so add it after.
  • whisk db query, db schema and db url act as the owner, so a person can still inspect and repair anything. whisk dev connects as a superuser, so prove the restriction on a deploy.

Turning it on for a live app takes one deploy: it makes the login, grants it everything the owner already has, migrates as the owner and starts the app as the login. Run whisk doctor first, since anything the app changes in the schema while it runs now fails. Removing the line starts the app as the owner again on the next deploy.

Looking at the data from your machine. The database's own address is inside the platform, so connecting to it from outside does not work (whisk db url says so). Use these instead; they run on the platform, need nothing installed, and are audited:

  • whisk db schema --json: the PostgreSQL version and every table with its columns, keys and estimated row count. Read it first when planning an import or a migration.
  • whisk db query "select … limit 20" --json: the rows as JSON, values as PostgreSQL prints them. --file script.sql runs a script. Statements stop after 30 seconds; at most --limit rows come back (1000 by default).
  • Reads and additions run at once. SQL that would change or remove existing data (update, delete, upserts, drop, alter, truncate) does not run: it comes back as CONFIRM_REQUIRED saying what it would do and carrying a code. Check that the effect is what you meant, then run whisk db query --confirm <code>. A restore point is taken first, and the result names the whisk restore --at that undoes it, on a plan with self-service restore. On Free nothing undoes it (details.restorable is false): copy the rows it changes first with whisk db query "select …" --json.
  • Do not put begin or commit in the SQL: each call is already one transaction.

Undoing a mistake. Backups are continuous, and whisk restore returns the database to any minute in the plan's window: the last 7 days on Starter and Team, 30 on Business; Free has no self-service restore. whisk db snapshot marks a restore point before risky work and prints the command that returns to it, or says the plan cannot. whisk restore --at <time or 2h> restores into a new database beside the live one, which whisk db query --database <name> reads, so you can check it first; --swap puts it live. whisk restore --before <deploy-id> goes back to just before that deploy's migration instead. When the live version's migration was the mistake, whisk rollback --data makes the version before it live again on production's data as it was just before that migration: the app's requests wait while the databases change places and that version starts, the replaced database is kept for 7 days, and a rollback that cannot go live puts the database back as it was. A restore runs in the background: add --wait to follow it, or whisk restore show <id> --wait later. An owner or admin downloads all of the business's data with whisk export --wait; its link works for five minutes, and whisk export show <id> signs a new one while the archive is kept (seven days).

Bringing an existing database. When an app moves to Whisk with data it already has, dump the old database in custom format with PostgreSQL 18's pg_dump or older, pg_dump -Fc --no-owner --no-acl -f app.dump "$OLD_DATABASE_URL", deploy the app once so its database exists, then run whisk db import app.dump --wait. The dump is uploaded over HTTPS and loaded into a new database beside the live one, named in the result; check it with whisk db query --database <name>, then whisk db import app.dump --swap --wait makes it the live database and keeps the previous one for 7 days. Owners and grants in the dump are dropped and everything belongs to the app, so the app's migrations must not recreate tables the dump already has. A plain SQL dump is refused; there is no database port to connect to and none is needed. An app on a shared database cannot take an import. Up to 5 GB.

6. Secrets

One key per service in a business. Before you declare a secret, run whisk secrets list --scope org: it lists every key the business holds and which app holds it. When the service already has a key there (Stripe, Xero, a maps API, an SMTP login), use that key: name it exactly as listed, keep the code that reads it, and let the deploy offer it (below). One key for the whole business is simpler for everyone: one value to rotate, one bill, one place to look. Asking a person for a new key, or renaming the secret and rebuilding around a new one, is only for when the business has no key for that service yet, or the person asks for a separate one. If you are unsure, ask the person whether to use the key the business already has; never ask them for a new one first.

Declare names in the manifest; humans set values in the dashboard.

secrets: [XERO_CLIENT_SECRET, SLACK_WEBHOOK_URL]

The value arrives in the environment under that name. Never write a value into code, a file, a commit message or a log line; the push is rejected if a commit contains one, and every value is scrubbed from logs. Never ask the human for a value in chat. When a secret is needed, say:

Set XERO_CLIENT_SECRET at https://whisk.run/o/<org>/secrets. I have declared it; the app restarts when you save it.

whisk secrets declare NAME creates the slot before the first deploy if you want the human to fill it early. whisk secrets set NAME1 NAME2 … never takes a value: it prints one link that opens the secrets page with a paste box ready for those names, so the human pastes them all at once (a .env-style NAME=value block works). Relay that link. Org-scoped secrets are shared by every app in the org; app-scoped ones shadow them. A slot nobody filled, such as one whisk.yaml no longer names, you remove with whisk secrets delete NAME; one with a value only a person deletes.

Previews get a secret only when a person has shared it with previews, so by default a preview runs without production's keys and must cope with them missing. If a preview needs one, run whisk secrets set NAME --previews and relay the link; turning it on is the human's decision.

How the business's key reaches this app. A production deploy that names a key another app of the business holds waits with GRANT_NEEDED (kind secret, whose change names that app) instead of asking for a value: the one tap that allows the deploy shares the value and lets this app read it. Relay that link with everything else the deploy waits on; never send the person to paste the key or to the Keys page as a separate step. Outside production, SECRET_UNSET says which app holds it (details.elsewhere): run whisk secrets share NAME --from <app>. A business secret reaches only the apps on its list (whisk secrets apps NAME), and the deploy's one approval adds the app to it. A preview starts without a business secret its app is not on the list of and says so (SECRET_NOT_GRANTED). Keys never move between businesses. Values shorter than 8 characters are refused (SECRET_TOO_SHORT) because they cannot be scrubbed; put those under env.

7. Jobs and workflows

Enqueue. POST $WHISK_QUEUE_URL with Authorization: Bearer $WHISK_SERVICE_TOKEN and

{"name": "po.created", "data": {"po_id": 1042}, "dedupe_key": "po-1042"}

Returns {"id": "..."}. Events with the same dedupe_key within 24 hours are dropped.

Functions are declared in the manifest with a trigger and a graph, and implemented with the Inngest SDK for the language (the templates wire it). The platform delivers runs to queue.endpoint (default /.whisk/inngest) with the service identity; the SDK verifies each request with WHISK_INNGEST_SIGNING_KEY. Use the SDK the templates use (inngest 4 for TypeScript and JavaScript, inngest 0.5 or later for Python, inngestgo for Go) and give its client all three settings, as the template does:

new Inngest({ id: "my-app", eventKey: process.env.WHISK_INNGEST_EVENT_KEY,
  signingKey: process.env.WHISK_INNGEST_SIGNING_KEY, baseUrl: process.env.WHISK_INNGEST_URL })

When they are wrong the deploy still goes live, with the warning FUNCTIONS_NOT_REGISTERED, and no function runs: read the deploy's warnings (whisk status, or get_deploy) after every deploy that changes functions, and fix that one before saying a schedule works.

functions:
  - name: nightly-margin
    cron: "0 6 * * *"
    tz: Pacific/Auckland
    graph: workflows/nightly-margin.graph.yaml
  - name: po-approval
    event: po.created
    graph: workflows/po-approval.graph.yaml
export const poApproval = inngest.createFunction(
  { id: "po-approval", triggers: [{ event: "po.created" }], retries: 3 },
  async ({ event, step, runId }) => {
    const po = await step.run("fetch-po", () => fetchPo(event.data.po_id));
    if (po.total > 5000) {
      const ok = await approval(step, runId, "request-approval", { to: "owner", title: `PO ${po.id}`, data: po });
      if (ok.decision !== "approved") return;
    }
    await step.run("post-po", () => post(po));
  },
);

Steps are the unit of retry and memoisation: each step.run runs once and its result is kept, so a run resumes after the last completed step. Do work only inside steps; code between steps re-executes on every resume.

Approvals. approval(step, runId, name, {to, title, data}) is a helper each template ships (under 20 lines). It sends the event whisk/approval.requested in a step named <name>/request with {approval_id, to, title, data} where approval_id is <runId>:<name>, then waits in a step named <name> for whisk/approval.decided matching that id, for up to 7 days. The platform renders the approval page, notifies to (an org role such as owner, group:<name>, or user:<email>) and completes the wait with {decision, actor, at, note} where decision is approved or rejected; a timeout resolves to {decision: "expired"}. An owner may always decide; anyone else only when to names them: a role covers that role and the roles above it (owner is above all), so name the lowest role that should decide.

Graphs. Each function has a declared graph so humans can see the workflow and the platform can overlay real runs on it. Step ids are the step names in code.

steps:
  - id: fetch-po
  - id: over-limit?
    branches: { yes: request-approval, no: post-po }
  - id: request-approval
    kind: approval
    next: approved?
  - id: approved?
    branches: { yes: post-po, no: end }
  - id: post-po

Ids ending ? are decisions and need not exist in code. Doctor warns when a graph id has no step in code or a step in code is not in the graph.

Cron is cron: on a function, in tz (default UTC). Nothing runs inside the container on a timer; sleeping apps wake for the run, and an app nobody visits meanwhile sleeps again about 30 seconds after the run's last step rather than after its plan's idle time. After a deploy, check a cron function without waiting for its schedule: whisk cron run <function> starts one run now, exactly as the schedule would, and prints the run id to follow with whisk runs show <id>. The run's event is whisk/cron.run.<function id> with data.cron, so do not branch on the event name. The platform adds that trigger to every cron function; do not send or listen for whisk/cron.run.* yourself. On the Free plan a schedule runs at most every 10 minutes: */5 runs at minutes 0, 10, 20, 30, 40 and 50, and whisk cron list shows the schedule each function runs as. Free apps also sleep after 2 idle minutes and get half a core; one that uses all of it for ten minutes is put to sleep (APP_CPU_SLEEP in its logs), so keep heavy work in small batches.

Engine features. It is Inngest itself (v1.46.0): write standard Inngest code with plain event names ("po.created" in triggers, cancelOn, step.waitForEvent and sends) and everything works as Inngest documents it, priority included. Event names are your app's own: another app's po.created never reaches you. Listen for failures with onFailure (a trigger on inngest/function.* never fires), and invoke only your own app's functions (INVOKE_FOREIGN). Runs that sleep or wait count toward your plan's runs in flight, so set concurrency at or below it. The full table, with limits: https://skill.whisk.run/workflows.md.

Idempotency. Runs retry and events can repeat. Key inserts on an id from the event, use ON CONFLICT DO NOTHING, and make every step safe to run twice. Retries default to 3 with backoff; a run that still fails is parked (RUN_PARKED) and the owner is notified; fix and whisk runs replay <id>. whisk runs list <function> shows a function's latest runs, cron and debounced ones included; --event <id> narrows to the runs one sent event started.

8. Webhooks, other apps and outside systems

Declare the source; the platform receives, verifies and stores every delivery, then calls your handler with a clean request.

webhooks:
  - name: stripe
    preset: stripe                 # see webhook-presets.yaml; or hmac with settings; or token
    secret: STRIPE_WEBHOOK_SECRET  # must also be under secrets
    handler: /hooks/stripe

whisk deploy (and whisk webhooks list) prints https://hooks.whisk.run/<org>/<app>/stripe. Tell the human to paste it into the provider and to set the signing secret. The handler receives POST with the original raw body, the original headers as X-Whisk-Webhook-Orig-*, plus X-Whisk-Webhook-Id, X-Whisk-Webhook-Source and X-Whisk-Webhook-Received-At, with X-Whisk-Audience: service. Respond 2xx within 30 seconds; anything else is retried at 1m, 5m, 30m, 2h and 12h, then dead-lettered for replay. Dedupe on X-Whisk-Webhook-Id: a retry or replay carries the same id, and a delivery that Stripe, GitHub, Shopify, Slack, Linear or a standard-webhooks sender sends again under its own id is not sent to the app again. Any other provider's repeat arrives as a new delivery, so dedupe those on the provider's id in the payload. The handler does not need to be in routes.public and cannot be reached from the internet. ip_allowlist (CIDRs) also refuses deliveries from anywhere else; a provider with no preset uses preset: hmac with its signature settings under hmac (the fields of a preset in webhook-presets.yaml). A provider that checks the address first by sending a value to echo (Business Central, Microsoft Graph: ?validationToken=) needs handshake: {query: validationToken} on the source; the platform answers it and the handler never sees it. whisk webhooks events <name> lists recent deliveries with why the last attempt failed (the handler's status and answer), and whisk webhooks replay <name> <id> sends one to the handler again.

Receiving email. Declare an inbox and every message to the app's address is stored, then delivered to the handler like a webhook: verified, retried, listed and replayable. The Team plan and above include an inbox; on Free and Starter every message is dropped (W080 says so).

inbox:
  handler: /inbound/email
  allow_from: ["@lab.example", "results@other.example"]   # optional; anyone when absent

whisk inbox prints the address, <app>.<org>@in.whisk.run; <app>.<org>+anything@… reaches the app too, with anything as tag. A business that wants its own address runs whisk inbox domains add results.yourbusiness.com, publishes the MX record it prints, then whisk inbox domains verify <id>: every address at that domain then reaches this app. Use a subdomain that receives no other mail. The handler receives POST with Content-Type: application/json, the same X-Whisk-Webhook-* headers as a webhook with source inbox, and this body:

{"message_id":"<b7@lab.example>","from":"Lab <results@lab.example>","from_address":"results@lab.example",
 "to":["lab.acme@in.whisk.run"],"cc":[],"recipient":"lab.acme@in.whisk.run","tag":"","subject":"Batch 7",
 "text":"See attached.","html":"","text_truncated":false,"html_truncated":false,
 "authentication":{"spf":"pass","dkim":"pass","dmarc":"pass"},
 "raw":{"upload_id":"01J…","key":"app/01J…/inbox/…/message.eml","bytes":48213,"content_type":"message/rfc822"},
 "attachments":[{"filename":"b7.pdf","content_type":"application/pdf","upload_id":"01J…","key":"app/01J…/inbox/…/1-b7.pdf","bytes":40120}],
 "received_at":"2026-10-09T08:00:00Z"}

The original message and each attachment are already in the app's storage: read one with GET /v1/orgs/<org>/apps/<app>/uploads/<upload_id> and the service token, which answers a link to it, or by key with the storage client when the app declares storage: true. text and html stop at 1 MB each; the original holds the rest. Dedupe on X-Whisk-Webhook-Id or message_id. Mail is dropped, never bounced, when it is over 25 MB, from a sender allow_from does not accept (a whole address or @domain; a message failing DMARC never matches), past 30 a minute, 1,000 or 1 GB a day, or unreadable; a dropped message is still listed with its reason and cannot be replayed (INBOX_MESSAGE_DROPPED). whisk webhooks events inbox and whisk webhooks replay inbox <id> work on messages as on any source. Locally, with whisk dev running, whisk inbox send message.eml (or --from, --subject, --text, --attach) delivers a test message the same way.

Calling another of the business's apps. When one app needs an answer from another now (the website asking the stock app for today's price, a customer portal asking the orders app where an order is), call it directly instead of copying its data. Both apps say so. The caller names the apps it calls in its whisk.yaml:

calls: [orders]
env: { ORDERS_APP_ID: "01J..." }   # whisk apps info orders --json prints it as app.id

and the app being called names who may call it in its own whisk.yaml, then deploys:

accepted_callers: [website]       # the orders app accepts calls from website and nobody else

then send ordinary HTTP to http://<app id>.internal.whisk:8443/<path> with Authorization: Bearer $WHISK_SERVICE_TOKEN. The call never leaves the platform. The other app receives it with X-Whisk-Audience: service and X-Whisk-Service-App naming the caller's app id, so it can also decide per route. Once the called app adds the caller and deploys, the caller's calls pass. A call the other app does not accept is CALLER_NOT_ACCEPTED, and the caller's deploy and whisk doctor (W121) say which line the other app needs. An app with no accepted_callers line accepts only the apps that called it before this rule, for one platform release; its deploys carry ACCEPTED_CALLERS_MISSING and whisk doctor (W120) names them, so add the line listing only the callers you expect. Calling an app not listed in calls is FORBIDDEN_ROLE, and a call without the token is AUTH_REQUIRED. A preview calls the other app's production. Events stay inside the app that sent them (§7), so between apps: read another app's tables through a shared database (§5); call it to ask something or to have it act by its own rules; to hand over work that can wait, call a route that sends an event to the other app's own queue and answers 202 at once.

Routes only apps may call. List them under routes: as apps: ["/internal/**"]. The edge refuses everyone but another app's service call there, signed-in people included.

Apps Whisk runs for the business. Some apps in a business are managed apps: Whisk supplies their code and keeps them up to date (whisk apps marks them managed; the ERP link is one). You cannot push to, clone or deploy one (APP_MANAGED). Add one with whisk managed add <product> --link <role>=<app>, change what it lets you set with whisk managed set <app> NAME=value, and pause or resume it with whisk pause and whisk resume. A copy linked to your app can call it, and your app finds the copy's id in WHISK_LINKED_<PRODUCT> (for the ERP link, WHISK_LINKED_ERP_LINK) after its next start; a product whose copies differ by a setting (the ERP link's MARKET, one per market) may have several on one app, listed there as id,au=id. When a copy reports something only a person can fix (for the ERP link, signing in to the ERP again), Whisk emails the business's owners once. The managed: block (product:, name:, settings:, links:, link_key:, variants:, notify:) only means something in Whisk's own source apps; elsewhere it is ignored.

Reaching the internet. By default (egress: open) an app calls any public internet address itself, on any port but the mail ports (25, 465, 587: send mail with email: true), over IPv4. Private and internal addresses are unreachable, and an app opens at most 200 new connections a second. So an app can deliver its customers' webhooks to the addresses they give it and call public APIs directly; for a service a person grants access to, use a connection (below), so the app never holds the key. egress: closed lets the app reach only its own database and cache, the apps it calls, its connections and email, never the rest of the internet: use it for an app that holds data it must never send anywhere else.

Services outside Whisk: connections. Reach an outside API (an ERP, accounting, CRM, a payment provider) through a connection, so the app never holds its key. Whisk's broker makes each call, checks it against what a person granted, adds the credential and sends it on.

connections:
  erp:                                     # the app gets WHISK_CONNECTION_ERP_URL
    url: https://api.example-erp.com/v2    # https, no query, no credentials
    auth:                                  # how a request is signed; empty for an API with no key
      headers:
        Authorization: "Bearer {secret.ERP_API_KEY}"
    operations:                            # only these calls pass; ask for the least you need
      - { name: Read stock levels, method: GET, path: "/stock/**" }
      - { name: Create sales orders, method: POST, path: /orders }

Call $WHISK_CONNECTION_ERP_URL/stock/42 with the header Whisk-Service-Token: $WHISK_SERVICE_TOKEN (or Authorization: Bearer $WHISK_SERVICE_TOKEN when the API's own credential goes in another header); a client library pointed at that address needs only that default header. Never put the API's key in code or under secrets: the keys a recipe reads (secret.NAME) are declared for you, a person sets them, and they never reach the app.

The recipe is text with {expression} placeholders built from fixed functions, so any API's sign-in can be described: basic(secret.USER, secret.PASSWORD); a signature such as {base64(hmac_sha256(secret.KEY, concat(request.method, request.path, time.unix)))} with {time.unix} in another header; a token step that posts a client id and secret and places {token}; a signed JWT, {jwt('RS256', secret.KEY_PEM, json('iss', secret.EMAIL, 'iat', time.unix, 'exp', add(time.unix, 3600)))}.

References: secret.NAME; request.method (upper case), request.url (the whole upstream address), request.host, request.path (escaped, without the query), request.query (the raw query string exactly as sent, without ?, and empty when there is none) and request.body; time.unix, time.unix_ms, time.rfc3339, time.http, time.amz and time.date; nonce and uuid (fixed for one call, so a header and the signature over it agree); token (with a token step or a sign-in); vendor.client_id and vendor.client_secret. Functions: hmac_sha1, hmac_sha256, hmac_sha512 (key, message); sha1, sha256, sha512; base64, base64url (no padding), hex, base64_decode, hex_decode; urlencode, upper, lower, trim, sort_query (pairs ordered by name, encoding kept); concat; basic(user, password); add(a, b) on whole numbers; json('name', value, ...); jwt('ALG', key, claims[, kid]); and sign('ALG', key_pem, message) (RS256, RS384, RS512, PS256, ES256, EdDSA; jwt also takes HS256, HS384, HS512). Hashes, HMACs and signatures are raw bytes, so wrap them in base64, base64url or hex. The broker sends on the query the app sent, byte for byte, so build it once and keep a client library from encoding it again. Unleashed, for example, signs the query string:

    auth:
      headers:
        api-auth-id: "{secret.UNLEASHED_API_ID}"
        api-auth-signature: "{base64(hmac_sha256(secret.UNLEASHED_API_KEY, request.query))}"
        client-type: your-business/your-app
        Accept: application/json

A person grants each connection, freshly signed in, on the app's Keys tab. The first production deploy, and any deploy that changes the address or recipe or adds an operation, waits with GRANT_NEEDED: relay its names and link to the human, and say plainly what each operation lets the app do. Previews are refused until a person grants previews too. Use a connection for every outside API whose key the app should not hold; one with no key can still be a connection, with an empty auth. The broker's own refusals carry the header Whisk-Broker: refused and an error code (CONNECTION_NOT_GRANTED, CONNECTION_PAUSED, CONNECTION_LIMIT, CONNECTION_REQUEST_AMBIGUOUS, CONNECTION_BUSY, ...); anything else is the API's own answer. A connection with auth.body (Odoo 16 to 18) needs a JSON body with a placeholder at each of its pointers; the broker fills in the key. A system with its own certificate takes pin: sha256/… (ask the human for its public key's hash). When the outside system wants a certificate you upload (NetSuite), name keypair: {secret: NAME} and sign with that secret: never make or ask for a private key; the human presses "Make key pair" on the connections page and uploads the certificate it offers. When the system wants a person to sign in and allow the app (Xero, MYOB, QuickBooks, Google, Microsoft: "OAuth", "Connect to Xero"), name auth.sign_in with a label (the system's name, for its "Sign in to …" button), its authorize and token addresses, the client ID and secret as {secret.NAME} and the scopes (include the one that keeps the sign-in, such as offline_access), and put Bearer {token} in a header; tell the human to register an app with the system whose redirect URI is https://auth.whisk.run/connections/callback, set its ID and secret, and press "Sign in" on the connections page once they allow it. Until then calls are CONNECTION_SIGN_IN_NEEDED; relay its link. Anything else the system wants on each call (Xero's Xero-Tenant-Id) the app reads through the connection and sends itself. Send plain paths with the real method: dot segments, ; parameters and method override headers are refused. Redirects come back to you unfollowed, and a credential the API echoes back arrives as [redacted by Whisk]. Each connection may make 600 calls a minute and 100,000 a day unless someone changed that. When the app's work needs more, raise them with whisk connections limit NAME --calls-per-minute <calls> or --calls-per-day <calls>, which holds from the next call with no push, and keep them below what the outside system itself allows. If the app may be misbehaving, whisk connections pause NAME stops its calls at once. A system that is not HTTP (a database, SFTP) still uses a plain secret (§6).

AI models: a connection with a spend cap. Every call to an AI model's API (OpenAI, Anthropic, Gemini, OpenRouter, Mistral, Groq, xAI, DeepSeek and the rest) goes through a connection with ai:. Never put an AI provider's key under secrets: a key set there is saved on hold and never reaches the app (SECRET_HELD). Whisk reads what each answer cost from the fields you name, adds it up, and stops the connection's calls when the cap is reached, with an email to the business.

connections:
  openai:
    url: https://api.openai.com/v1
    auth: {headers: {Authorization: "Bearer {secret.OPENAI_API_KEY}"}}
    operations:
      - {name: Write replies, method: POST, path: /chat/completions}
    ai:
      spend_cap: {per_month: 50}   # optional: the limit your person chose, in US dollars
      cost:
        - {at: /usage/prompt_tokens, usd_per_million: 2.50}
        - {at: /usage/completion_tokens, usd_per_million: 10.00}

The spending limit is the person's money, so talk it through with them. Say what the app uses the model for, roughly what one use costs at the model's prices, how many uses a day you expect, and suggest a limit from that (per_day, per_week, per_month, total, in US dollars, any mix). Tell them that when it is reached the app's calls to the model stop until the window ends (or, for total, until it is raised), and that they get an email saying so. Write the numbers they chose as spend_cap: the person sees them filled in when they allow the connection and can change them there. Later, set a new limit they ask for with whisk connections limit NAME --per-month <dollars>; it is in force from the next call, with no push. The person can also change it themselves on the app's page. Take each cost part's price from the provider's pricing page for the model the app uses, and list every place the count appears, streamed and not. OpenAI's chat completions and the APIs that copy it (Mistral, Groq, xAI, DeepSeek) count /usage/prompt_tokens and /usage/completion_tokens; OpenAI's responses API and Anthropic /usage/input_tokens and /usage/output_tokens (Anthropic's stream also starts with /message/usage/input_tokens); Gemini /usageMetadata/promptTokenCount and /usageMetadata/candidatesTokenCount; OpenRouter states its cost as /usage/cost, priced usd_each: 1. Ask for usage in streams where the provider needs it (OpenAI: stream_options: {include_usage: true}). An answer that names no cost part stops that deploy's calls (AI_COST_UNREADABLE) until a deploy fixes the parts. Over a cap, calls answer 429 AI_SPEND_CAP: show the person a calm message that the AI feature is paused, never an error page, and keep the rest of the app working.

A deploy that carries SECRET_HELD names an AI key Whisk found under secrets and put on hold. Move it: declare an AI connection whose recipe reads {secret.NAME}, take the name out of secrets, point the app's client at $WHISK_CONNECTION_<NAME>_URL with the service token as above, walk the person through the limit, and push. The value stays as it is, so nobody sets it again; the person grants the connection and the app's AI features work again.

9. Storage, email, key-value

Storage (storage: true). Use any S3 client with WHISK_STORAGE_ENDPOINT, WHISK_STORAGE_BUCKET, WHISK_STORAGE_ACCESS_KEY, WHISK_STORAGE_SECRET_KEY, WHISK_STORAGE_REGION, writing under WHISK_STORAGE_PREFIX, which is this environment's own. The key reaches only that prefix: always list with the prefix, never the whole bucket, and keep no other app's file paths. Read the bucket's name from WHISK_STORAGE_BUCKET each time the app starts, never a copy of it: an app is given a bucket of its own once, with every file at the same key, and starts again with the new name. A preview has its own prefix and key, apart from production's. Use path-style addressing (forcePathStyle: true in the AWS SDK for JavaScript, addressing_style: "path" in boto3, BucketLookupPath in minio-go): the bucket goes in the path, not the hostname. The endpoint is reachable from your app and from browsers alike.

Files people send. A request to your app carries at most the plan's body_bytes (8 MiB on Starter and Team, 32 MiB on Business; a Promoted app has its plan's), and a bigger one is refused at the edge with 413 BODY_TOO_LARGE. So any file a browser sends goes straight to storage instead: images, video, documents and attachments on a form alike. POST /v1/orgs/<org>/apps/<app>/uploads with the service token and {filename, content_type, max_bytes} answers {id, key, url, fields, expires_at}: post the file to url as multipart/form-data with every entry of fields first and the file last, then send your app the upload's id with the rest of the form. The store refuses anything larger than max_bytes or of another type, and the bytes never pass through your app. One upload may be up to 5 GB (max_bytes 5368709120). GET /v1/orgs/<org>/apps/<app>/uploads/<id> gives you a link to read one back. Every upload is virus-scanned: an infected one moves to quarantine/ and reading it answers OBJECT_QUARANTINED. What your app writes to storage itself with its key is its own and is not scanned, so an app that keeps mail or other files it fetched keeps every one of them. The business's storage allowance counts its files, its databases and its apps' git repositories alike, so images and media committed to the repository use the allowance too; put what visitors or staff add in storage, not in git. Files you bring yourself, such as the videos and photos of a website you are moving to Whisk, go up with whisk uploads add <file>... [--public] [--wait], which prints each upload's id and the element that shows it; if it stops part way, run the same command again and it carries on; whisk uploads list and whisk uploads show <id> read them back, and whisk uploads delete <id> removes one you uploaded yourself (your person removes any other). Your app removes one of its own with DELETE /v1/orgs/<org>/apps/<app>/uploads/<id> and WHISK_SERVICE_TOKEN: the file, its converted copies and its record go together. The virus scan reads files up to 100 MB: a larger one is stored without a scan, with status unscanned, and your app can still use it. If a file must be scanned before it is used, split it into pieces under 100 MB before uploading.

Video and audio. Never stream video through your app or hand out the 15-minute read link for it. Authorise the upload as above with its real content_type (video/mp4, video/quicktime, audio/mpeg…) and "visibility": "public" if anyone may watch it (a product video on a website) or leave it private (only people signed in to the app). Whisk converts it for every browser and phone, makes a poster image, and serves it from the app's own address, which never expires. Store the upload id; to show it, load the player and use the element:

<script src="/.whisk/player.js" defer></script>
<whisk-video media="UPLOAD_ID"></whisk-video>      <!-- or <whisk-audio media="UPLOAD_ID"> -->

The player picks a quality for the viewer's screen and connection and plays the original while the conversion runs. To put a public video on another website, use the absolute script URL (https://<app host>/.whisk/player.js) with the same element, or an iframe of https://<app host>/.whisk/media/<id>/embed. GET /.whisk/media/<id> (from the page) says the status, duration, size and sources; PATCH /v1/orgs/<org>/apps/<app>/uploads/<id> {"visibility": "public"} changes who may watch. The largest copy Whisk makes is 1080p, so when a site already has a 1080p encode of a video, upload that rather than a 4K original: it plays the same and goes up many times faster. Converting is a monthly allowance (minutes of media); past it, new videos play as uploaded until the month turns.

Images. Never resize pictures in your app or serve the original of a photo. Authorise the upload as above with its real content_type (image/jpeg, image/png, image/heic…), public if anyone may see it (a product photo on a website) or left private (only people signed in to the app), store the upload id, and put the image's own address in the page:

<img src="/.whisk/img/UPLOAD_ID?w=800" width="800" alt="…">
<img src="/.whisk/img/UPLOAD_ID?w=96&h=96&fit=cover" width="96" height="96" alt="…">  <!-- a square crop -->
<img srcset="/.whisk/img/UPLOAD_ID?w=400 400w, /.whisk/img/UPLOAD_ID?w=800 800w, /.whisk/img/UPLOAD_ID?w=1600 1600w"
     sizes="(max-width: 600px) 100vw, 800px" src="/.whisk/img/UPLOAD_ID?w=800" alt="…">

w and h are 1 to 4096 pixels; it fits inside them, or with fit=cover fills both and crops the edges. It is never made larger than the original. Each browser gets AVIF or WebP when it shows them; add format=jpeg (or png, webp, avif) where something else needs one format, such as an email or an og:image. Each size is made the first time it is asked for and kept, so use a few fixed sizes rather than the exact width of every screen. The address works the moment the upload finishes and never expires; on another website use the absolute https://<app host>/.whisk/img/<id>?w=800 of a public image. Errors: IMAGE_NOT_READY (the upload has not finished; retry), IMAGE_UNREADABLE (not a picture it can read, or over 50 megapixels), NOT_AN_IMAGE (the upload is not image/*). GET …/uploads/<id> gives the address as image.path.

Documents and other files. Every upload, whatever its type, opens at /.whisk/file/<id> on the app's own hostname: a PDF, a spec sheet, a CAD or 3D model file, a zip. Upload it public (whisk uploads add <file> --public, or "visibility": "public") when anyone may open it, such as a download on a website, and link the address; it never expires, needs no server code, and opens under the file's own name on the app's own domain. Whisk sets its type from the file's name (STEP, GLB, STL, DWG and the rest, from the open mime-db list) and compresses what compresses, so do not set a content type or zip files yourself. When a file moved from an old address that search engines know, name that address as canonical: whisk uploads set <id> --canonical https://example.com/old/spec-sheet.pdf (or PATCH …/uploads/<id> {"canonical": "…"}), and the file answers with Link: <…>; rel="canonical". A private one opens for people signed in to the app, or through a signed link. GET …/uploads/<id> gives the address as file_path (and file_url on the app's hostname). Error: FILE_NOT_READY (the upload has not finished or its scan; retry).

<a href="/.whisk/file/UPLOAD_ID">Installation guide (PDF)</a>

A website's own files at their own paths. A static site's downloads, drawings, posters and other large files belong in storage, not in the repository, and they can keep their ordinary paths: put them in a folder laid out as the site links them and run whisk uploads add <folder> --public --keep-paths, so <folder>/posters/install.jpg answers at /posters/install.jpg on every hostname of the app wherever the app itself has nothing at that path. Link them by those paths; there is no id to keep in the site, no manifest and no redirect list, and old links to a moved site's files keep working. The app's own pages always win, and a path nothing names gets the app's 404. Upload the folder again after a change: a file uploaded to a path again replaces the one there once it is scanned. One file: whisk uploads add <file> --public --path /specs/a.pdf, or whisk uploads set <id> --path /specs/a.pdf (PATCH …/uploads/<id> {"path": "…"}; "" removes it). GET …/uploads/<id> gives it as path.

Signed links (an app with its own sign-in). A private upload's addresses answer only people signed in through Whisk. If the app keeps its own accounts (an app moved onto Whisk with its own login), do not keep your own image resizing (sharp, Pillow) or stream private photos and video through the app: have the server sign the addresses. After checking that the person may see the file, ask with the service token, server side only, and put the answered path in the page:

const { links } = await signMedia(["/.whisk/img/UPLOAD_ID?w=800", "/.whisk/media/VIDEO_ID", "/.whisk/file/DOC_ID"], 3600);
// Python: sign_media([...], expires_in=3600); Go: signMedia(ctx, []string{...}, time.Hour)
// = POST /v1/orgs/<org>/apps/<app>/uploads/links {"paths": [...], "expires_in": 3600}
<img src="/.whisk/img/UPLOAD_ID?w=800&exp=…&kid=…&sig=…" width="800" alt="…">
<script src="/.whisk/player.js" defer></script>
<whisk-video src="/.whisk/media/VIDEO_ID?exp=…&kid=…&sig=…"></whisk-video>

Write each path exactly as for a signed-in page, with the size it asks for (one link per size, up to 100 paths per call); a video's link also covers its /embed, /poster.jpg and every quality. A link opens the file for anyone who has it until it expires, an hour unless expires_in says (60 seconds to 12 hours), so sign links each time the page is drawn and never store or email them; the same path asked for again within a quarter of its lifetime is the same link, so browsers keep the picture cached. Change nothing in a link: another size, a later exp or another app answers 403 MEDIA_LINK_INVALID, an old one 403 MEDIA_LINK_EXPIRED (draw the page again). The address without its signature still needs a Whisk sign-in. If a link leaks, whisk uploads rotate-key --now stops every link issued; without --now old links run out on their own. whisk uploads link <path> prints a link to look at a private file as a stranger would.

Files a job keeps between runs. Do not rebuild a directory tree in the database. Set storage: true and use the template's tree helper: pull the tree into a directory under /tmp at the start of a run, work on ordinary files, and push as you go and at the end. It moves only what changed, so a tree of thousands of files syncs in seconds.

const s3 = storageClient()!;
await pullTree(s3, "transcripts", "/tmp/work");   // Go: PullTree, Python: pull_tree
// ... the job reads and writes /tmp/work ...
await pushTree(s3, "transcripts", "/tmp/work");   // push after each batch, not only at the end

Take a lease row in the database first (insert ... on conflict do nothing, with an expiry) so two runs never work on the same tree, and release it when done. /tmp is memory: the pulled tree and the process share WHISK_MEMORY_BYTES (256 MiB on Free, 512 MiB on Team). Keep a pulled tree under half of it; for anything bigger, pull only the part a run needs or read and write objects by key instead of copying the tree. Near the limit (85 %) the app's log shows APP_MEMORY_HIGH with the numbers. An app over its limit is killed mid-run with no SIGTERM: whisk logs shows a whisk: line from the platform at that moment and the next run's log starts with APP_OUT_OF_MEMORY, the function runs it cut off are failed with that code, and the org's owners are told (at most once a day per app). whisk apps info shows the app's memory now and its peak against the limit; check it after a job's first real run. There is no persistent disk, by design: the app can move, sleep and wake anywhere, and everything in storage is backed up.

Email (email: true). POST /v1/orgs/<org>/apps/<app>/email/send with the service token and {to, subject, html, text, from}; to is one address or a list. Addresses are plain ASCII: a name before one may hold any letters (Zoë <zoe@example.com>), but an address with accents is refused with INVALID_REQUEST, since mail servers refuse it (a domain with accents goes in its xn-- form). Leave from out and the mail goes from the business's own address on Whisk's domain, <app>.<org>@whisk.page, under the app's name, with no setup; from: "Training <training@whisk.page>" sends as training.<org>@whisk.page instead. To send from the business's own domain, an owner or admin adds it with whisk email domains add <domain> (or under Settings, Email), creates the DNS records it prints, runs whisk email domains verify <domain>, and from names an address on it; any other domain gets EMAIL_DOMAIN_UNVERIFIED naming the domains that are. Set reply_to when people should be able to answer. Email is for transactional mail a person asked for or needs now, never mailings: one business may use only a share of Whisk's shared sending allowance, and past it sends answer EMAIL_RATE_LIMITED until the day or month resets. attachments adds files, up to 10 and 10 MB together: {filename, content_type, content} with the file base64, or {filename, storage_key} with the full key of a file the app keeps in storage (WHISK_STORAGE_PREFIX + name), which suits a generated PDF report. For a logo in the mail, give the image a content_id and show it in html with <img src="cid:logo">; every inline image must be shown and every cid: must have its image. Programs and scripts (.exe, .js, .bat, …) are refused with EMAIL_ATTACHMENT_BLOCKED; the other refusals are EMAIL_ATTACHMENT_INVALID, EMAIL_ATTACHMENT_TOO_LARGE and EMAIL_ATTACHMENT_NOT_FOUND, each with a fix. Locally whisk dev checks the same rules and keeps the mail instead of sending it: GET <api>/v1/orgs/<org>/apps/<app>/email/sent lists it. When each of your app's customers wants mail from their own domain (a white-label app), register it with the service token: POST /v1/orgs/<org>/apps/<app>/email/domains {domain} answers id, status: "pending" and dns_records (DKIM, SPF and the return path's MX, full names). Show the customer those records to publish, keep the id against the customer, then POST .../email/domains/<id>/verify until status is verified (it asks at most every 30 seconds); from on that domain then works for your app only. GET .../email/domains lists them and DELETE .../email/domains/<id> removes one when the customer leaves. A domain another business or app already has is EMAIL_DOMAIN_TAKEN; the plan caps them (PLAN_LIMIT_EMAIL_DOMAINS) and the free app has none. whisk dev answers these routes locally and verifies at once. The send answers 202 with an id; keep it with the record the mail is about. Send an Idempotency-Key header that names the message (the record's id and what the mail is, such as order-1042-confirmation): the same send under the same key within 24 hours is that message, sent once, so a send that timed out or answered PLATFORM_UNAVAILABLE is safe to make again, and a different message under a used key is INVALID_REQUEST. To learn what became of the message, GET /v1/orgs/<org>/apps/<app>/email/sends/<id> with the service token (or whisk email status <id>) answers status and events: sent (the provider took it, nothing heard since), delayed, delivered (the receiving server accepted it), failed, bounced (with the reason in detail) or complained (the recipient marked it as spam): the furthest the message got, a complaint, bounce or failure for any recipient outranking it, so with several recipients delivered can mean only some of them. Nobody can know whether a delivered message went to the inbox or the spam folder; only a complaint is reported, so never tell a person their mail "reached the inbox". Stop mailing an address that bounced or complained. Delivery is kept 30 days, and an id that is not your app's or is older answers EMAIL_SEND_NOT_FOUND. Under whisk dev a kept message stays sent. Transactional only: at most 20 recipients a message and 100 a minute. The plan includes a daily allowance; past it a paid plan keeps sending and is billed, and the free app stops (it also stops at 50 a month). EMAIL_RATE_LIMITED says which limit with details.period.

Push notifications (every plan, nothing to declare). Whisk holds your app's signing key, delivers to every device a person turned notifications on for, retries while a push service is busy, forgets devices that are gone, and can email the person instead. Do not add web-push, VAPID keys or a push service of your own.

  1. On a page, <script src="/.whisk/push.js"></script>. await Whisk.push.state() is unsupported, needs-install, denied, off or on: show a "Turn on notifications" button for off, and for needs-install say to add the app to the Home Screen first: an iPhone or iPad shows notifications only from an app added to the Home Screen. Link Whisk's web manifest, made from the app's name and its sign_in colours and logo, with <link rel="manifest" href="/.whisk/manifest.webmanifest">, unless the app serves its own. From the button's tap, await Whisk.push.enable({ register }), where register(subscription, { label }) posts to a route of your own. Call Whisk.push.sync({ register }) on each page load so a renewed device reaches you, and Whisk.push.disable({ unregister }) to turn it off. enable rejects with e.code PUSH_DENIED, PUSH_NEEDS_INSTALL or PUSH_UNSUPPORTED; show e.message.
  2. That route, for the signed-in person, calls POST /v1/orgs/<org>/apps/<app>/push/devices with the service token and {user, subscription, label}, where user is your key for the person: X-Whisk-User-Id with Whisk's sign-in, or your own user id with your own. A person may have several devices; the same browser signed in as someone else moves to them. GET …/push/devices?user= lists them and DELETE …/push/devices?user=&endpoint= removes a person's devices, or one.
  3. To notify, POST /v1/orgs/<org>/apps/<app>/push/send with the service token and {to, title, body, url}: to is one user key or up to 500, url a path on your app (or an https address) that a tap opens. Optional: tag (a newer notification with the same tag replaces the older one on the device), icon, data (handed to the page), ttl (seconds it stays worth delivering, default a day), urgency (very-low, low, normal, high), and fallback_email, which Whisk emails the title, body and a link when no device took it (as your app's email, counted against its allowance). Send an Idempotency-Key header, such as the id of what happened, so a retried send notifies once. It answers 202 {id, devices, status}; GET …/push/sends/<id> says what became of each device's copy (delivered, retrying, gone, refused, expired) for 7 days. A notification is at most 3.7 KB of JSON (PUSH_TOO_LARGE): send an id in data and fetch the rest. At most 5,000 devices a minute (PUSH_RATE_LIMITED). Notify for what the person asked to hear about, never marketing.

An app with its own service worker keeps it: add importScripts("/.whisk/push-sw.js") to it and pass { registration: await navigator.serviceWorker.ready } to enable, sync and disable. To subscribe with code of your own, WHISK_PUSH_KEY is the key to subscribe with (applicationServerKey), and the notification your worker receives is {title, body, url, tag, icon, data, send}. Whisk's worker opens a click's url by focusing a window already on it, else navigating one of the app's windows there, else opening one. To open it your own way (say, routing in place without a reload), add your notificationclick listener before the importScripts line and call event.stopImmediatePropagation() in it. Under whisk dev notifications are kept, not sent: GET …/push/sent lists them.

PDFs (invoices, statements, reports). Typeset them with Typst, one static binary and no browser: download one exact release in a build stage and copy the binary into the final image, so an upgrade never changes a document. Not headless Chrome (puppeteer, playwright), which takes hundreds of MB, more than a small plan's whole memory, and seconds to start. The fonts are the app's own: keep the font files in the repository and pass --font-path with --ignore-system-fonts, so a document looks the same in whisk dev and on Whisk. Read the data, end the database transaction, then render, so a slow document never holds a connection. Give each render a deadline shorter than the request's and let only two run at once, queueing the rest, so a burst of reports cannot use up memory or keep /health from answering. A render's memory counts against WHISK_MEMORY_BYTES (256 MiB on Free): render a long pack of many pages with images in a job (§7), or in parts. Write each finished PDF to storage under WHISK_STORAGE_PREFIX and keep its key: serve it from there rather than rendering it again, and email it by storage_key.

Key-value (kv: true). Any Redis client with WHISK_KV_URL. The instance is the app's own, so no prefix is needed. Use it for counters, short caches, locks and job queues. It is not durable: it empties when the app sleeps, so keep anything that must survive in the database. When the cache is full it drops the keys used least recently. A job queue loses jobs that way, so an app that runs one on the cache (BullMQ, Bull, Bee-Queue, Medusa's Redis event bus or workflow engine, RQ, Celery, Dramatiq, arq, asynq) sets kv_evict: false: the cache then keeps every key and refuses new writes until there is room. Changing kv_evict restarts the cache, which empties it. Starter and above include it; the free app does not, so there the app deploys without a cache, WHISK_KV_URL is unset, and the push and the app's logs say so with W080. Remove kv or ask an owner to move to Starter. A free app that already had a cache keeps it.

10. Local development

whisk dev needs Docker with the compose plugin. It starts Postgres, the workflow engine and a local edge that injects identity, runs the migration, then runs the command after -- with the same environment the app has in production:

whisk dev --as ana@acme.example --groups finance --roles owner -- npm run dev       # ts
uv run whisk dev --as ana@acme.example --roles owner -- uvicorn app.main:app --port 8080   # py
whisk dev --as ana@acme.example --roles owner -- go run .                          # go

Without -- <command> it prints the environment and expects the app on port 8080, started by you. Requests to localhost:3000 carry the headers for that person; public routes behave as in production; /.whisk/login and /.whisk/logout work. Secrets for local runs come from .whisk/dev/secrets.env, which is git-ignored and filled by the human. Webhooks locally: whisk dev tunnel stripe prints the URL to paste into the provider and forwards every verified delivery to the app running here for an hour. Email locally: whisk inbox send message.eml hands a message to the inbox handler, stored and delivered as on the platform (§8).

Before the CLI is installed, whisk-stub (contract/cmd/whisk-stub in the public whisk CLI repository, go run it from there) does the same job with an existing Postgres and the Inngest dev server.

11. When something fails

Every error is {"error": {"code", "message", "fix", "docs", "details"}}. Read code, do what fix says. A code starting PLATFORM_, or details.fault: "platform" on a deploy or a run, is Whisk's side: do not change your code or write workarounds for it. Deploy again, or wait. A run Whisk interrupted (PLATFORM_RUN_INTERRUPTED) before any step finished is run again by Whisk once, and rerun_run_id names the new run; one with a finished step is yours to replay. Set retries in the function's options in code and the engine retries a lost step inside the same run itself; retries in whisk.yaml only describes it for people. details.fault: "app" is yours to fix. The ones you will meet most:

CodeDo this
MANIFEST_INVALIDfix each problem in details.problems; whisk doctor lists them
SECRET_IN_COMMITremove the value, declare a name, rewrite the commit, rotate the value
SECRET_UNSETrelay the names and URL to the human; nothing else
HEALTH_CHECK_FAILEDlisten on PORT on 0.0.0.0; make the health route return 200; read the log excerpt
CONTAINER_CRASHEDthe app exited; read the log lines (whisk deploys log <id>), usually a missing variable or file
FUNCTIONS_NOT_REGISTEREDa warning on a live deploy: make each function name in whisk.yaml the id the code uses
PACKAGE_MALICIOUSa lockfile names a known malicious package: remove it and whatever brought it in, never install it to look, and if it was ever installed ask the human to rotate the secrets it could read
PACKAGE_LOOKALIKEa warning on a live deploy: a dependency's name looks like a popular package's; fix the typo and redeploy, or leave it if the name is right
BUILD_FAILEDread the log excerpt; usually a dependency or compile error
MIGRATE_FAILEDfix the migration and redeploy; the message says whether the database was rolled back and where users' writes were kept
AUTH_REQUIREDthe route is private; list it under routes.public or sign in; from the CLI, whisk login
FORBIDDEN_ROLEyour token's role cannot do this; tell the human which permission it needs, do not log in again
AGENT_CATEGORYthe human has not allowed agents this kind of action (details names it); ask them to allow it in the dashboard or do it themselves
AGENT_PAUSEDthe human paused this agent; stop and tell them, nothing else works until they resume it
CSRF_REJECTEDPOST from the app's own pages, or use a bearer token
RUN_PARKEDwhisk runs show <id>, fix the step, deploy, whisk runs replay <id>
PLATFORM_DEPLOY_FAILEDnot the code; run whisk deploy again, and wait a few minutes if it repeats
RATE_LIMITEDwait Retry-After
PUSH_BEHINDsomeone else pushed first: run the git rebase or git merge the fix names, resolve details.conflicts, test, deploy again; never force-push

whisk logs --since 1h --grep <request id> finds a request. whisk runs show <id> shows a workflow run step by step. whisk errors <CODE> prints the full entry from errors.md. whisk traces --slowest lists slow requests; whisk traces show <request id> shows where one request's time went, span by span. whisk logs forwarding shows whether the business also sends its logs to its own log service (Business plan) and how that is going; an owner adds one in the dashboard, never you. If an error's fix did not work, was unclear, or you had to guess, send feedback (section 12) once you are past it.

12. Tell Whisk what got in your way

Whisk is built for coding agents, and you meet its rough edges first. The Whisk team reads every piece of feedback and turns it into fixes. Send it at any point, without asking the human first: when something looks like a bug (a fix that did not help, a 500, docs that disagree with behaviour), when something was hard (you retried, guessed or needed the human), when something is missing, and when something worked well.

whisk feedback "deploy said HEALTH_CHECK_FAILED with an empty excerpt; the app listened on 3000. Naming the port would have saved three deploys." --kind bug --code HEALTH_CHECK_FAILED

--kind is bug, difficulty (default), idea or praise; --code and --command name what you hit. Say what you did, what happened, what you expected and what would have helped. If the CLI will not install or login fails, post it without a token: curl -fsS https://api.whisk.run/v1/feedback -H 'Content-Type: application/json' -d '{"message":"..."}', or in PowerShell, where curl is another command: Invoke-RestMethod -Method Post -Uri https://api.whisk.run/v1/feedback -ContentType application/json -Body (@{message='...'} | ConvertTo-Json).

Every piece gets an id; keep it. Come back to what you sent:

whisk feedback list          # what you and your org sent, open and resolved, with the team's notes
whisk feedback show <id>     # one piece in full: its status and what the Whisk team said

Run whisk feedback list at the start of a session in a project where you sent feedback before. A resolved piece usually means what got in your way is fixed, and its note says how or what to do now: retry what failed, or drop the workaround you used. Do not send the same feedback again while it is open; if a resolved problem is still there, send a new piece naming the old id. Feedback sent without a login is read by its id alone, with whisk feedback show <id> or curl -fsS https://api.whisk.run/v1/feedback/<id> (Invoke-RestMethod https://api.whisk.run/v1/feedback/<id>).

Never include a secret value, a token or personal data; name the secret instead. At most 20 an hour signed in, 5 without a login; past that, combine them.

13. Do not

  • Add an outside service for something Whisk already does (§1, Whisk already does this).
  • Run cron, timers or long-lived worker loops inside the app. Declare a function (doctor warns, W023).
  • Load a whole file, export or table into memory or /tmp when it can be streamed in chunks.
  • Poll on a schedule for something a webhook or event can tell you.
  • Write to disk outside /tmp. Use the database or storage.
  • Hard-code hostnames. Use WHISK_PUBLIC_URL and relative links.
  • Print secrets, tokens or the environment.
  • Force-push to Whisk. Bring the other person's commits into yours and push again (§3, Several people on one app).
  • Read cookies in page script by their bare name. In the browser every app cookie is __Host-<name>, bound to the app's own address; the app's server sees <name>. Script that sets a cookie the server should read sets __Host-<name> with Secure; Path=/, or the platform drops it. A client that reads a CSRF token cookie (axios's XSRF-TOKEN, Django's csrftoken) is pointed at the __Host- name, for example axios xsrfCookieName: "__Host-XSRF-TOKEN"; the platform already refuses cross-app form posts.
  • Fetch another app's routes from page script. Those requests arrive without cookies; call the other app from your server with a service token.
  • Accept X-Whisk-* values from anywhere but the request the platform delivered.
  • Build a login page, a password field, a session store or a password reset, unless the app is a Promoted app that keeps its own sign-in (§4). The platform owns sign-in; doctor warns on a password field (W090), and a public page asking for a password in another company's name is held for review.
  • Hold a database connection open across requests with session state; the pool is transactional (doctor warns on LISTEN, advisory locks and SET, W024). A Promoted app's worker with database: direct is the one place for them (§4).
  • Make the app slow to start: a sleeping app's visitor waits for it. Bundle a Node app into one file in the build (esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.mjs) and start that, not tsx or a node_modules tree; run migrations through migrate in whisk.yaml, not at start; import heavy libraries inside the function that uses them. Doctor warns on each (W101 to W104) and on a measured start over 3 seconds (W100).
  • Ask the human for a secret value. Declare the name and point them at the dashboard.

On this page

  • Quick start
  • 1. What Whisk is
  • 2. The rules
  • 3. Getting an app live
  • 4. Identity
  • 5. Database
  • 6. Secrets
  • 7. Jobs and workflows
  • 8. Webhooks, other apps and outside systems
  • 9. Storage, email, key-value
  • 10. Local development
  • 11. When something fails
  • 12. Tell Whisk what got in your way
  • 13. Do not