{"modulePath":"github.com/wyolet/relay","version":"v0.30.3","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/wyolet/relay/app/account","name":"account","synopsis":"Package account is the domain layer for the Account entity: what policies bind to and usage is charged to.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/accountsync","name":"accountsync","synopsis":"Package accountsync writes the caller accounts the plans call for: it reads the pending account places off each published plan view and creates, closes or reopens their rows through the account store.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/actor","name":"actor","synopsis":"Package actor carries the identity of the caller making a request.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/adapter","name":"adapter","synopsis":"Package adapter provides the generic adapter framework: a Spec type that bundles wire-shape metadata (inbound URL paths, upstream URL path, auth strategy, canonical translator, token extractor), a generic pipeline.Adapter implementation parameterised by path and auth strategy, a Registry of Specs, and a generic route mounter that iterates registered specs.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/apply","name":"apply","synopsis":"Package apply is the single loader that turns manifest documents into Postgres rows.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/audit","name":"audit","synopsis":"Package audit records who did what on the control plane: every mutating admin action, every denial, and every login/logout, as one row per HTTP request.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/authz","name":"authz","synopsis":"Package authz answers \"can this actor perform this action on this resource?\" — a deliberate seam so the v1 always-allow implementation can later be swapped for Casbin / OpenFGA / Keto without touching call sites.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/batch","name":"batch","synopsis":"Package batch is the batch subsystem: it accepts bulk inference submissions, runs each item as a background job (via the jobq module), and exposes submit/poll/cancel/results over the customer-facing /v1 surface.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/budget","name":"budget","synopsis":"Package budget is the domain layer for the Budget entity: a recurring spend cap in USD over a calendar period in UTC.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalog","name":"catalog","synopsis":"Package catalog is the composition layer: it pulls the entity stores together into an atomic in-memory Snapshot the request path can read in O(1).","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalog/catalogtest","name":"catalogtest","synopsis":"Package catalogtest builds a catalog.Catalog or catalog.Snapshot from rows held in memory, for tests outside app/catalog.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalogembed","name":"catalogembed","synopsis":"Package catalogembed flattens relay's live catalog snapshot into the SDK catalog document.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/cataloghook","name":"cataloghook","synopsis":"Package cataloghook is the relay side of catalog release webhooks: the public endpoint the catalog server POSTs challenges and release nudges to, and the registration that subscribes this relay to them.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalogicon","name":"catalogicon","synopsis":"Package catalogicon keeps the icon files of the seeded catalog release in Postgres and reads them back by name.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalogprune","name":"catalogprune","synopsis":"Package catalogprune deletes the catalog rows a catalog release stopped shipping once nothing holds them.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalogserver","name":"catalogserver","synopsis":"Package catalogserver serves relay-catalog releases over plain HTTP from a git mirror of the catalog repository.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalogstore","name":"catalogstore","synopsis":"Package catalogstore is the Postgres data-access layer for the catalog kinds (provider, host, model, pricing, binding, policy, ratelimit).","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalogvalidate","name":"catalogvalidate","synopsis":"Package catalogvalidate is the cross-entity graph linter for the catalog repo's `data/` tree.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalogvalidate/curation","name":"curation","synopsis":"Package curation holds a catalog repo's data conventions, layered on catalogvalidate.ValidateGraph: the named Rules, the families.yaml family and product-line checks, and the featured.yaml index check.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/catalogview","name":"catalogview","synopsis":"Package catalogview builds consumer-facing read projections of catalog data for the admin/UX surface (\"API UX\"): a model's hosts, its pricing per host, the policies that grant it.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/group","name":"group","synopsis":"Package group is the domain layer for the Group entity — a named set of users that role bindings can name as a subject.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/hosthealth","name":"hosthealth","synopsis":"Package hosthealth records and reads per-host runtime reachability — the observed-state counterpart to host.Spec.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/hostkey","name":"hostkey","synopsis":"Package hostkey is the domain layer for the HostKey entity — a credential the relay uses to authenticate to a Host (a serving endpoint).","isRedistributable":true},{"path":"github.com/wyolet/relay/app/httpapi","name":"httpapi","synopsis":"Package httpapi holds the HTTP layer for both Relay planes.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/httpapi/control","name":"control","synopsis":"Package control is the admin-plane HTTP API: /auth/*, CRUD across the catalog and tenancy kinds, /version, /master-key/*, /secret-keys, /reload.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/httpapi/inference","name":"inference","synopsis":"Package inference is the data-plane HTTP API: /v1/* and /healthz.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/httpapi/openapitest","name":"openapitest","synopsis":"Package openapitest checks a published OpenAPI document for what clients generated from it need: every operation identified, summarised, described and tagged, and every parameter and schema property described.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/key","name":"key","synopsis":"Package key is the domain layer for the Key entity — an inbound API key the relay issues to a client.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/keypool","name":"keypool","synopsis":"Package keypool implements per-key circuit-breaker state and configurable Pool selection over healthy keys.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/lastused","name":"lastused","synopsis":"Package lastused records when each relay key and host key last served a request, independent of usage logging.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/license","name":"license","synopsis":"Package license is the license-gate seam app/ code depends on.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/limits","name":"limits","synopsis":"Package limits declares what admission counts and the interface that counts it.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/limits/hybrid","name":"hybrid","synopsis":"Package hybrid implements limits.Limiter by counting in pod memory, synced with the shared store once per interval, and by counting through the Lua limiter (app/limits/lua) the counters a stale count could push past their cap.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/limits/lua","name":"lua","synopsis":"Package lua implements limits.Limiter over the Lua rate limiter in pkg/ratelimit: each atomicity group of a request's counters is reserved by one script whose keys share the group's hash tag, and every group's script goes out in one pipelined round trip.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/manifest","name":"manifest","synopsis":"Package manifest converts between the catalog's YAML/JSON wire format, which references entities by name, and the app/* domain structs, which reference them by id.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/metricslog","name":"metricslog","synopsis":"Package metricslog is the Prometheus observer on the lifecycle spine.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/orgwatch","name":"orgwatch","synopsis":"Package orgwatch remembers, per pod and in memory, the provider organization each credential's served responses name, and reports an account whose credentials name different ones: those keys are separate organizations with separate upstream limits, which the account counts as one.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/otlpreceiver","name":"otlpreceiver","synopsis":"Package otlpreceiver records model calls that clients report over OpenTelemetry instead of sending through relay.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/overlay","name":"overlay","synopsis":"Package overlay is the domain layer for catalog overlays: user-owned sparse spec patches applied on top of pristine catalog TEMPLATE rows to produce the EFFECTIVE rows the snapshot serves.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/payloadlog","name":"payloadlog","synopsis":"Package payloadlog is the second lifecycle observer (after app/usagelog): it captures the full request + response bodies of opted-in requests for audit, debug, and replay, and pushes them to a Sink (file today, S3 next) off the hot path.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/pipeline","name":"pipeline","synopsis":"Package pipeline orchestrates one inference request over a route the plans already resolved: hold the caller's counters, walk the route's hops in order, pick a credential inside a hop with the key pool's selection and breakers, hold that credential's upstream counters, call the adapter, stream back, and settle in post-flight.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/plan","name":"plan","synopsis":"Package plan folds the policy ladder into the structs the request path reads, and registers the engine controllers that keep them current.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/plan/plantest","name":"plantest","synopsis":"Package plantest builds published plans from rows held in memory, for tests outside app/plan.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/policybinding","name":"policybinding","synopsis":"Package policybinding is the domain layer for the PolicyBinding entity: it applies one Policy to a set of accounts inside its owner's scope (the organization, a team, a project or a user).","isRedistributable":true},{"path":"github.com/wyolet/relay/app/pool","name":"pool","synopsis":"Package pool is the domain layer for the Pool entity: an ordered set of one host's keys, listed one by one or as whole provider accounts, plus the selection algorithm that picks among them.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/project","name":"project","synopsis":"Package project is the domain layer for the Project entity — the unit inside a Team that owns Policies, Keys, and user-created HostKeys.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/proxy","name":"proxy","synopsis":"Package proxy is the second inference flow: transparent forwarding of caller-supplied upstream credentials.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/refcheck","name":"refcheck","synopsis":"Package refcheck holds the cross-row write rules a row's own Validate cannot see: a referenced row must exist, be visible to the caller, and belong to a scope the referrer may draw on; owners that mirror a spec field are re-derived from it.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/revocation","name":"revocation","synopsis":"Package revocation keeps the set of revoked relay-minted tokens.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/role","name":"role","synopsis":"Package role is the domain layer for the Role entity — a named set of (kinds, verbs) rules.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/rolebinding","name":"rolebinding","synopsis":"Package rolebinding is the domain layer for the RoleBinding entity — it grants one Role to a set of subjects at one scope (global, a Team, or a Project).","isRedistributable":true},{"path":"github.com/wyolet/relay/app/secret","name":"secret","synopsis":"Package secret wires relay's secret resolution (the registry over env, stored and external backends) and holds the key agent that heals failed upstream keys out of band.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/secret/stored","name":"stored","synopsis":"Package stored is relay's \"stored\" secret backend over Postgres: values in secret_values, sealed under per-scope data keys from the secret module's key ring (data keys in secret_data_keys, target KEK in secret_keyring), the rewriter that moves stale rows under their scope's current key, and the operator status and downgrade paths.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/seed","name":"seed","synopsis":"Package seed loads a directory of manifest YAMLs into Postgres at boot.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/serviceaccount","name":"serviceaccount","synopsis":"Package serviceaccount is the domain layer for the ServiceAccount entity — a non-human principal that lives inside a Project and holds Keys.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/session","name":"session","synopsis":"Package session is relay's cookie session layer: the auth module's session manager over a kv.Store, so every pod sharing the store shares the sessions.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/settings","name":"settings","synopsis":"Package settings is the typed-sectioned config layer.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/settings/settingstest","name":"settingstest","synopsis":"Package settingstest serves settings sections from memory for tests.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/settingswatch","name":"settingswatch","synopsis":"Package settingswatch applies a value-typed settings section to a live consumer, re-applying whenever the section changes.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/settle","name":"settle","synopsis":"Package settle coalesces the post-flight writes of many served requests into shared round trips on the post-flight store: a collector groups queued settles into batches, sent once full or a short delay after their first, and a few writers send each batch as one pipelined round trip.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/share","name":"share","synopsis":"Package share revokes a shared provider account.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/team","name":"team","synopsis":"Package team is the domain layer for the Team entity — the outer tenancy scope that owns Projects.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/tokencount","name":"tokencount","synopsis":"Package tokencount keeps the bytes-to-tokens ratio relay observed on real traffic, so a caller asking \"how many input tokens is this prompt\" can be answered from measurement when the upstream exposes no counting endpoint.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/transport/ws","name":"ws","synopsis":"Package ws is a customer-facing WebSocket transport for the inference data plane.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/usagelog","name":"usagelog","synopsis":"Package usagelog is the first consumer of pkg/lifecycle's Hook + Collector surface.","isRedistributable":true},{"path":"github.com/wyolet/relay/app/user","name":"user","synopsis":"Package user owns the DB-backed user account: the row behind a login session.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/api-drift","name":"main","synopsis":"Command api-drift reports request parameters that upstream models have stopped accepting, with the evidence for each finding.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/auth-schemas","name":"main","synopsis":"Command auth-schemas writes one JSON Schema per auth-module manifest kind (Team, Project, ServiceAccount, Role, User, Group, RoleBinding) as relay registers them: relay's rule vocabulary and its own spec fields included.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/catalog-embed","name":"main","synopsis":"Command catalog-embed generates the SDK's embedded default catalog from the public catalog tree.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/catalog-schemas","name":"main","synopsis":"Command catalog-schemas writes one JSON Schema per catalog kind, derived from the manifest types.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/catalog-server","name":"main","synopsis":"Command catalog-server serves relay-catalog releases from a git mirror (serve) and builds one tag's release files (build).","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/catalog-validate","name":"main","synopsis":"Command catalog-validate checks a directory of catalog YAML manifests.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/icon-import","name":"main","synopsis":"Command icon-import downloads provider icons listed in an OpenRouter providers dump into a directory.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/modelsdev-import","name":"main","synopsis":"Command modelsdev-import converts the models.dev dataset into relay-catalog YAML.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/payload-migrate","name":"main","synopsis":"Command payload-migrate copies a JSONL payload-log dump into the ClickHouse payload store, skipping rows already present.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/relay","name":"main","synopsis":"Command relay runs the relay server (data and control planes) and its operator subcommands.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/relay-stats","name":"main","synopsis":"Command relay-stats prints usage events and summaries from the relay control API.","isRedistributable":true},{"path":"github.com/wyolet/relay/cmd/relay/web","name":"web","synopsis":"Package web embeds the relay-ui single-page app and serves it from the control plane.","isRedistributable":true},{"path":"github.com/wyolet/relay/config","name":"config","synopsis":"Package config embeds the relay-internal definitions the binary must carry, so a deployment without this directory on disk still gets them.","isRedistributable":true},{"path":"github.com/wyolet/relay/internal/adapterspecs","name":"adapterspecs","synopsis":"Package adapterspecs builds the adapter.Spec for every wire shape relay serves.","isRedistributable":true},{"path":"github.com/wyolet/relay/internal/config","name":"config","synopsis":"Package config centralizes all RELAY_* env var parsing for the relay binary.","isRedistributable":true},{"path":"github.com/wyolet/relay/internal/identity","name":"identity","synopsis":"Package identity owns the User catalog kind and the SecretRef resolution machinery used to pull credential material out of the environment, files, or (discouraged) inline literals — pydantic-SecretStr style.","isRedistributable":true},{"path":"github.com/wyolet/relay/internal/license","name":"license","synopsis":"Package license verifies relay's offline license file.","isRedistributable":true},{"path":"github.com/wyolet/relay/internal/storage","name":"storage","synopsis":"Package storage owns the Postgres connection pool and runs migrations.","isRedistributable":true},{"path":"github.com/wyolet/relay/internal/storage/gen","name":"gen","synopsis":"","isRedistributable":true},{"path":"github.com/wyolet/relay/migrations/postgres","name":"pgmigrations","synopsis":"Package pgmigrations embeds the postgres migration SQL files.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/adapters","name":"adapters","synopsis":"Package adapters names the wire protocol the relay speaks to an upstream.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/archive","name":"archive","synopsis":"Package archive extracts a catalog release's data tarball with the limits relay and the catalog server share.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/binding","name":"binding","synopsis":"Package binding is the domain layer for the HostBinding entity — the first-class join that declares \"Model M is served by Host H, via wire adapter A, under upstream name U, priced by Pricing P.\"","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/embed","name":"embed","synopsis":"Package embed flattens catalog kinds into the SDK catalog document (sdk/catalog): from a parsed catalog tree (Compose) or from any Source, such as relay's live snapshot (Flatten).","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/families","name":"families","synopsis":"Package families reads a catalog's families.yaml: the allowlist of Model spec.family values, each with the spec.productLine values valid under it and the logo its models share.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/host","name":"host","synopsis":"Package host is the domain layer for the Host entity — a serving endpoint the relay forwards requests to.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/manifest","name":"manifest","synopsis":"Package manifest reads the catalog kinds (Provider, Host, Model, Pricing, HostBinding, Policy, RateLimit) from their YAML wire form, which references entities by name, and translates them to the pkg/catalogkind domain structs, which reference them by id.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/model","name":"model","synopsis":"Package model is the domain layer for the Model entity — a container for a family of dated checkpoints (Snapshots).","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/policy","name":"policy","synopsis":"Package policy is the domain layer for the Policy entity: a reusable rule set a policy binding applies to accounts.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/pricing","name":"pricing","synopsis":"Package pricing is the domain layer for the Pricing entity — a named rate sheet owned by a Host and applied to one or more Models.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/provider","name":"provider","synopsis":"Package provider is the domain layer for the Provider entity — the vendor / author of a Model.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/catalogkind/ratelimit","name":"ratelimit","synopsis":"Package ratelimit is the domain layer for the RateLimit entity — a named rule set (requests / tokens / concurrency caps) attachable to a Policy, ProviderKey, or Model.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/chttl","name":"chttl","synopsis":"Package chttl keeps a ClickHouse MergeTree table's row TTL equal to a retention setting.","isRedistributable":true},{"path":"github.com/wyolet/relay/pkg/clientprofile","name":"clientprofile","synopsis":"Package clientprofile identifies which coding agent (Claude Code, Codex, OpenCode, …) is calling the relay, so the edge can serve each one the model-list shape, error wording and attribution it expects.","isRedistributable":true}],"total":140,"nextPageToken":"36f012bd8803ff7b9674e915d7cf50a2"}}
