Skip to content

Features ​

Everything an app generated from the template has, by area. Parts marked --Auth identity or saas come with accounts, and --Auth saas with organisations; see the options.

What it looks like ​

A generated app with --Auth saas (the default). Every page follows the device's light or dark mode, or the choice in the footer.

Todos, with live updates and remindersTodos in dark mode
An organisation: its plan, trial and limits, and membersThe back office's dashboard
Settings: profile, password, sign-in methods and morePricing, from the plan catalogue

Backend ​

  • Wolverine HTTP endpoints in vertical slices. Features/Todos is a worked example ([WolverineGet]/[WolverinePost]) on either Marten or EF Core, showing what Wolverine adds beyond plain endpoints:
    • Messaging with a transactional outbox. Completing a Todo cascades a TodoCompleted message to a background handler. Local queues are durable, so the message is saved in the same database transaction as the change: it survives a restart and is never sent if the change rolls back.
    • Scheduled messages. "Remind me…" schedules a durable message that pushes a reminder to the browser when it's due, unless the Todo was completed first.
    • Event sourcing (--Persistence marten). Each Todo is an event stream; the complete endpoint uses Wolverine's aggregate handler workflow ([WriteAggregate]) with an optimistic concurrency check, and an inline snapshot projection keeps a queryable document in step.
    • Validation. FluentValidation rejects bad input with a 400 ProblemDetails response before the endpoint runs; the React forms show the messages.
    • Realtime updates with SignalR through Wolverine's SignalR transport: every open tab refreshes. With --Auth identity, updates go only to the signed-in user's own tabs; with saas, to everyone working in the organisation, and reminders only to whoever set them.
  • Production-ready code generation. Development generates Wolverine's code at runtime; dotnet publish runs codegen write and Production loads it ready-made (TypeLoadMode.Static): a faster start, no runtime compilation, and a clear error at startup if anything is missing. The generated code is never committed, so it can't go stale.
  • Health checks (/health/live, and /health/ready with a PostgreSQL check) and OpenTelemetry traces, metrics and logs from ASP.NET Core, Npgsql, Wolverine and Marten, exported over OTLP when configured, with an optional Aspire dashboard in docker-compose.
  • An API reference page in Development (Scalar at /scalar) and a .http file with the app's requests.
  • File storage behind one interface (IFileStorage), chosen in configuration: local disk (the default), any S3-compatible store (AWS S3, Cloudflare R2, Backblaze B2, Hetzner, Google Cloud Storage, self-hosted SeaweedFS or Garage) or Azure Blob Storage. Browsers upload and download directly with short-lived signed URLs; local downloads are sandboxed so an uploaded page can't run as the app. The same tests run against every provider (SeaweedFS and Azurite in containers), and docker-compose can start both for development.
  • File attachments on Todos: the worked example of big uploads with signed URLs, with encrypted upload tokens, size and count limits, abandoned uploads cleaned up, and downloads saved under the file's name.

Frontend ​

  • React, Vite, TypeScript, Tailwind CSS and shadcn/ui (MIT), with an app shell (header, user menu, home page, footer, not-found page). Every page is built from shadcn/ui components (they're the app's own files, in components/ui) and the theme's colours, with dark mode that follows the operating system and needs no script.
  • React Router (framework mode, as a single-page app) with real URLs; with accounts, signed-out users are sent to /login and back to the page they wanted.
  • Pre-rendered public pages: the home page is real HTML at build time, so search engines and link previews see its content without JavaScript, and a CDN can cache it. Unknown paths are real 404s, private pages are marked noindex, and the API serves robots.txt and sitemap.xml. Still one deployable, with no Node server.
  • TanStack Query for server data, invalidated by mutations and SignalR messages, and cleared on logout so the next user never sees the previous user's data.
  • A typed API client generated from the OpenAPI document (openapi-typescript + openapi-fetch); regenerate with npm run gen:api.
  • One deployable: the Vite dev server proxies /api in development (no CORS), and in production the API serves the built client.

