Directories
¶
| Path | Synopsis |
|---|---|
|
Package admin provides authentication and a router skeleton for an operator-facing HTTP API, separate from the auth package's end-user sessions.
|
Package admin provides authentication and a router skeleton for an operator-facing HTTP API, separate from the auth package's end-user sessions. |
|
cmd/seed
command
Command seed creates the first admin account, using admin.Seed against a Postgres-backed admin.AdminStore (admin/pg).
|
Command seed creates the first admin account, using admin.Seed against a Postgres-backed admin.AdminStore (admin/pg). |
|
pg
Package pg is a Postgres-backed implementation of admin.AdminStore.
|
Package pg is a Postgres-backed implementation of admin.AdminStore. |
|
Package agent runs an agent to completion across process deaths.
|
Package agent runs an agent to completion across process deaths. |
|
agenttest
Package agenttest is what tests of agents are built from: a Clock a test moves by hand, a Model that answers from a script, a FaultStore that stops a process at a chosen store call, and RunStoreSuite, the contract every agent.Store passes.
|
Package agenttest is what tests of agents are built from: a Clock a test moves by hand, a Model that answers from a script, a FaultStore that stops a process at a chosen store call, and RunStoreSuite, the contract every agent.Store passes. |
|
httpapi
Package httpapi serves runs, their timelines and their approvals over HTTP, for a person or a front end to list runs, read what one has done, follow it as it goes, and approve, decline or cancel.
|
Package httpapi serves runs, their timelines and their approvals over HTTP, for a person or a front end to list runs, read what one has done, follow it as it goes, and approve, decline or cancel. |
|
internal/storerule
Package storerule is the part of the agent.Store contract that says what a store keeps, what it refuses and what it keeps as something else, written once.
|
Package storerule is the part of the agent.Store contract that says what a store keeps, what it refuses and what it keeps as something else, written once. |
|
pg
Package pg is the Postgres-backed agent.Store: the one that keeps a run and its journal when the process executing it does not survive.
|
Package pg is the Postgres-backed agent.Store: the one that keeps a run and its journal when the process executing it does not survive. |
|
Package app wires keel packages into a running service.
|
Package app wires keel packages into a running service. |
|
Package auth provides authentication for an HTTP API: password accounts, session tokens, email verification, password reset, and identity-token exchange for Firebase and generic OpenID Connect providers.
|
Package auth provides authentication for an HTTP API: password accounts, session tokens, email verification, password reset, and identity-token exchange for Firebase and generic OpenID Connect providers. |
|
pg
Package pg is a Postgres-backed implementation of the auth package's storage interfaces: UserStore, SessionStore, VerificationStore, PasswordResetStore and AttemptStore.
|
Package pg is a Postgres-backed implementation of the auth package's storage interfaces: UserStore, SessionStore, VerificationStore, PasswordResetStore and AttemptStore. |
|
cmd
|
|
|
keel
command
Command keel scaffolds projects built on keel.
|
Command keel scaffolds projects built on keel. |
|
Package config loads a service's configuration from the environment.
|
Package config loads a service's configuration from the environment. |
|
Package events publishes and subscribes to messages, between processes or between goroutines in one process, behind two interfaces.
|
Package events publishes and subscribes to messages, between processes or between goroutines in one process, behind two interfaces. |
|
pubsub
Package pubsub implements events.Publisher and events.Subscriber for Google Cloud Pub/Sub.
|
Package pubsub implements events.Publisher and events.Subscriber for Google Cloud Pub/Sub. |
|
examples
|
|
|
agentdemo
command
Command agentdemo is a durable, governed agent service built out of keel, to be read rather than deployed.
|
Command agentdemo is a durable, governed agent service built out of keel, to be read rather than deployed. |
|
apionly
command
Command apionly is a small API-only service built out of keel, to be read rather than deployed.
|
Command apionly is a small API-only service built out of keel, to be read rather than deployed. |
|
fullstack
command
Command fullstack is the standard stack built out of keel, to be read rather than deployed.
|
Command fullstack is the standard stack built out of keel, to be read rather than deployed. |
|
minimal
command
Command minimal is a small service built out of keel, to be read rather than deployed.
|
Command minimal is a small service built out of keel, to be read rather than deployed. |
|
webhook
command
Command webhook is a minimal webhook receiver built out of keel, to be read rather than deployed.
|
Command webhook is a minimal webhook receiver built out of keel, to be read rather than deployed. |
|
worker
command
Command worker is a jobs-only service built out of keel, to be read rather than deployed.
|
Command worker is a jobs-only service built out of keel, to be read rather than deployed. |
|
Package flags evaluates per-subject feature flags: a percentage rollout plus an explicit allowlist, over flag definitions kept in a Store.
|
Package flags evaluates per-subject feature flags: a percentage rollout plus an explicit allowlist, over flag definitions kept in a Store. |
|
pg
Package pg is a Postgres-backed flags.Store, for a deployment that runs more than one instance and needs flag definitions to be visible to all of them.
|
Package pg is a Postgres-backed flags.Store, for a deployment that runs more than one instance and needs flag definitions to be visible to all of them. |
|
Package geocode converts addresses to coordinates behind one interface.
|
Package geocode converts addresses to coordinates behind one interface. |
|
Package httpx is the HTTP layer a service would otherwise write from scratch: a server that shuts down without dropping requests, a router with a middleware stack already in the right order, JSON responses, and health endpoints that check something.
|
Package httpx is the HTTP layer a service would otherwise write from scratch: a server that shuts down without dropping requests, a router with a middleware stack already in the right order, JSON responses, and health endpoints that check something. |
|
buildinfo
Package buildinfo reports which revision the running binary was built from.
|
Package buildinfo reports which revision the running binary was built from. |
|
middleware
Package middleware holds the HTTP middleware httpx assembles into a router, each usable on its own.
|
Package middleware holds the HTTP middleware httpx assembles into a router, each usable on its own. |
|
Package idempotency lets a client safely retry an HTTP request that may have already succeeded, by replaying the first response instead of running the handler again.
|
Package idempotency lets a client safely retry an HTTP request that may have already succeeded, by replaying the first response instead of running the handler again. |
|
pg
Package pg is a Postgres-backed idempotency.Store, for a deployment that runs more than one instance and needs a claim to be visible to all of them.
|
Package pg is a Postgres-backed idempotency.Store, for a deployment that runs more than one instance and needs a claim to be visible to all of them. |
|
Package jobs runs background work: one-shot batch jobs and simple scheduled loops.
|
Package jobs runs background work: one-shot batch jobs and simple scheduled loops. |
|
cloudrun
Package cloudrun implements jobs.Trigger for Google Cloud Run.
|
Package cloudrun implements jobs.Trigger for Google Cloud Run. |
|
pg
Package pg is a Postgres-backed jobs.HistoryStore, for run history that survives a restart.
|
Package pg is a Postgres-backed jobs.HistoryStore, for run history that survives a restart. |
|
Package llm is how a service asks a language model for the next turn of a conversation: text, tool calls, a reply held to a JSON Schema, a streamed reply, and, separately, embeddings.
|
Package llm is how a service asks a language model for the next turn of a conversation: text, tool calls, a reply held to a JSON Schema, a streamed reply, and, separately, embeddings. |
|
anthropic
Package anthropic is the llm.Model for Anthropic's Messages API.
|
Package anthropic is the llm.Model for Anthropic's Messages API. |
|
internal/sse
Package sse reads a server-sent event stream.
|
Package sse reads a server-sent event stream. |
|
openai
Package openai is the llm.Model and llm.Embedder for the OpenAI chat completions protocol, which local runtimes also speak.
|
Package openai is the llm.Model and llm.Embedder for the OpenAI chat completions protocol, which local runtimes also speak. |
|
Package log builds the slog logger a service uses.
|
Package log builds the slog logger a service uses. |
|
Package mail sends transactional email over a provider interface, and distinguishes "the code did not error" from "the provider accepted the message."
|
Package mail sends transactional email over a provider interface, and distinguishes "the code did not error" from "the provider accepted the message." |
|
deliverycheck
Package deliverycheck compares what a send job reported as delivered against what the mail provider's own records hold.
|
Package deliverycheck compares what a send job reported as delivered against what the mail provider's own records hold. |
|
reconcile
Package reconcile runs mail delivery reconciliation as a scheduled job: it polls recent sends, asks the provider for each message's status, and records confirmed, bounced and complained outcomes.
|
Package reconcile runs mail delivery reconciliation as a scheduled job: it polls recent sends, asks the provider for each message's status, and records confirmed, bounced and complained outcomes. |
|
testing
Package testing provides a Recorder, a [mail.Sender] that captures every send in memory instead of delivering it, for use in tests and local development.
|
Package testing provides a Recorder, a [mail.Sender] that captures every send in memory instead of delivering it, for use in tests and local development. |
|
Package media decodes, resizes, and stores photos, and defines a job pattern for doing this in the background: fetch a source, derive variants, store them, and record what was stored.
|
Package media decodes, resizes, and stores photos, and defines a job pattern for doing this in the background: fetch a source, derive variants, store them, and record what was stored. |
|
Package metrics is the instrumentation other keel packages report through: HTTP request duration, pg pool acquire wait, job outcomes, outbox relay lag and attempts, event publish and drop counts, and geocode lookup outcomes.
|
Package metrics is the instrumentation other keel packages report through: HTTP request duration, pg pool acquire wait, job outcomes, outbox relay lag and attempts, event publish and drop counts, and geocode lookup outcomes. |
|
otel
Package otel adapts metrics.Instruments to OpenTelemetry: one OTel instrument per keel instrument, under the names and attributes the metrics package documents.
|
Package otel adapts metrics.Instruments to OpenTelemetry: one OTel instrument per keel instrument, under the names and attributes the metrics package documents. |
|
Package notifyprefs stores per-user notification preferences — which categories of message a user still wants on which channels — and enforces them on the send path.
|
Package notifyprefs stores per-user notification preferences — which categories of message a user still wants on which channels — and enforces them on the send path. |
|
pg
Package pg is a Postgres-backed notifyprefs.Store, for a deployment that runs more than one instance and needs one user's preferences to read the same everywhere.
|
Package pg is a Postgres-backed notifyprefs.Store, for a deployment that runs more than one instance and needs one user's preferences to read the same everywhere. |
|
Package outbox writes an event to Postgres in the same transaction as the domain change it describes, then relays it to an events.Publisher afterward, so a crash between the domain write and the publish cannot leave one without the other.
|
Package outbox writes an event to Postgres in the same transaction as the domain change it describes, then relays it to an events.Publisher afterward, so a crash between the domain write and the publish cannot leave one without the other. |
|
pg
Package pg holds the Postgres schema [outbox.Relay] needs.
|
Package pg holds the Postgres schema [outbox.Relay] needs. |
|
Package perf provides small, composable HTTP performance middleware: ResponseCache (an in-process cache with explicit tag-based invalidation), ETag (conditional GET via If-None-Match), Gzip (response compression), and SingleFlight (collapsing concurrent identical work).
|
Package perf provides small, composable HTTP performance middleware: ResponseCache (an in-process cache with explicit tag-based invalidation), ETag (conditional GET via If-None-Match), Gzip (response compression), and SingleFlight (collapsing concurrent identical work). |
|
Package pg is the Postgres plumbing a service needs before its first query: a configured pgx pool, pool stats for sizing and watching it, a transaction helper, and paging that does not silently ignore the caller.
|
Package pg is the Postgres plumbing a service needs before its first query: a configured pgx pool, pool stats for sizing and watching it, a transaction helper, and paging that does not silently ignore the caller. |
|
migrate
Package migrate applies SQL migrations exactly once each and keeps a ledger of what ran.
|
Package migrate applies SQL migrations exactly once each and keeps a ledger of what ran. |
|
testdb
Package testdb runs a real Postgres in Docker for tests, with a readiness check that does not report a database ready before it is.
|
Package testdb runs a real Postgres in Docker for tests, with a readiness check that does not report a database ready before it is. |
|
Package policy decides what an action may do.
|
Package policy decides what an action may do. |
|
pg
Package pg is the Postgres-backed policy.Recorder: the audit log of what agents were and were not allowed to do.
|
Package pg is the Postgres-backed policy.Recorder: the audit log of what agents were and were not allowed to do. |
|
Package retry runs a function with exponential backoff, stopping on the first success, the first error Options.Retryable rejects, the attempt limit, or context cancellation, whichever comes first.
|
Package retry runs a function with exponential backoff, stopping on the first success, the first error Options.Retryable rejects, the attempt limit, or context cancellation, whichever comes first. |
|
Package search indexes and queries generic, schema-less documents.
|
Package search indexes and queries generic, schema-less documents. |
|
meili
Package meili implements search.Index for Meilisearch: facets, typo tolerance, synonyms, and settings-drift detection against a live index.
|
Package meili implements search.Index for Meilisearch: facets, typo tolerance, synonyms, and settings-drift detection against a live index. |
|
Package site holds the static showcase site served from GitHub Pages.
|
Package site holds the static showcase site served from GitHub Pages. |
|
gengallery
command
Command gengallery renders site/gallery from the real minimal-example templates, so the gallery shows every block exactly as the service serves it: the same template source, the same stylesheets, in both themes.
|
Command gengallery renders site/gallery from the real minimal-example templates, so the gallery shows every block exactly as the service serves it: the same template source, the same stylesheets, in both themes. |
|
Package textpolicy checks generated and forwarded text against a named set of patterns before it reaches storage or an audience.
|
Package textpolicy checks generated and forwarded text against a named set of patterns before it reaches storage or an audience. |
|
Package webhooks delivers events to external URLs over HTTP, with each delivery signed so the receiver can verify it came from a holder of the endpoint's secret.
|
Package webhooks delivers events to external URLs over HTTP, with each delivery signed so the receiver can verify it came from a holder of the endpoint's secret. |
Click to show internal directories.
Click to hide internal directories.