Skip to content

Documentation ​

What this page covers

Every choice of --Persistence, --Auth, --IncludeTests and --Aspire: a label says which options a part is for. The copy in your app's docs/ folder has only the parts for yours. ApiHost stands for your app's name.

How ApiHost works, how to change it, and how to run it in production.

Start here ​

  • Tutorial: build a feature: a Contacts feature from start to finish: data, endpoints, validation, a background handler, live updates, the React page, and tests.
  • Architecture: how the example feature works, pattern by pattern.
  • Troubleshooting: problems people run into, by what you see.

Guides ​

  • With accounts Accounts: sign-in, emails, settings, lockout, roles and the admin page, Google/GitHub, passkeys and two-factor authentication.
  • With organisations Plans, trials and limits: the plan catalogue, the reverse trial, feature flags, and checking features and limits.
  • With organisations Integrations: API keys, the MCP endpoint for AI assistants, webhooks (sent and received) and encrypted secrets.
  • File storage: uploads to local disk, any S3-compatible store or Azure Blob Storage, with signed URLs.
  • Analytics and cookie consent: Google Tag Manager behind a consent banner, and adding Google Analytics, Datadog or Rollbar.
  • Security: what the app does to protect users and data, and what's left to you. OWASP ASVS level 2 maps it to the standard, requirement by requirement.
  • Testing: the test suites, how to run them, and how to add tests.
  • Observability: health checks, traces, metrics and logs.
  • Deployment: publishing, configuration, and running in production. For a step-by-step guide to a small server, see deploy/README.md.

How-to guides ​

Reference ​

  • Configuration: every setting, with its default.
  • HTTP endpoints: every endpoint, and who can call it.
  • Messages: the background messages and their handlers, and what's sent to browsers.

Documentation for v0.10.1. Released under the MIT licence.