Docs/Reference/API Reference

API Reference

Complete Go API reference for Fletch v0.4.0 core packages and all eight Fletch ecosystem modules, with direct pkg.go.dev links and package summaries.

github.com/fletchhq/fletch

fletchpkg.go.devsightpkg.go.devtallypkg.go.devaikitpkg.go.devstaticpkg.go.dev

Updated 2026-12-06 fletch docs show api 19 min read

On this page

Every Fletch subsystem ships as a standalone Go module under github.com/fletchhq/fletch, alongside eight optional ecosystem repositories under github.com/fletchhq/*. You may wire them together through the root fletch package or import individual leaf modules such as router, crest, nock, or quiver in any Go service.

Introduction

Generated Go API documentation for every public Fletch package lives on pkg.go.dev. Keeping symbol references there gives you clickable types, method sets, source links, and versioned snapshots that update automatically whenever a new release tag is published. The tables below map each public import path to its pkg.go.dev reference and its narrative guide on this site.

When you are working offline or prefer staying in the terminal, Go's built-in go doc prints the same package and symbol documentation directly from your local module cache. See Offline go doc and fletch docs below for quick lookup commands.

Core Fletch (github.com/fletchhq/fletch, v0.4.0)

The github.com/fletchhq/fletch repository contains the framework root and its standalone subsystem modules, all tagged at v0.4.0. Each link below opens the package's full API documentation on pkg.go.dev.

App & HTTP

The root application composition package, HTTP router, middleware, HTTP engine, assets, image pipeline, and pure-Go PDF writer.

Package Guide Description
github.com/fletchhq/fletch Quickstart Composes standalone Fletch modules into an app with router, Crest elements, Live, assets, images, and pluggable defaults that need no external service.
github.com/fletchhq/fletch/router Routing & auth Standalone HTTP router with per-method radix tree, pooled Ctx parameter capture, typed routes, and named URL building.
github.com/fletchhq/fletch/router/bindgen Forms & uploads Generates Bind methods for router inputs from struct tags so typed routes bind requests without reflection.
github.com/fletchhq/fletch/router/cors Security & hardening Cross-Origin Resource Sharing middleware.
github.com/fletchhq/fletch/router/jsongen Fast server Generates AppendJSON methods for //fletch:json types so JSON routes respond without encoding/json reflection.
github.com/fletchhq/fletch/router/ratelimit Security & hardening Fixed-window HTTP rate limiting middleware with an in-memory default and a pluggable Store interface for multi-node setups.
github.com/fletchhq/fletch/router/ratelimit/postgres Security & hardening ratelimit.Store backed by a Postgres table so multiple app instances share rate limits without Redis.
github.com/fletchhq/fletch/router/ratelimit/redis Security & hardening ratelimit.Store backed by Redis or Valkey for shared multi-instance rate limits.
github.com/fletchhq/fletch/router/secure Security & hardening Sets browser security headers: HSTS, nosniff, framing, referrer, permissions policy, and Content-Security-Policy with a per-request cryptographic nonce.
github.com/fletchhq/fletch/router/webhook Security & hardening Signed webhook receiver with size-capped raw body reads, signature verification over exact bytes, and idempotent event deduplication.
github.com/fletchhq/fletch/httpengine Fast server HTTP/1.1 and HTTP/2 server for net/http handlers with an allocation-free path for handlers written against its own Context.
github.com/fletchhq/fletch/assets Assets & images Runtime half of Fletch's asset pipeline: maps logical asset names to fingerprinted URLs and serves built files.
github.com/fletchhq/fletch/assets/pipeline Assets & images Build half of Fletch's asset pipeline: interfaces the CLI drives to turn source assets into fingerprinted, compressed output and a manifest.
github.com/fletchhq/fletch/images Assets & images Image pipeline interfaces: original references, presets, Processor and VariantStore behind a Service, and inspection metadata.
github.com/fletchhq/fletch/images/prewarm Assets & images Generates image variants in a Quiver background job so the first visitor after an upload does not wait for encodes.
github.com/fletchhq/fletch/images/vips Assets & images images.Processor backed by libvips.
github.com/fletchhq/fletch/pdf PDF generation Pure-Go PDF 1.4 writer supporting flowing text with word wrap, headings, rules, multi-page tables, page numbers, and document metadata.

Templates & Live UI

Crest template runtime and compiler tools, built-in Crest elements, Live WebSocket views, TinyGo islands, and the Alpine.js bridge.

Package Guide Description
github.com/fletchhq/fletch/crest Crest templates Runtime for Crest templates: the Component contract, HTML escaping, and render-time asset URL hooks.
github.com/fletchhq/fletch/crest/ast Crest templates Syntax tree, lexer, and error-tolerant parser for .crest files.
github.com/fletchhq/fletch/crest/plugin Crest plugins Public extension API of the Crest compiler for custom elements.
github.com/fletchhq/fletch/crest/slot Live components Rendered-tree types produced by Crest-generated views and consumed by Live: statics tables, slot kinds, change tracking, handler refs, and signals.
github.com/fletchhq/fletch/crest/tools/cmd/crest Crest templates Standalone crest command that generates Go from .crest templates.
github.com/fletchhq/fletch/crest/tools/compiler Crest templates Compiles .crest templates into Go (Render for server HTML and RenderSlots for Live) with statics tables, fingerprints, handler refs, and source maps.
github.com/fletchhq/fletch/crest/tools/compilerhost Crest plugins Plugin build host main for a compiler binary built from a build-tagged plugin list (crest.plugins.go or fletch.plugins.go).
github.com/fletchhq/fletch/crest/tools/lsp Crest templates Crest language server proxying gopls, mapping .crest files to _crest.go with completion, hover, and plugin element diagnostics.
github.com/fletchhq/fletch/elements/alpine Alpine & Live Built-in <f:alpine /> Crest element plugin.
github.com/fletchhq/fletch/elements/alpine/rt Alpine & Live Request-time runtime renderer for <f:alpine />.
github.com/fletchhq/fletch/elements/csrf Forms & uploads Built-in <f:csrf /> Crest element plugin.
github.com/fletchhq/fletch/elements/csrf/rt Forms & uploads Request-time runtime renderer for <f:csrf />.
github.com/fletchhq/fletch/elements/icon Crest templates Built-in <f:icon> Crest element plugin.
github.com/fletchhq/fletch/elements/icon/iconset Crest templates Renders <f:icon> SVGs from registered icon sets.
github.com/fletchhq/fletch/elements/img Assets & images Built-in <f:img> Crest element plugin.
github.com/fletchhq/fletch/elements/img/rt Assets & images Runtime renderer for <f:img> elements whose attributes are only known at render time.
github.com/fletchhq/fletch/elements/markdown Crest templates Built-in <f:markdown> Crest element plugin.
github.com/fletchhq/fletch/live Live components Drives Crest views over a WebSocket or SSE connection with server-managed state and diff patching.
github.com/fletchhq/fletch/live/client Live components Embeds the Live browser runtime: socket and recovery, frame decoder, anchor patcher, and signal store with opcode interpreter.
github.com/fletchhq/fletch/live/wasm Live components SDK for Tier 3 islands: Go code compiled with TinyGo that reads and writes signals through linear memory.
github.com/fletchhq/fletch/alpine Alpine & Live Serves Alpine.js 3 and the $fletch plugin connecting Alpine components to the nearest Live root.

Data & Infrastructure

Database access, migrations, background jobs, pub/sub messaging, caching, object storage, outbound email, and layered configuration.

Package Guide Description
github.com/fletchhq/fletch/nock Nock database Standalone pure-Go database toolkit: compile-time-typed SQL builder, plain-struct scanning, transactions, and explicit relation preloading over database/sql.
github.com/fletchhq/fletch/nock/schema Nock database Declarative Go table DSL for defining module schemas.
github.com/fletchhq/fletch/nock/diff Nock database Reads Nock schema files as Go source, orders tables by foreign key, tracks snapshot.json, and generates SQL migration diffs.
github.com/fletchhq/fletch/nock/gen Nock database Writes schema_gen.go per module with Row, New, and Patch structs, typed column descriptors, and foreign-key relations.
github.com/fletchhq/fletch/nock/migrate Nock database Nock's built-in pure-Go SQL migrator.
github.com/fletchhq/fletch/nock/postgres Nock database Opens PostgreSQL for Nock on a native pgx/v5 pool with a database/sql view, normalized constraint errors, and query observer tracing.
github.com/fletchhq/fletch/nock/sqlite Nock database Opens SQLite for Nock with pure-Go modernc.org/sqlite (CGO_ENABLED=0), normalized constraint errors, and query observer tracing.
github.com/fletchhq/fletch/data Nock database Thin database helpers: carrying *sql.DB in context, read-only transactions, and directory migrations.
github.com/fletchhq/fletch/data/migrate Nock database Runs external migration and query-generation tools (Atlas and Bob) when an app delegates outside Nock.
github.com/fletchhq/fletch/data/postgres Nock database Opens PostgreSQL databases with the pure-Go pgx stdlib driver and describes connections with credentials redacted.
github.com/fletchhq/fletch/data/sqlite Nock database Opens SQLite databases with pure-Go modernc.org/sqlite (CGO_ENABLED=0) and clones migrated templates per test.
github.com/fletchhq/fletch/quiver Quiver jobs Background job system with typed jobs and workers, retries with backoff, discard and snooze, named queues, priorities, and unique or transactional enqueues.
github.com/fletchhq/fletch/quiver/postgres Quiver jobs Native Postgres quiver.Driver on a pgx/v5 pool.
github.com/fletchhq/fletch/quiver/sqlite Quiver jobs SQLite-backed quiver.Driver over an app-supplied *sql.DB.
github.com/fletchhq/fletch/quiver/sqs Quiver jobs Amazon SQS quiver.Driver built on aws-sdk-go-v2 so core quiver stays stdlib-only.
github.com/fletchhq/fletch/quiver/goqite Quiver jobs Compatibility alias for the former name of quiver/sqlite.
github.com/fletchhq/fletch/pubsub PubSub In-app message bus contract with a default in-process implementation.
github.com/fletchhq/fletch/pubsub/postgres PubSub pubsub.Broker backed by Postgres.
github.com/fletchhq/fletch/pubsub/nats PubSub pubsub.Broker backed by NATS JetStream.
github.com/fletchhq/fletch/pubsub/redis PubSub pubsub.Broker backed by Redis.
github.com/fletchhq/fletch/pubsub/sns PubSub pubsub.Broker backed by Amazon SNS.
github.com/fletchhq/fletch/pubsub/pgnotify PubSub Compatibility alias for the former name of pubsub/postgres.
github.com/fletchhq/fletch/cache Cache Byte cache contract with a bounded in-process LRU and a table-backed store over an app-supplied *sql.DB.
github.com/fletchhq/fletch/cache/postgres Cache cache.Cache backed by a Postgres table for apps that want a shared cache without Redis.
github.com/fletchhq/fletch/cache/redis Cache cache.Cache backed by Redis or Valkey.
github.com/fletchhq/fletch/storage Storage Object storage contract: keyed blob store with local disk and in-memory implementations.
github.com/fletchhq/fletch/storage/s3 Storage storage.Store for Amazon S3 and S3-compatible services such as Cloudflare R2 and MinIO.
github.com/fletchhq/fletch/storage/blob Storage Records uploaded files in a storage.Manager disk and links their metadata and attachments through a SQL repository.
github.com/fletchhq/fletch/storage/variants Storage Creates resized copies of stored images in pure Go, caches them under content-addressed keys, and serves them via HMAC-signed URLs.
github.com/fletchhq/fletch/mail Emails & mailers Outbound email contract with an in-process outbox for development and tests and an SMTP sender.
github.com/fletchhq/fletch/mail/postmark Emails & mailers mail.Mailer that sends through the Postmark HTTP API.
github.com/fletchhq/fletch/mail/resend Emails & mailers mail.Mailer that sends through the Resend HTTP API.
github.com/fletchhq/fletch/mail/ses Emails & mailers mail.Mailer that sends through the Amazon SES v2 HTTP API.
github.com/fletchhq/fletch/config Configuration Loads layered, typed application configuration into a Go struct and records where every value came from.
github.com/fletchhq/fletch/config/aws Configuration config.Provider implementations backed by AWS SSM Parameter Store and AWS Secrets Manager.

Auth & Security

Sessions, passwords, API keys, JWTs, OAuth 2.0, OpenID Connect, passkeys, TOTP, RBAC, and signed or encrypted tokens.

Package Guide Description
github.com/fletchhq/fletch/auth Routing & auth Authentication toolkit: session stores, signed session cookies, Argon2id password hashing, cross-origin protection, and request-context helpers.
github.com/fletchhq/fletch/auth/apikey Routing & auth Issues and verifies prefixed API keys.
github.com/fletchhq/fletch/auth/flash Routing & auth Carries one-time messages across a redirect in a short-lived, HMAC-SHA256 signed cookie.
github.com/fletchhq/fletch/auth/handoff Hosting Moves a signed-in user from a central platform host to another host the app serves, such as a customer's custom domain.
github.com/fletchhq/fletch/auth/jwt Routing & auth Signs and verifies JWTs (HS256, RS256, ES256, EdDSA, and post-quantum ML-DSA-44/65/87), fetches and rotates JWKS keys, and issues access and refresh tokens.
github.com/fletchhq/fletch/auth/oauth Routing & auth OAuth 2.0 authorization code client with PKCE (S256) and built-in providers for Google, GitHub, Apple, Discord, Microsoft, Slack, X, LinkedIn, GitLab, Facebook, and OIDC issuers.
github.com/fletchhq/fletch/auth/oidc Routing & auth OpenID Connect relying party with PKCE authorization code flow and JWKS ID-token verification (RS256, ES256, and ML-DSA-44/65/87).
github.com/fletchhq/fletch/auth/passkey Routing & auth Server-side WebAuthn Level 3 registration and authentication ceremonies for passkeys and security keys.
github.com/fletchhq/fletch/auth/rbac Routing & auth Role-based access control with role inheritance and optional per-resource ownership policies.
github.com/fletchhq/fletch/auth/redis Multi-node auth.SessionStore backed by Redis or Valkey.
github.com/fletchhq/fletch/auth/seal Security & hardening Creates and opens encrypted, expiring tokens for invite, unsubscribe, and password-reset links.
github.com/fletchhq/fletch/auth/signedurl Security & hardening Creates and verifies HMAC-SHA256 signed, expiring URLs for email verification and one-click action links.
github.com/fletchhq/fletch/auth/totp Routing & auth RFC 6238 time-based one-time passwords for two-factor sign-in: secret generation, otpauth:// URIs with SVG QR codes, and clock-skew verification.
github.com/fletchhq/fletch/auth/totp/qr Routing & auth Encodes text as a QR Code (ISO/IEC 18004, byte mode, versions 1 to 40) and renders it as SVG.

Observability & Testing

OpenTelemetry tracing, Prometheus metrics, append-only audit trails, the in-process app test harness, and driver conformance suites.

Package Guide Description
github.com/fletchhq/fletch/obs Observability & audit OpenTelemetry spans for HTTP, Live, Quiver, and SQL correlated through context, plus Prometheus metrics and PHI redaction helpers.
github.com/fletchhq/fletch/audit Observability & audit Audit trail contract recording who performed an action on which resource and with what outcome.
github.com/fletchhq/fletch/audit/postgres Observability & audit audit.Recorder backed by an append-only Postgres table.
github.com/fletchhq/fletch/testkit Testing In-process Fletch test harness for HTTP requests, Live components, databases, and virtual clocks.
github.com/fletchhq/fletch/auth/authtest Testing Conformance suite every auth.SessionStore must pass.
github.com/fletchhq/fletch/cache/cachetest Cache Conformance suite every cache.Cache must pass.
github.com/fletchhq/fletch/images/imagestest Assets & images Conformance suite for image providers.
github.com/fletchhq/fletch/mail/mailtest Emails & mailers Conformance suite every mail.Mailer must pass.
github.com/fletchhq/fletch/pubsub/pubsubtest PubSub Conformance suite every pubsub.Broker must pass.
github.com/fletchhq/fletch/quiver/quivertest Quiver jobs Contract suite every quiver.Driver must pass, plus a virtual clock for deterministic job tests.
github.com/fletchhq/fletch/storage/storagetest Storage Conformance suite every storage.Store must pass.

CLI & AX

The fletch CLI, app command runner, Agent Experience diagnostics and inspection schema, local dev HTTPS, and embedded docs and skills.

Package Guide Description
github.com/fletchhq/fletch/ax CLI, diagnostics & AX Agent experience layer: unified diagnostic format, fletch ax inspect document schema, and runtime app registry.
github.com/fletchhq/fletch/cli CLI, diagnostics & AX Small command runner over standard-library flag with per-command help and a JSON command manifest.
github.com/fletchhq/fletch/cmd/fletch CLI, diagnostics & AX Main entry point for the fletch CLI binary.
github.com/fletchhq/fletch/cmd/fletchbuild Crest plugins Main entry point for an app's custom Crest compiler binary.
github.com/fletchhq/fletch/devtls Dev dashboard Local development HTTPS: on-demand root CA and leaf certificates, OS trust-store setup, and loopback DNS responder.
github.com/fletchhq/fletch/docs CLI, diagnostics & AX Embedded framework Markdown documentation read by fletch docs.
github.com/fletchhq/fletch/skills CLI, diagnostics & AX Embedded agent skill definitions synced by fletch ax sync.

Ecosystem Modules (github.com/fletchhq/*)

Eight standalone Go repositories extend Fletch with admin panels, billing, AI tooling, custom domains, feature flags, full-text search, production telemetry, and static export. Each module builds with CGO_ENABLED=0 and works inside a Fletch app or any plain Go service. See the Ecosystem overview for installation and dependency details.

Sight (v0.3.0)

Typed Go admin panels built on Crest and Live. Read the Sight guide.

Package Guide Description
github.com/fletchhq/sight Sight Builds back-office panels from typed Go definitions: index, detail, create, and edit views served as Crest and Live pages under a strict CSP.
github.com/fletchhq/sight/quiversight Sight Manages Quiver queues from a Sight panel with dashboard job counts, a filterable jobs inspector, and queue controls.
github.com/fletchhq/sight/richtext Sight Renders, cleans, and measures rich text for Sight fields and public pages.
github.com/fletchhq/sight/richtext/editor Sight WYSIWYG rich text widget for Sight string fields.
github.com/fletchhq/sight/sighttest Sight Admin panel test harness with header auth, role-switching subject tables, a CSRF-aware HTTP client, and a Live form client.
github.com/fletchhq/sight/ui Sight Crest UI primitives used to build Sight views and custom admin pages.

Tally (v0.1.0)

Subscriptions, invoices, usage meters, entitlements, customer billing portal, and operator controls. Read the Tally guide.

Package Guide Description
github.com/fletchhq/tally Tally Unified billing core covering subscriptions, invoices, usage meters, entitlements, portal helpers, and operator billing workflows.
github.com/fletchhq/tally/nock Tally Persists Tally's billing mirror through Nock on SQLite and Postgres.
github.com/fletchhq/tally/paddle Tally Pure-Go Paddle Billing v2 driver for Tally.
github.com/fletchhq/tally/portal Tally Self-serve customer billing portal with plan status, plan picker and proration preview, seats, cancel/resume, and invoices.
github.com/fletchhq/tally/quiver Tally Runs Tally background work on Quiver: transactional webhook processing, nightly reconciliation, and usage outbox draining.
github.com/fletchhq/tally/sight Tally Sight operator dashboard plugin with billing KPIs, subscriptions, customers, invoices, webhook logs, and audited admin actions.
github.com/fletchhq/tally/stripe Tally Pure-Go Stripe helper for Checkout and Billing Portal sessions, replay-protected webhook verification, and idempotency keys.
github.com/fletchhq/tally/tallytest Tally Test kit with a settable clock, in-memory store, FakeProvider, signed webhook helpers, and provider contract suites.

AI Kit (v0.1.0)

Provider-neutral AI SDK, stateful agents, stdlib MCP server and client, chat connectors, evals, and five model drivers. Read the AI Kit guide.

Package Guide Description
github.com/fletchhq/aikit AI Kit Provider-neutral AI SDK core: messages, the Model contract, tools, structured output, failover, per-step middleware, and observers.
github.com/fletchhq/aikit/agent AI Kit Stateful agent runner with a tool loop, durable threads, restart-safe human approvals, Quiver background turns, and PubSub run events.
github.com/fletchhq/aikit/agent/web AI Kit Serves an agent to browser frontends over SSE using the Vercel AI SDK UI message stream (useChat) or the AG-UI protocol.
github.com/fletchhq/aikit/airec AI Kit Records recent AI runs in memory for the dev dashboard.
github.com/fletchhq/aikit/aitest AI Kit Test kit with a scripted fake Model, prompt assertions, HTTP record/replay for drivers, and the ModelContract suite.
github.com/fletchhq/aikit/anthropic AI Kit Anthropic Messages API driver written on net/http.
github.com/fletchhq/aikit/bedrock AI Kit Amazon Bedrock driver on the AWS SDK Converse and ConverseStream APIs with SigV4 signing.
github.com/fletchhq/aikit/converse AI Kit Connects AI Kit agents to chat platforms.
github.com/fletchhq/aikit/converse/conversetest AI Kit Fake Connector and helpers that deliver messages and approval decisions to a converse.Bot inline.
github.com/fletchhq/aikit/converse/github AI Kit Converse connector for GitHub issues and pull requests, starting turns on mentions and posting replies as comments.
github.com/fletchhq/aikit/converse/slack AI Kit Converse connector for Slack apps using Events API messages, chat.postMessage, and Block Kit approval buttons.
github.com/fletchhq/aikit/converse/telegram AI Kit Converse connector for Telegram bots using webhook updates, Bot API replies, and inline keyboard approval buttons.
github.com/fletchhq/aikit/converse/web AI Kit Converse connector for an app's own browser chat over JSON posts and polling.
github.com/fletchhq/aikit/eval AI Kit Grades an AI target against test cases with deterministic checks or a judge model.
github.com/fletchhq/aikit/gemini AI Kit Gemini Generative Language API driver written on net/http.
github.com/fletchhq/aikit/live AI Kit Server-rendered Crest and Live chat UI for agents that streams answers as Live diffs and runs approvals with no custom JavaScript.
github.com/fletchhq/aikit/mcp AI Kit Model Context Protocol server and client built on the Go standard library alone.
github.com/fletchhq/aikit/mcp/mcptest AI Kit Tests MCP servers with an in-memory client, chained assertions, and golden JSON-RPC transcripts.
github.com/fletchhq/aikit/nock AI Kit Stores agent threads, turns, approvals, and run events in SQLite or Postgres through Nock.
github.com/fletchhq/aikit/obs AI Kit Traces AI Kit runs with OpenTelemetry GenAI semantic conventions and exports Prometheus metrics.
github.com/fletchhq/aikit/openai AI Kit OpenAI API driver written on net/http.
github.com/fletchhq/aikit/schema AI Kit Builds JSON Schemas from Go types for tool inputs and structured output, validates JSON, and adapts schemas per provider.
github.com/fletchhq/aikit/stream/agui AI Kit Encodes an AI Kit event stream as AG-UI protocol events over SSE for CopilotKit and AG-UI clients.
github.com/fletchhq/aikit/stream/vercel AI Kit Encodes an AI Kit event stream as the Vercel AI SDK UI message stream (v1) for useChat over SSE.
github.com/fletchhq/aikit/vertex AI Kit Runs Gemini models on Google Cloud Vertex AI.

Domains (v0.1.0)

Multi-tenant custom domain routing, DNS verification, and Caddy on-demand TLS ask endpoints. Read the Domains guide.

Package Guide Description
github.com/fletchhq/domains Domains Serves runtime-attached customer domains: normalizes tenant hostnames, resolves hosts through a bounded cache, and answers Caddy on-demand TLS ask checks.
github.com/fletchhq/domains/domainstest Domains Conformance suite for domains.Store and domains.Writer implementations.
github.com/fletchhq/domains/memstore Domains In-memory domains.Store and domains.Writer for tests, local dev, and single-process apps.

Flags (v0.1.0)

Code-defined typed feature flags with scoped evaluation and persistent storage. Read the Flags guide.

Package Guide Description
github.com/fletchhq/flags Flags Feature flag engine where flags are defined in code with a resolver, evaluated per scope, and persisted in a Store.
github.com/fletchhq/flags/flagstest Flags Testing helpers including an in-memory manager with forced values and a Store contract suite.
github.com/fletchhq/flags/nock Flags flags.Store backed by SQLite or Postgres through Nock.

Search (v0.1.0)

Full-text search abstraction over Nock SQL databases and Meilisearch, with background indexing on Quiver. Read the Search guide.

Package Guide Description
github.com/fletchhq/search Search Full-text search abstraction indexing documents into named indexes and returning ranked, filtered, faceted, paginated results.
github.com/fletchhq/search/meilisearch Search search.Engine talking to a Meilisearch server using only net/http and encoding/json.
github.com/fletchhq/search/nock Search search.Engine backed by a SQL database through Nock.
github.com/fletchhq/search/quiver Search Indexes search documents in the background through a Quiver queue.
github.com/fletchhq/search/searchtest Search In-memory search.Engine and contract suite every search.Engine must pass.

Pulse (v0.1.0)

Opt-in production telemetry for requests, slow SQL, Quiver jobs, caches, outbound HTTP, exceptions, and runtime health. Read the Pulse guide.

Package Guide Description
github.com/fletchhq/pulse Pulse Records production telemetry: request latency, slow SQL, Quiver jobs, cache hit ratios, outbound HTTP calls, grouped exceptions, and runtime health.
github.com/fletchhq/pulse/nock Pulse Persists Pulse rollups in SQLite or Postgres through Nock and records Nock SQL statements.
github.com/fletchhq/pulse/pulsesight Pulse Displays Pulse telemetry inside a Sight admin panel with overview, requests, queries, jobs, exceptions, and dashboard widgets.
github.com/fletchhq/pulse/pulsetest Pulse Contract suite verifying that a pulse.Store meets the storage interface.
github.com/fletchhq/pulse/quiver Pulse Records Quiver job executions with a Pulse recorder.

Static (v0.2.1)

Static site export, typed Markdown collections, OG cards, search, feeds, hybrid prerendering, and split deploys. content and content/highlight are at v0.1.1 and og is at v0.1.0. Read the Static guide.

Package Guide Description
github.com/fletchhq/static Static Exports a Fletch app as a static site for Cloudflare, Vercel, Netlify, GitHub Pages, or plain hosting, with crawl checks, CSP hashing, host previews, hybrid prerendering, and split deploys.
github.com/fletchhq/static/content Static Loads typed collections of Markdown files with validated frontmatter, GFM, callouts, code tabs, Crest components, and hot reload in development.
github.com/fletchhq/static/content/highlight Static content.Highlighter built on Chroma with a Crest lexer and a light/dark stylesheet.
github.com/fletchhq/static/og Static Renders 1200x630 Open Graph PNG cards in pure Go and serves them through a cached http.Handler.
github.com/fletchhq/static/feed Static Renders deterministic RSS 2.0, Atom 1.0, and JSON Feed 1.1 documents and serves them as HTTP handlers.
github.com/fletchhq/static/search Static Builds a static full-text search index from exported pages and ships a small browser client.
github.com/fletchhq/static/seo Static Checks an export's search-engine and social metadata (SEO001 to SEO007).
github.com/fletchhq/static/statictest Static Exports an app inside a test and asserts on files, headers, redirects, and diagnostics.

Offline go doc and fletch docs

You can inspect any Fletch API without leaving your terminal or opening a browser. Inside a Go module that imports Fletch, go doc reads the exact version pinned in your go.mod from the local Go module cache:

# Package overview and exported symbols
go doc github.com/fletchhq/fletch/router

# Full documentation for one type or interface
go doc github.com/fletchhq/fletch/router.Ctx
go doc -all github.com/fletchhq/fletch/quiver.Driver

For narrative guides alongside symbol signatures, Fletch embeds its Markdown documentation (and the documentation of every github.com/fletchhq/* ecosystem module in your go.mod) directly inside the Go modules. Use fletch docs to browse or search them offline:

# List embedded guides for Fletch and installed ecosystem modules
fletch docs

# Print a core guide or an ecosystem module guide
fletch docs show quiver
fletch docs show sight/sight

# Search all embedded docs offline (BM25)
fletch docs search "transactional enqueue"

# Print the local docs directory for your pinned Fletch version
fletch docs path

Run fletch ax sync after upgrading Fletch or adding an ecosystem module to rebuild .fletch/docs.index.json so fletch docs search and the fletch mcp server stay matched to your go.mod.