# Docs - [Getting started](/llms.mdx/docs/llms-full.txt) - [Introduction](/llms.mdx/docs.md): Write your business logic. Signet handles the rest. - [Installation](/llms.mdx/docs/installation.md): Scaffold a new app, or add Signet to a React app you already have. - [Create your first app](/llms.mdx/docs/create-your-first-app.md): Scaffold the full template, run it and make your first edit. - [Project structure](/llms.mdx/docs/project-structure.md): What the templates give you, folder by folder. - [First component](/llms.mdx/docs/first-component.md): Add a Badge to the home route. - [First API route](/llms.mdx/docs/first-api-route.md): Add a Hono route and call it with the typed client. - [Deploy](/llms.mdx/docs/deploy.md): One command per template and API target. - [Guides](/llms.mdx/docs/guides/llms-full.txt) - [Guides](/llms.mdx/docs/guides.md): Task recipes: install, configure, ship. Each one is the same answer agents get from the MCP server. - **Start an app** - [Add a Database](/llms.mdx/docs/guides/add-db.md): A scoped, soft-deleting, optionally encrypted database layer on D1, SQLite or Postgres, with money, an outbox and idempotent writes. - [Add Workers-Safe Env Configuration](/llms.mdx/docs/guides/add-env.md): Validated config that works on Cloudflare Workers, read lazily so deploys never fail on missing secrets. - [Add the Error Envelope and Request Validation](/llms.mdx/docs/guides/add-error-envelope.md): Every API error has the same JSON shape, validation failures carry field errors, and production hides internals. - [Add the Typed API Client](/llms.mdx/docs/guides/add-api-client.md): A fetch client with structured errors, end-to-end route types from Hono, streaming and sane TanStack Query defaults. - [Add Sign-In](/llms.mdx/docs/guides/add-auth.md): A passcode gate or a full Better Auth user system, with CSRF protection in front of the cookie. - [Make a Theme](/llms.mdx/docs/guides/add-theme.md): A full light and dark theme from one brand colour, checked for WCAG contrast. - [Own a Component's Source](/llms.mdx/docs/guides/add-component-source.md): Copy a signet-ui component into your app, edit it freely, and merge upstream changes later. - [Page Blocks](/llms.mdx/docs/guides/blocks.md): Whole pages you copy into your app and edit: dashboard, list-detail, settings, auth, onboarding, pricing, checkout, empty and error pages. - [Test an App with Fakes and Playwright](/llms.mdx/docs/guides/add-tests.md): Fake payment and notification providers, screenshots across every theme, a dev overlay and a no-network demo mode. - [Build a Mobile App](/llms.mdx/docs/guides/build-a-mobile-app.md): Scaffold an Expo app for iOS and Android and its API, sign in by phone, send push notifications and queue writes offline. - **Security** - [Add CSRF Protection](/llms.mdx/docs/guides/add-csrf.md): Cross-site form posts to your API get a 403 before they reach a cookie-reading route. - [Add Rate Limiting](/llms.mdx/docs/guides/add-rate-limit.md): A general API limit plus an exact, durable login limit on Cloudflare Workers. - [Add Bot Checks, Disposable-Email Blocking and AI Spend Caps](/llms.mdx/docs/guides/add-abuse-protection.md): Sign-up refuses bots and throwaway inboxes, and every AI call is capped per user, org and day. - [Protect an API with OAuth](/llms.mdx/docs/guides/add-oauth.md): Accept bearer tokens issued elsewhere on an API or MCP endpoint, with audience and scope checks. - **Money** - [Take Payments](/llms.mdx/docs/guides/payments.md): Checkout across Razorpay and Stripe with a verified webhook inbox, a ledger, store purchases and daily reconciliation. - [Add Plans, Entitlements and Feature Flags](/llms.mdx/docs/guides/add-plans.md): Plans with features and usage limits, billing events applied to them, and flags with rules and percentage rollouts. - [Add Remote Paywalls and a Customer Center](/llms.mdx/docs/guides/add-monetisation.md): Offerings you publish without an app release, a paywall per placement, self-serve cancel and refund, and anonymous-to-account merge. - [Add In-App Currency](/llms.mdx/docs/guides/add-virtual-currency.md): Coins people buy or earn, on the payments ledger: granted once per purchase, never spent below zero. - [Add Subscription Charts and Offers](/llms.mdx/docs/guides/add-subscription-charts.md): MRR, churn and trial conversion charts, free-trial and win-back offers, promotional grants and Apple refund answers. - [Add Web-to-App Funnels With Hosted Checkout](/llms.mdx/docs/guides/add-funnels.md): A hosted quiz and checkout page with Apple Pay, Google Pay and URL discounts, then a one-time link that moves the purchase into the app. - [Add UPI Links, GST Invoices and DPDP Consent](/llms.mdx/docs/guides/add-india.md): Pay-by-UPI links, numbered GST tax invoices, and consent and data-request records for Indian customers. - **Product features** - [Add a Waitlist, Invites, Referrals and Onboarding](/llms.mdx/docs/guides/add-growth.md): Launch tooling in your own database: waitlist, one-shot invites, referral rewards, onboarding progress, a changelog and feedback. - [Add Comments, Mentions, Activity and Version History](/llms.mdx/docs/guides/add-collab.md): Comment threads, notifying at-mentions, a per-record timeline and undo on any org-scoped record. - [Add CSV Import, an Editable Grid and a Rich Text Editor](/llms.mdx/docs/guides/add-data-editing.md): Bulk-import customers from a CSV, edit them in a spreadsheet-style grid, and store sanitised rich notes. - [Add Offline Work the Server Can Trust](/llms.mdx/docs/guides/add-offline-replay.md): A device checks a resource out, works offline, then the server replays its inputs and accepts only a matching result. - [Add A/B Experiments, a Status Page and Maintenance Mode](/llms.mdx/docs/guides/add-experiments.md): Sticky variant assignment with a significance readout, plus a public status page and an API-wide maintenance switch. - [Add Analytics](/llms.mdx/docs/guides/add-analytics.md): Track events from the browser, store them in your own database, and read answers instead of dashboards. - [Add Real-Time Presence and Live Updates](/llms.mdx/docs/guides/add-realtime.md): Who is viewing a record, who is typing, and a banner when someone else saves, over WebSockets on your runtime. - [Add File Uploads](/llms.mdx/docs/guides/add-uploads.md): Presigned uploads that are size- and type-checked, confirmed after arrival and scoped to each user. - [Add Web Push Notifications](/llms.mdx/docs/guides/add-web-push.md): Send web push from a Worker with VAPID, prune dead subscriptions, and report errors to Sentry. - **Backend** - [Add Background Jobs](/llms.mdx/docs/guides/add-jobs.md): Typed background jobs with retries, a dead-letter list, cron schedules and a queue consumer on your runtime. - [Add Durable Workflows with Approvals](/llms.mdx/docs/guides/add-workflows.md): Crash-safe multi-step runs that sleep, wait for events and pause for a named person to approve. - [Add Structured Logging and Sentry](/llms.mdx/docs/guides/add-logging.md): JSON logs with a request id and secrets redacted by default, plus error reports to Sentry that work on Workers. - [Trace a Request Across Logs, Sentry and Spans](/llms.mdx/docs/guides/observability.md): One traceId links JSON logs, Sentry reports and OpenTelemetry spans, plus AI cost, health checks and what is never recorded. - [Run Off Cloudflare](/llms.mdx/docs/guides/add-portability-adapters.md): Swap the KV, queue, blob and defer adapters so the same server code runs on Node, Bun, Vercel or Upstash. - [Publish an API](/llms.mdx/docs/guides/publish-an-api.md): An OpenAPI spec and reference page generated from your validators, signed outbound webhooks, and HTTP caching. - [Add a Backend Module to an API App](/llms.mdx/docs/guides/add-backend-module.md): Wire auth, a database, an admin API, payments or notifications into an app made from the api template. - **AI and agents** - [Add AI Chat, Tool Loops and Grounded Answers](/llms.mdx/docs/guides/add-ai-chat.md): A streaming chat route with a React hook, plus tool loops, embeddings search and answers that cite their sources. - [Add AI Extraction With a Budget](/llms.mdx/docs/guides/add-ai-extraction.md): Typed, schema-validated LLM output with a cache, a spend cap and a fallback provider. - [Add MCP Tools to an App](/llms.mdx/docs/guides/add-mcp-tools.md): A typed, scoped MCP endpoint behind OAuth, with errors mapped to the Signet envelope, plus a stdio entry. - [Expose an App to Agents](/llms.mdx/docs/guides/mcp-by-default.md): Every validated route becomes an MCP tool run as the caller, with per-user tools and approvals for writes. - [Build a page with an agent](/llms.mdx/docs/guides/build-a-page-with-an-agent.md): Describe a page, get a file plan, add the block, wire the data, check the app. - [Build a whole app with an agent](/llms.mdx/docs/guides/build-a-whole-app-with-an-agent.md): Describe an app in one sentence, get a PLAN.md, and let a coding agent build it page by page. - [Measure agent builds with evals](/llms.mdx/docs/guides/evals.md): Build the same apps with and without Signet and compare pass rate, cost and looks. - [Components](/llms.mdx/docs/components/llms-full.txt) - [Components](/llms.mdx/docs/components.md): Themed, accessible React components, domain blocks and screens from signet-ui. - **Primitives** - [Action Row](/llms.mdx/docs/components/action-row.md): One item that waits on the user: an icon, a title, one sentence and the buttons that settle it. - [Alert](/llms.mdx/docs/components/alert.md): Displays a callout for user attention. - [Alert Dialog](/llms.mdx/docs/components/alert-dialog.md): A modal dialog that interrupts the user with a confirmation and waits for an answer. - [Answer Headline](/llms.mdx/docs/components/answer-headline.md): The one-line answer a screen leads with: a question, a sentence with the deciding numbers bold, and an optional fact line. - [Avatar](/llms.mdx/docs/components/avatar.md): An image element with a fallback for representing the user. - [Badge](/llms.mdx/docs/components/badge.md): Displays a badge or a component that looks like a badge. - [Breadcrumb](/llms.mdx/docs/components/breadcrumb.md): Displays the path to the current page, using a list of links. - [Button](/llms.mdx/docs/components/button.md): Displays a button or a component that looks like a button. - [Calendar](/llms.mdx/docs/components/calendar.md): A date field component that allows users to enter and edit date. - [Card](/llms.mdx/docs/components/card.md): Displays a card with header, content and footer. - [Chart](/llms.mdx/docs/components/chart.md): Beautiful charts built on recharts, coloured by the active theme. - [Checkbox](/llms.mdx/docs/components/checkbox.md): A control that allows the user to toggle between checked and not checked. - [Combobox](/llms.mdx/docs/components/combobox.md): Autocomplete input and command palette with a list of suggestions. - [Command](/llms.mdx/docs/components/command.md): Fast, composable command menu with search, groups and shortcuts. - [Data Grid](/llms.mdx/docs/components/data-grid.md): A spreadsheet-like grid with inline editing, keyboard navigation, copy and paste, selection and sorting. - [Data Table](/llms.mdx/docs/components/data-table.md): A table with sorting, row selection, search, filters, column visibility and CSV export, built on TanStack Table. - [Decision callout](/llms.mdx/docs/components/decision-callout.md): A tinted note inside a timeline step: what was decided, and why. - [Dialog](/llms.mdx/docs/components/dialog.md): A modal window that interrupts the page to ask for input or confirmation. - [Drawer](/llms.mdx/docs/components/drawer.md): A swipeable sheet that slides in from an edge, with snap points and nesting. - [Dropdown Menu](/llms.mdx/docs/components/dropdown-menu.md): A menu of actions that opens from a button. - [Emoji Picker](/llms.mdx/docs/components/emoji-picker.md): Pick one emoji from a curated grid, or type any other with the device keyboard. - [Empty State](/llms.mdx/docs/components/empty-state.md): A centred message for a list or page with nothing to show. - [Error State](/llms.mdx/docs/components/error-state.md): A centred message for a failed load, with an optional retry. - [Field](/llms.mdx/docs/components/field.md): Wires a label, control, description and error together with the right accessibility attributes. - [Fold](/llms.mdx/docs/components/fold.md): Long text behind one row, with a Show more link. Opens in place, no popup. - [Input](/llms.mdx/docs/components/input.md): A text field. - [Input Group](/llms.mdx/docs/components/input-group.md): An input joined with icons, text, buttons or a footer in one bordered field. - [Input OTP](/llms.mdx/docs/components/input-otp.md): A one-time-code input with a slot per character. - [Kbd](/llms.mdx/docs/components/kbd.md): A keyboard key, or a sequence of keys. - [Label](/llms.mdx/docs/components/label.md): A text label for a form control. - [Logo Stack](/llms.mdx/docs/components/logo-stack.md): An overlapping row of square project marks, with a +N mark when there are more. - [Markdown](/llms.mdx/docs/components/markdown.md): Safe, GitHub-flavoured Markdown for text your app did not write. - [Metric Headline](/llms.mdx/docs/components/metric-headline.md): One metric answered in a plain sentence, with its number and trend. - [Pagination](/llms.mdx/docs/components/pagination.md): Previous and next buttons around the current page number. - [Pill Group](/llms.mdx/docs/components/pill-group.md): A row of pill buttons for choosing one filter. - [Popover](/llms.mdx/docs/components/popover.md): Floating content anchored to a trigger, opened on click. - [Privacy Mask](/llms.mdx/docs/components/privacy-mask.md): A one-tap hide-values mask for showing a screen to someone else. - [Progress](/llms.mdx/docs/components/progress.md): Displays how far a task has got, as a bar. - [Radio Group](/llms.mdx/docs/components/radio-group.md): A set of options where exactly one can be selected. - [Responsive Sheet](/llms.mdx/docs/components/responsive-sheet.md): One container for add and edit forms: a bottom drawer on phones, a centred dialog on desktop. - [Rich Text Editor](/llms.mdx/docs/components/rich-text-editor.md): A Tiptap editor with a toolbar and @mentions whose value is markdown. - [Schema Form](/llms.mdx/docs/components/schema-form.md): A form drawn from a zod schema, with Signet's own controls. - [Search Input](/llms.mdx/docs/components/search-input.md): A text input with a leading search icon. - [Select](/llms.mdx/docs/components/select.md): A dropdown for choosing one option from a list. - [Shortcuts](/llms.mdx/docs/components/shortcuts.md): The ? overlay that lists keyboard shortcuts, plus j and k list navigation. - [Sidebar](/llms.mdx/docs/components/sidebar.md): A collapsible app sidebar that becomes a drawer on phones. - [Skeleton](/llms.mdx/docs/components/skeleton.md): A pulsing placeholder shown while content loads. - [Skip Link](/llms.mdx/docs/components/skip-link.md): A Skip to content link that stays hidden until it gets keyboard focus. - [Slider](/llms.mdx/docs/components/slider.md): An input where the user selects a value or a range between a minimum and maximum. - [Spinner](/llms.mdx/docs/components/spinner.md): A loading indicator that announces itself to screen readers. - [Stage rail](/llms.mdx/docs/components/stage-rail.md): A thin row of segments that shows how far a run has got. - [Stat Strip](/llms.mdx/docs/components/stat-strip.md): A row of headline numbers: cards on desktop, stacked rows on a phone. - [Stepper](/llms.mdx/docs/components/stepper.md): Progress through numbered steps, with arrow-key navigation. - [Switch](/llms.mdx/docs/components/switch.md): A control that toggles between checked and unchecked. - [Table](/llms.mdx/docs/components/table.md): A responsive table with a header, body, rows and cells. - [Tabs](/llms.mdx/docs/components/tabs.md): Layered sections of content shown one at a time. - [Textarea](/llms.mdx/docs/components/textarea.md): A multi-line text input that grows with its content. - [Theme Provider](/llms.mdx/docs/components/theme-provider.md): Light, dark and system themes without a flash on load. - [Theme Toggle](/llms.mdx/docs/components/theme-toggle.md): A segmented light, dark and system control, plus a single flip button. - [Timeline](/llms.mdx/docs/components/timeline.md): Dated events in order, with arrow-key navigation between them. - [Toast](/llms.mdx/docs/components/toast.md): Brief messages that stack in a corner and clear on their own. - [Tooltip](/llms.mdx/docs/components/tooltip.md): A small popup with extra information when an element is hovered or focused. - **Domain** - [Amount](/llms.mdx/docs/components/amount.md): A money amount with the locale's digit grouping, the currency's own decimals and an optional credit or debit colour. - [CSV Import](/llms.mdx/docs/components/csv-import.md): Import rows from a CSV file or pasted text: map columns, check every row, review errors, import the valid rows. - [Job Runs](/llms.mdx/docs/components/job-runs.md): A table of background job runs with state, attempts, progress, error and retry or cancel actions. - [Kanban](/llms.mdx/docs/components/kanban.md): A board of columns with cards that move by drag and drop or by keyboard. - [Trend Chip](/llms.mdx/docs/components/trend-chip.md): A small percentage change in green with an up arrow, or red with a down arrow. - [Upload](/llms.mdx/docs/components/upload.md): Drag and drop or pick files, upload each with progress, and retry a failed one. - **Screens** - [Abuse Screens](/llms.mdx/docs/components/abuse-screens.md): A bot-check widget for Turnstile or hCaptcha, and the admin AI spend screen with caps and top spenders. - [Account Screens](/llms.mdx/docs/components/account-screens.md): Profile, devices and API keys: the settings sections of a signed-in account. - [Admin Screens](/llms.mdx/docs/components/admin-screens.md): A data admin panel for signet-server's adminRoutes: tables, search, filters, sorting, a record form, history and actions. - [API Screens](/llms.mdx/docs/components/api-screens.md): An OpenAPI endpoint reference and a webhook delivery log with redelivery. - [Auth Screens](/llms.mdx/docs/components/auth-screens.md): Sign in and sign up with an email or phone code or OAuth, then verify the code. - [Billing Screens](/llms.mdx/docs/components/billing-screens.md): Plans, the current subscription, usage, invoices, a wallet and a paywall, ready to compose into a billing page. - [Collab Screens](/llms.mdx/docs/components/collab-screens.md): Comment threads with @mentions, an activity feed and a version history panel for any record. - [Cost Dashboard](/llms.mdx/docs/components/cost-dashboard.md): AI cost for the admin: spend over time with what the cache saved, spend by model, the top spenders (subject hashes, as the server gives them), and how much of the global day and month caps is used. Data is what signet-server's `observabilityAdminRoutes` returns (`series`, `models`, `top`) plus the global caps from signet-db's `usage("global")`; hand it in as `data`, or give a `fetcher(days)` and the screen loads and retries itself. Money is millionths of a USD. recharts is an optional peer, so this screen has its own export path, `@dapplelight/signet-ui/screens/cost-dashboard`, never the barrel. - [Experiment Screens](/llms.mdx/docs/components/experiment-screens.md): Admin screens for A/B experiments: a list, a per-variant results readout, a create and edit form, and a pricing readout. - [Funnel Screens](/llms.mdx/docs/components/funnel-screens.md): Web-to-app funnel screens: questions, a paywall with the URL discount priced in, Stripe checkout and the post-purchase redemption card. - [Growth Screens](/llms.mdx/docs/components/growth-screens.md): Waitlist join, invite accept, referral card, onboarding checklist, feedback form and widget, and a what's new widget. - [Monetisation Screens](/llms.mdx/docs/components/monetisation-screens.md): A server-configured paywall, a self-serve customer center, an admin billing timeline and a promotional grant form. - [Notification Screens](/llms.mdx/docs/components/notification-screens.md): An in-app notification inbox and a preferences centre with one switch per category and channel. - [Org Screens](/llms.mdx/docs/components/org-screens.md): An org switcher, member list with roles, invite dialog, accept-invite page and org settings. - [Privacy Screens](/llms.mdx/docs/components/privacy-screens.md): DPDP Act screens: a consent list with one switch per purpose, and data export and erasure requests with their status. - [Realtime Screens](/llms.mdx/docs/components/realtime-screens.md): Presence pieces for a record page: an avatar stack of viewers, an editing badge, a typing indicator and a record-changed banner. - [Status Screens](/llms.mdx/docs/components/status-screens.md): A public status page and the admin screens to run it: maintenance mode, component statuses and incidents. - [Subscription Charts](/llms.mdx/docs/components/subscription-charts.md): An admin screen of subscription metrics: MRR, subscribers, revenue, churn, trial conversion and paywall conversion, with filters and CSV export. - [Workflow Screens](/llms.mdx/docs/components/workflow-screens.md): A durable workflow run timeline and an approval inbox card with Approve and Reject. - [Packages](/llms.mdx/docs/packages/llms-full.txt) - [Packages](/llms.mdx/docs/packages.md): Every Signet package: install the ones you need, each on its own. - **Start** - Create Signet App - [Create Signet App](/llms.mdx/docs/packages/create-signet-app.md): Scaffold a Vite + React app, a Hono API, an Expo mobile app, a CLI, an extension or a desktop app wired to Signet. - [Starters and the picker](/llms.mdx/docs/packages/create-signet-app/starters.md): The questions create-signet-app asks on a terminal, every starter, and the flags that answer them. - [Plan from a sentence](/llms.mdx/docs/packages/create-signet-app/plan.md): --describe turns one sentence into a scaffolded app, a PLAN.md and an AGENTS.md. - [Flags and templates](/llms.mdx/docs/packages/create-signet-app/flags.md): Every create-signet-app flag, platform and API target. - [MCP](/llms.mdx/docs/packages/create-signet-app/mcp.md): Serve your API routes to agents at /mcp, or add it later. - CLI - [CLI](/llms.mdx/docs/packages/cli.md): Copy components and backend modules into your app as source, then merge upstream changes. - MCP Server - [MCP](/llms.mdx/docs/packages/mcp.md): An MCP server that gives AI agents Signet's docs, exports, components, themes and checks. - [generated](/llms.mdx/docs/packages/mcp/generated.md): INDEX: the index the MCP server answers from, exported for tools that build on it. - [plan](/llms.mdx/docs/packages/mcp/plan.md): planPage: a page described in words to a file plan, without running the MCP server. - **Frontend** - UI - [UI](/llms.mdx/docs/packages/ui.md): Token-driven React components on Tailwind v4, plus hooks, screens and domain blocks. - [Behaviors](/llms.mdx/docs/packages/ui/behaviors.md): Keyboard shortcuts, controllable state and fuzzy matching the components are built from. - [Blocks](/llms.mdx/docs/packages/ui/blocks.md): Whole-page starting points: dashboard, auth, pricing, settings and more, meant to be copied in and edited. - [Domain](/llms.mdx/docs/packages/ui/domain.md): Larger building blocks: money amounts, CSV import, kanban, uploads, job runs, trend chip. - [Hooks](/llms.mdx/docs/packages/ui/hooks.md): Copy, debounce, media query, local storage, intersection and realtime channel hooks. - [Screens](/llms.mdx/docs/packages/ui/screens.md): Ready-made app screens: auth, account, billing, admin, orgs, notifications and more. - [Utils](/llms.mdx/docs/packages/ui/utils.md): cn() for merging class names, aware of Signet's type ramp. - Tokens - [Tokens](/llms.mdx/docs/packages/tokens.md): Themes as CSS variables, plus JS, ANSI and theme-builder entry points. - [ANSI](/llms.mdx/docs/packages/tokens/ansi.md): Theme colours as terminal escapes, truecolor or 256-colour. - [Themes](/llms.mdx/docs/packages/tokens/themes.md): CSS theme files and base styles. Pick one theme, then import base.css. - [Native](/llms.mdx/docs/packages/tokens/native.md): Every theme as plain JS values for React Native and anything without CSS variables. - [Theme](/llms.mdx/docs/packages/tokens/theme.md): One brand colour in, every colour token of a theme out, contrast-checked. - Client Lib - [Lib](/llms.mdx/docs/packages/lib.md): Client primitives: API client, forms, formatting, analytics, sessions, storage, search. - [Analytics](/llms.mdx/docs/packages/lib/analytics.md): Batched client event tracking that is safe to call and honours opt-out. - [API](/llms.mdx/docs/packages/lib/api.md): Fetch client, typed Hono RPC client, error classes, stream readers and TanStack Query defaults. - [Crypto](/llms.mdx/docs/packages/lib/crypto.md): Fail-closed field decryption: a field that does not decrypt becomes null. - [Form](/llms.mdx/docs/packages/lib/form.md): TanStack Form helpers: readable field errors and server validation errors on fields. - [Format](/llms.mdx/docs/packages/lib/format.md): Currency, percent and date formatting plus date arithmetic, on Intl only. - [Offline](/llms.mdx/docs/packages/lib/offline.md): An outbox that saves work done offline and sends it when you are back online. - [Search](/llms.mdx/docs/packages/lib/search.md): Ranked in-app search with query chips, typo tolerance and usage boosts. No UI, no dependencies. - [Session](/llms.mdx/docs/packages/lib/session.md): Bearer tokens for clients without cookies, with refresh, kept in any storage adapter. - [Storage](/llms.mdx/docs/packages/lib/storage.md): One async key-value interface for strings, with an adapter per platform. - [Sync](/llms.mdx/docs/packages/lib/sync.md): Pure conflict rules for local-first sync: any arrival order ends in the same row. - [Telemetry](/llms.mdx/docs/packages/lib/telemetry.md): Opt-in usage stats for CLIs and desktop apps: only what you declare is sent, and everything sent is logged locally. - [Webhooks](/llms.mdx/docs/packages/lib/webhooks.md): Standard Webhooks signing and verifying on Web Crypto only. - **Backend** - Server - [Server](/llms.mdx/docs/packages/server.md): Backend primitives for Hono apps: auth, HTTP, jobs, MCP, notifications and realtime. - [Abuse](/llms.mdx/docs/packages/server/abuse.md): Bot checks and disposable-email blocking for sign-up and reset routes. - [Adapters](/llms.mdx/docs/packages/server/adapters.md): Plug interfaces so server code runs on Cloudflare, Node, Bun, Vercel, Upstash and S3. - [Analytics](/llms.mdx/docs/packages/server/analytics.md): Ingest browser events and record server events to any sink. - [Auth](/llms.mdx/docs/packages/server/auth.md): Sessions, devices, API keys, phone codes, bearer tokens and client sign-in. - [Env](/llms.mdx/docs/packages/server/env.md): Workers-safe environment access and lazy, validated config. - [HTTP](/llms.mdx/docs/packages/server/http.md): Error envelope, validation, OpenAPI, caching and ready-made route groups. - [Jobs](/llms.mdx/docs/packages/server/jobs.md): Background jobs with retries, schedules, durable steps and agent tools on any queue. - [MCP](/llms.mdx/docs/packages/server/mcp.md): Typed MCP tools, resources and prompts served from Hono or stdio, with approvals. - [Middleware](/llms.mdx/docs/packages/server/middleware.md): Request id, security headers, CORS, CSRF, rate limiting and maintenance mode. - [Notify](/llms.mdx/docs/packages/server/notify.md): One notify call to email, SMS, WhatsApp, push, Telegram and an in-app inbox. - [OAuth Resource Server](/llms.mdx/docs/packages/server/oauth-rs.md): Accept access tokens issued elsewhere: JWT verification, scopes and discovery metadata. - [Observability](/llms.mdx/docs/packages/server/observability.md): Structured JSON logging with redaction, request tracing and logs, Sentry reporting that runs on Workers, and health routes. - [Realtime](/llms.mdx/docs/packages/server/realtime.md): Presence, live updates and shared state per channel, on Bun, Node or Cloudflare. - [Storage](/llms.mdx/docs/packages/server/storage.md): Checked uploads over any blob store: presigned or streamed, with quotas and cleanup. - Spec - [Spec](/llms.mdx/docs/packages/spec.md): The wire contract as Zod: the error envelope, error codes, analytics ingest and webhook delivery, plus versioned JSON Schema files, and an OpenAPI document for the auth routes. - [Analytics](/llms.mdx/docs/packages/spec/analytics.md): Ingest request and reply, and the stored event. - [Conformance](/llms.mdx/docs/packages/spec/conformance.md): Language-neutral test cases for the wire contract, and a runner that checks any backend against them. - [Error](/llms.mdx/docs/packages/spec/error.md): Envelope schema, error-code table and their types. - [OpenAPI](/llms.mdx/docs/packages/spec/openapi.md): OpenAPI 3.1 document for the session and client-login auth routes. - [Schemas](/llms.mdx/docs/packages/spec/schemas.md): The generated JSON files, as package exports. - [Webhooks](/llms.mdx/docs/packages/spec/webhooks.md): Delivery body, signed headers and outbox message. - Database - [Database](/llms.mdx/docs/packages/db.md): Drizzle helpers: scoping, money, encryption, audit, plus plans, flags, analytics and more. - [Admin](/llms.mdx/docs/packages/db/admin.md): An admin API and admin tools generated from your schema, deny by default. - [Agent](/llms.mdx/docs/packages/db/agent.md): Per-user database tools for AI agents, safe by construction. - [AI Spend](/llms.mdx/docs/packages/db/ai-spend.md): Per-user, per-org and global AI spend caps per day and month, and a dated spend ledger. - [Analytics](/llms.mdx/docs/packages/db/analytics.md): Analytics events stored in your own database, with typed questions over them. - [Charts](/llms.mdx/docs/packages/db/charts.md): MRR, subscribers, churn and trials from the customer timeline. - [Collab](/llms.mdx/docs/packages/db/collab.md): Comments, @mentions, activity timeline and version history for org records. - [Columns](/llms.mdx/docs/packages/db/columns.md): Column helpers and ready-made tables for SQLite, D1 and Postgres. - [Customers](/llms.mdx/docs/packages/db/customers.md): Customer timeline across stores and web, identity merge and a Customer Center. - [D1](/llms.mdx/docs/packages/db/d1.md): Cloudflare D1 driver for signet-db. - [Entitlements](/llms.mdx/docs/packages/db/entitlements.md): Plans, features, usage limits and billing events, for users or orgs. - [Experiments](/llms.mdx/docs/packages/db/experiments.md): A/B/n tests with sticky assignment and a significance readout. - [Flags](/llms.mdx/docs/packages/db/flags.md): Feature flags defined in code, with stored overrides per subject. - [Funnels](/llms.mdx/docs/packages/db/funnels.md): Web checkout funnels that sell an offering, then unlock the purchase in the app. - [Growth](/llms.mdx/docs/packages/db/growth.md): Waitlist, invites, referrals, onboarding progress, changelog and feedback. - [Import](/llms.mdx/docs/packages/db/import.md): Validated, chunked, idempotent bulk insert with a report per row. - [Migrations](/llms.mdx/docs/packages/db/migrations.md): Scan SQL migrations for changes that lose data or break running code. - [Offerings](/llms.mdx/docs/packages/db/offerings.md): Versioned offerings and remote paywalls, served by placement and audience. - [Orgs](/llms.mdx/docs/packages/db/orgs.md): Multi-tenant organisations: members, roles, permissions, custom domains and invites. - [Postgres](/llms.mdx/docs/packages/db/postgres.md): Postgres driver on postgres-js for Supabase, Neon, RDS or a local server. - [Pricing](/llms.mdx/docs/packages/db/pricing.md): Pricing experiments: read out which offering earns more, then roll out the winner. - [Privacy](/llms.mdx/docs/packages/db/privacy.md): DPDP building blocks: consent records, withdrawal, data export and erasure requests. - [SQLite](/llms.mdx/docs/packages/db/sqlite.md): SQLite driver on bun:sqlite for Bun, Docker and self-hosted boxes. - [Status](/llms.mdx/docs/packages/db/status.md): A status page with components and incidents, plus the maintenance switch. - [Webhooks](/llms.mdx/docs/packages/db/webhooks.md): Outbound signed webhooks with retries, a delivery log and SSRF protection. - [Workflows](/llms.mdx/docs/packages/db/workflows.md): Durable multi-step jobs on your own database: sleep, wait, approve, retry. - [Zod](/llms.mdx/docs/packages/db/zod.md): Zod schemas generated from a table's columns, for request bodies and rows. - Payments - [Payments](/llms.mdx/docs/packages/payments.md): One payment model over 12 gateways, with a webhook inbox, ledger and reconciliation. - [AI Agent](/llms.mdx/docs/packages/payments/agent.md): Payment tools for AI agents as MCP tools, with refunds always gated on approval. - [App Store](/llms.mdx/docs/packages/payments/appstore.md): Verify and track Apple App Store purchases and subscriptions from your backend. - [Cashfree](/llms.mdx/docs/packages/payments/cashfree.md): Cashfree PG orders, subscriptions, settlements recon and Payouts v2. - [Dodo](/llms.mdx/docs/packages/payments/dodo.md): Dodo Payments checkout sessions as merchant of record, with refunds and subscriptions. - [Google Play](/llms.mdx/docs/packages/payments/googleplay.md): Verify and track Google Play purchases and subscriptions from your backend. - [GST](/llms.mdx/docs/packages/payments/gst.md): GST tax invoices for India: GSTIN checks, CGST/SGST/IGST, numbering and HTML output. - [Hyperswitch](/llms.mdx/docs/packages/payments/hyperswitch.md): Hyperswitch orchestrator payments for its SDK, refunds, saved methods, payouts and subscriptions. - [Lemon Squeezy](/llms.mdx/docs/packages/payments/lemonsqueezy.md): Lemon Squeezy variant checkouts at a custom price, order refunds and subscriptions. - [Paddle](/llms.mdx/docs/packages/payments/paddle.md): Paddle Billing transactions from catalog prices, refunds as adjustments, subscriptions. - [PayPal](/llms.mdx/docs/packages/payments/paypal.md): PayPal Orders v2, authorize and capture, refunds, subscriptions and payouts. - [PayU](/llms.mdx/docs/packages/payments/payu.md): PayU India hashed form checkout, pre-authorize capture, refunds and settlement details. - [PhonePe](/llms.mdx/docs/packages/payments/phonepe.md): PhonePe Standard Checkout v2 with OAuth, refunds and Autopay subscriptions. - [Razorpay](/llms.mdx/docs/packages/payments/razorpay.md): Razorpay Orders, saved methods, subscriptions, RazorpayX payouts and settlement recon. - [Stripe](/llms.mdx/docs/packages/payments/stripe.md): Stripe PaymentIntents for Elements, subscriptions, payouts and balance-transaction settlements. - [UPI](/llms.mdx/docs/packages/payments/upi.md): Build upi://pay intents for links and QR codes. - AI - [AI](/llms.mdx/docs/packages/ai.md): Structured LLM calls with budget caps, caching, failover, tool loops and grounded answers. - [Budget](/llms.mdx/docs/packages/ai/budget.md): A rolling-window spend ledger that fails closed, with per-key caps. - [Budget (Durable Object)](/llms.mdx/docs/packages/ai/budget-do.md): An exact, global AI budget on Cloudflare Workers. - [Cache](/llms.mdx/docs/packages/ai/cache.md): Answer caches keyed by schema, instructions, input and model. - [Chat](/llms.mdx/docs/packages/ai/chat.md): Tool loops with a step cap, and streaming chat for a route handler. - [Errors](/llms.mdx/docs/packages/ai/errors.md): AiError and the error codes, handled like any other API failure. - [Extract](/llms.mdx/docs/packages/ai/extract.md): Typed, validated model output with retry, failover, cache and budget. - [Fake](/llms.mdx/docs/packages/ai/fake.md): A deterministic provider for tests: no network, no spend. - [Ground](/llms.mdx/docs/packages/ai/ground.md): Embeddings, in-memory similarity search and answers with verified citations. - [Jev](/llms.mdx/docs/packages/ai/jev.md): Classifier decisions that always resolve with a safe fallback. - [Usage to spans and spend](/llms.mdx/docs/packages/ai/otel.md): Put AI token usage and cost on the active OpenTelemetry span, and record spend per user or org. - [Providers](/llms.mdx/docs/packages/ai/providers.md): Vercel AI SDK and Workers AI adapters for the extractor. - [React](/llms.mdx/docs/packages/ai/react.md): useSignetChat: a chat hook for a streamChat route, with usage. - **Tooling** - Config - [Config](/llms.mdx/docs/packages/config.md): Shared Biome preset, TypeScript bases and a reusable bun CI workflow. - [Biome](/llms.mdx/docs/packages/config/biome.md): House lint and format preset, and the reusable bun CI workflow. - [Package](/llms.mdx/docs/packages/config/package.md): What the config package ships and how its exports map resolves. - [TSConfig](/llms.mdx/docs/packages/config/tsconfig.md): Strict TypeScript bases for scripts, React apps and Workers. - Test - [Test](/llms.mdx/docs/packages/test.md): Fake providers with the real interfaces, Playwright theme checks, dev overlay and demo mode. - [AI](/llms.mdx/docs/packages/test/ai.md): A fake language model on the AI SDK's own mock. No network, no spend. - [Demo](/llms.mdx/docs/packages/test/demo.md): One switch that wires every fake and your seed data so the app runs offline. - [Overlay](/llms.mdx/docs/packages/test/overlay.md): A dev-only panel: current user, plan, theme switcher and the fake outbox. - [Payments](/llms.mdx/docs/packages/test/payments.md): Fake Razorpay, Stripe and PayU servers behind the real signet-payments adapters. - [Playwright](/llms.mdx/docs/packages/test/playwright.md): Sign in without UI, seed data, and screenshot every theme in light and dark. - [Stores](/llms.mdx/docs/packages/test/stores.md): Fake App Store and Google Play backends with signed payloads, for the real adapters.