Accounts (--Auth identity or saas) ​

  • ASP.NET Core Identity with JWT: short-lived access tokens and rotating refresh tokens with reuse detection. In the browser the refresh token is in an HttpOnly cookie, so reloads and any number of tabs stay signed in and page scripts can't read it; mobile and desktop apps get it in the response body instead, from the same API. With identity, each user sees only their own data; with saas, their organisation's.
  • Account emails: email confirmation (required to log in), confirmed email changes, password reset and invitations, sent with MailKit from a Wolverine handler, so they go through the durable outbox and are retried. In Development, Mailpit catches them.
  • Account settings: display name, email (after confirming the new one), password, passkeys, linked Google/GitHub accounts, a product news opt-in (also at sign-up, unticked), and account deletion (which deletes the user's data through an AccountDeleted message each feature handles).
  • Profile pictures: upload one in Settings (cropped and resized in the browser, so the server needs no image library), else their initials (or their Gravatar, if you turn it on); shown in the header, member lists and the admin page. With saas, owners and admins set the organisation's logo, shown in the switcher.
  • Notifications: a list under a bell in the header (Todo reminders, and with saas people joining an organisation you manage), pushed live over SignalR and emailed through the outbox, with email choices in Settings and a one-click unsubscribe link (RFC 8058) that needs no login.
  • Download your data: everything stored about the user as one JSON file, to go with account deletion (GDPR, PDPA); each feature adds its own section.
  • Roles and a back office (/admin): search users, change roles, lock and unlock accounts, end a user's sessions, resend confirmation emails, and invite people by email; an audit log of every admin action; and failed messages (Wolverine's dead-letter queue) to replay or discard. The first admins come from configuration, and registration can be made invitation-only.
  • Sign-in with Google and GitHub, each turned on by setting its client ID and secret.
  • Passkeys with ASP.NET Core Identity's own WebAuthn support: add them in Settings, then log in without a password.
  • Two-factor authentication with an authenticator app (Identity's TOTP support): a QR code in Settings, recovery codes, a code step after the password or Google/GitHub, an admin action for lost phones, and a setting that requires it for back office admins.
  • Account security: emails when sign-in details change or a new device signs in; Settings → Sessions to sign out other devices; the password (and a code, with two-factor) asked again before changing the email or deleting the account; and, if turned on, refusing passwords known from data breaches (Have I Been Pwned, without sending the password).
  • Account lockout with Identity's lockout, which also stops refresh tokens.

Organisations (--Auth saas) ​

  • Multi-tenancy with Wolverine: data belongs to organisations. The access token names the organisation the user works in, Wolverine reads it as each request's tenant id and carries it through messages, and Marten's (or Wolverine's EF Core) conjoined tenancy keeps each organisation's data apart, with no filters to forget in endpoints.
  • Every account gets its own organisation; users create more, are invited into others, and switch between them in the header. Removing a member takes effect at once.
  • Roles: Owner, Admin and Member, with at least one owner always.
  • Invitations by email: existing users accept after logging in; new users create their account from the link, which confirms their email. Invitations are limited per user and per organisation, so the app can't be used to send spam.
  • Deleting an organisation deletes its data through an OrganisationDeleted message that each feature handles for that tenant, published in the same transaction as the deletion.

Billing (--Auth saas) ​

  • A plan catalogue in one place (Billing/Plans.cs): prices per currency, features and limits, with versions so existing customers keep their price ("grandfathering"). The public pricing page is pre-rendered from it.
  • A reverse trial: new organisations get the top plan for 14 days, then the free plan.
  • Entitlements: one check for "can this organisation use feature X?" and "how much of limit Y is left?", in Wolverine Before methods (402 Payment Required) and in the client to show or hide features and upgrade prompts. Features are feature flags (Microsoft.FeatureManagement, MIT). Limits count what exists (open Todos, members) or use per billing period (reminders a month), with a warning at 80%. A downgrade never deletes data.
  • Stripe subscriptions (Stripe.net, Apache-2.0): Checkout and the customer portal; signed webhooks stored once and handled from a durable Wolverine queue, keeping a local copy of billing state so the app never asks Stripe which plan an organisation is on; and dotnet run -- stripe-prices to create the prices from the catalogue. Payments sit behind IPaymentProvider, so another provider can replace Stripe.
  • A back office for customers: a dashboard (monthly recurring revenue, organisations, trials ending, failed payments), organisations (members, plan, usage, invoices with Stripe links; give a plan until a date or extend a trial, suspend, notes, delete) and feature flags for everyone, a plan or one organisation.

Integrations (--Auth saas) ​

  • API keys per organisation: created, named, rotated (with a grace period) and revoked by owners and admins; stored hashed; read or write scope; rate limited per key; kept to the paths they're for. A key acts as its creator, so tenancy, plan limits and realtime updates just work.
  • An MCP endpoint (/mcp, the official C# MCP SDK, Apache-2.0): the Todos as tools that AI assistants such as Claude can call with an API key, following the same rules as the API.
  • Outgoing webhooks: organisations subscribe URLs to events; each delivery is signed the Standard Webhooks way, sent from a durable Wolverine queue with retries, and logged with the receiver's answer, so owners can see failures, resend and send test events. Never to private networks in production (checked after DNS).
  • Encrypted secrets per organisation: customers' own API keys and OAuth tokens, encrypted with ASP.NET Core Data Protection and never shown again.
  • Receiving webhooks: a signed endpoint for any Standard Webhooks provider that stores each event once and hands it to a durable message, the way billing receives Stripe's.
  • Organisation data download for owners: Todos, members, billing and integrations.

Security ​

  • Browser security headers on every response (a strict Content-Security-Policy that allows only the build's own inline start-up scripts, by hash; framing, MIME sniffing and referrer protections), HTTPS redirection and HSTS in production, and development-only tools kept out of production.
  • With accounts: verified emails, one-time and short-lived email links whose tokens are never stored, no account enumeration from "forgot password", rate limiting on sign-in and account endpoints, lockout, sessions ended on password changes and admin locks, verified-email rules and pre-hijacking protection for Google/GitHub sign-in, email links built from the configured address (never the request's host), realtime connections closed when their token expires, and startup checks that refuse a weak or development signing key, or a missing App:ClientUrl, in production.
  • Security describes each measure and what to do when deploying.

Deployment ​

  • Container publishing (dotnet publish /t:PublishContainer) and a production docker-compose with PostgreSQL and Caddy for automatic HTTPS, with a step-by-step guide for a small VPS (deploy/).
  • Data Protection keys in PostgreSQL, so email links and other protected tokens work across restarts and instances.
  • Deployment lists every production setting.

Tests ​

  • Client unit tests (always included): Vitest and React Testing Library with the API faked by MSW, next to the code they test, covering the Todo page and, with accounts, the token refresh, every sign-in page, route guards, Settings and the admin page, and with saas the organisation switcher, the organisation page, the join page, the pricing page, plans and limits, and the back office.

With --IncludeTests true (the default):

  • End-to-end tests with Playwright (Apache-2.0) in the installed Chrome, against the running app: Todos with live updates, the pre-rendered pages and search engine files and, with accounts, sign-up with the real confirmation email (read from Mailpit), settings, password reset, lockout, two-factor authentication, the admin page and invitations, passkeys with Chrome's virtual authenticator, and (with saas) a teammate joining from an invitation email and an admin giving an organisation a plan in the back office. CI runs them against each published combination.

  • A tests/ project (xUnit, Alba and Testcontainers) that boots the real app against a throwaway Postgres and drives it over HTTP, so one project covers both --Persistence choices. It covers the Todo endpoints and validation, background and scheduled messages (with Wolverine's message tracking), SignalR with real hub clients, health checks, security headers, and the Marten event stream.

  • With accounts: registration and email confirmation (following the links in captured emails), login, token rotation and reuse detection, account settings, password reset, lockout, rate limiting, roles and the admin endpoints (with the audit log and failed messages), invitations, Google/GitHub sign-in rules, two-factor authentication (with codes worked out as an authenticator app does), and passkeys (with a software authenticator, so Identity's real WebAuthn checks run).

  • With saas: organisations kept apart, switching, roles and the always-an-owner rule (including changes at the same moment), removal taking effect at once, invitations and their limits, deleting an organisation's data, and organisation-wide realtime updates; trials, features and limits (including requests at the same moment), downgrades, checkout and webhooks with a fake payment provider, Stripe's signature checks, and the back office (suspension, feature flags, replaying a failed message).

Developer experience ​

  • Documentation for the generated app: a short README (running it, the project layout, common tasks) and a docs/ folder (from docs.app/ here) with architecture, accounts, security, testing, observability and deployment pages, plus how-to guides: add a feature, put Cloudflare in front, change the database schema, send email through your provider, set up Google/GitHub sign-in, add a role, make someone an admin, and change the JWT signing key. Each app gets only the pages that match its options. They're the guide on this site, with every option shown.
  • Help for AI coding assistants: AGENTS.md (with CLAUDE.md importing it) describes the app's conventions and the rules that are easy to miss.
  • Housekeeping: central package management (Directory.Packages.props), the free Meziantou analyzer with a commented .editorconfig (0 warnings), and Dependabot for NuGet, npm and Docker.

Known limitations ​

  • HS256 vs RS256/JWKS: the JWT signing key is a single shared secret (HS256). This is sufficient if this API and its own bundled React client are the only parties validating tokens. If you actually need a separate service to verify tokens without sharing that secret, upgrade to asymmetric signing (RS256) with a /.well-known/jwks.json endpoint — not included here to keep the default lean.
  • Passkeys belong to one domain: they're created for the site's host name, so moving the app to another domain means users add new passkeys.
  • Role changes apply at the next token refresh (within the access token's lifetime), and an admin lock ends sessions the same way.

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