# skeld documentation > A TypeScript backend framework for sensitive data, built around shared contracts. These are the public documentation pages in Markdown. Start with the overview and the install guide; use the Core API pages for signatures and constraints. Website: https://skeld.dev/ Complete documentation in one file: https://skeld.dev/llms-full.txt ## Start here - [Overview](https://skeld.dev/docs/index.md): Build a service around one contract. - [Install skeld](https://skeld.dev/docs/guides/install/index.md): Add @skeld/core to a new project, run a one-route service, and call it through its contract. - [Your first request](https://skeld.dev/docs/guides/first-request/index.md): Run a small service, call it through its contract, then send input the contract refuses. ## Build a service - [Design a contract](https://skeld.dev/docs/guides/contracts/index.md): A contract is the public shape of a service: named routes, accepted request parts, and responses by status. - [Clients and errors](https://skeld.dev/docs/guides/client-and-errors/index.md): A client call has two kinds of outcome: it receives an HTTP response, or it cannot produce a usable response. - [Plugins and lifecycle](https://skeld.dev/docs/guides/plugins-and-lifecycle/index.md): Use a plugin to give a feature its own routes, hooks, and resource lifetime. - [Classify data](https://skeld.dev/docs/guides/classification/index.md): Classification expresses how a field should be handled at framework boundaries. - [Connect a browser](https://skeld.dev/docs/guides/browser-security/index.md): A browser frontend introduces several separate decisions: which origins may read responses, which cross-site requests may reach handlers, which cookies it sends, and… - [Run a service](https://skeld.dev/docs/guides/running-a-service/index.md): skeld's server runs on node:http and requires Node 26.12 or later. - [Troubleshoot](https://skeld.dev/docs/guides/troubleshooting/index.md): Start with the stage that failed: startup, request admission, application response, client response validation, or log delivery. - [Core behavior reference](https://skeld.dev/docs/reference/core/index.md): A TypeScript framework for services on Node with its own engine, modeled on Fastify, Elysia and Hono where each is right. ## Logging - [Logging overview](https://skeld.dev/docs/logging/logging/index.md): New to the framework? - [Record format](https://skeld.dev/docs/logging/record-format/index.md): Every record is one JSON object on one line, at most 8,192 bytes, ending with a newline on stdout. - [Events](https://skeld.dev/docs/logging/events/index.md): Every record names its event in eventname. - [Error disclosure](https://skeld.dev/docs/logging/errors/index.md): One reader writes every error: a value the engine caught, and an error an author passes as a log field. - [Collector ingestion](https://skeld.dev/docs/logging/collector/index.md): skeld's JSON lines map onto the OpenTelemetry log data model as record-format.md lists. ## Authentication - [Add authentication](https://skeld.dev/docs/guides/auth/index.md): @skeld/auth puts access control in front of your handlers. - [The application's obligations](https://skeld.dev/docs/guides/auth-obligations/index.md): Auth enforces what it can see from its boundary: credentials, policies, grants, sessions and its own store. - [Auth behavior reference](https://skeld.dev/docs/reference/auth/index.md): @skeld/auth supplies the gate that enforces route access on a skeld server, policies and grants, sessions with CSRF tokens, shared limits, API keys, JWT verification,… ## OpenAPI - [Publish an OpenAPI document](https://skeld.dev/docs/guides/openapi/index.md): @skeld/openapi turns a contract into an OpenAPI 3.1.2 document. - [OpenAPI behavior reference](https://skeld.dev/docs/reference/openapi/index.md): @skeld/openapi generates an OpenAPI 3.1.2 document from a skeld contract, offline. ## Data - [Store data in PostgreSQL or SQLite](https://skeld.dev/docs/guides/data/index.md): @skeld/data connects a skeld service to PostgreSQL or SQLite behind one API. - [Data behavior reference](https://skeld.dev/docs/reference/data/index.md): @skeld/data connects a skeld service to PostgreSQL or SQLite: queries through the sql tagged template, rows checked against a core schema or typed unknown, transactions… ## Concepts - [Request lifecycle](https://skeld.dev/docs/concepts/request-lifecycle/index.md): Use this map to decide where a check belongs and which observations are possible. - [Security boundaries](https://skeld.dev/docs/concepts/security-boundaries/index.md): skeld moves recurring boundary checks into the framework so that routes use consistent behavior. - [Threat model](https://skeld.dev/docs/concepts/threat-model/index.md): This model describes the threats at skeld's framework boundaries, the controls implemented in core, and the work a service still owns. ## API reference - [API overview](https://skeld.dev/docs/api/index.md): skeld's packages publish their public API as entry points, such as @skeld/core/server. - [Contract](https://skeld.dev/docs/api/core/contract/index.md): A contract: route definitions by route name. - [Schema](https://skeld.dev/docs/api/core/schema/index.md): Creates a string schema; lengths count UTF-16 code units. - [Server](https://skeld.dev/docs/api/core/server/index.md): The type of a request part the route does not declare: an object with no keys. - [Worker](https://skeld.dev/docs/api/core/worker/index.md): A function that declares routes, hooks and plugins on the child scope it is given; it may be async. - [Client](https://skeld.dev/docs/api/core/client/index.md): What a route call takes: each request part the route declares, in its JSON form. - [HTTP errors](https://skeld.dev/docs/api/core/http-error/index.md): The options of new HttpError. - [Boot errors](https://skeld.dev/docs/api/core/boot-error/index.md): Why a service could not boot. - [Gate](https://skeld.dev/docs/api/core/gate/index.md): What a gate tells the server's types: the principal it admits and the grant of each policy action. - [Secret](https://skeld.dev/docs/api/core/secret/index.md): A value marked secret: it prints, stringifies and serializes as [secret]. - [Redact](https://skeld.dev/docs/api/core/redact/index.md): Returns a copy of a value with each secret value as [secret], each personal value as [personal]. - [Log](https://skeld.dev/docs/api/core/log/index.md): A value paired with a schema by classified, written through that schema's projection. - [Redirect](https://skeld.dev/docs/api/core/redirect/index.md): Why checkRedirect refused a target; the target itself is never part of it. - [JSON Schema](https://skeld.dev/docs/api/core/json-schema/index.md): Exports a schema as a JSON Schema 2020-12 document. - [Auth server](https://skeld.dev/docs/api/auth/server/index.md): A text key of 1 to 256 characters, or a client address, counted per IPv4 address or per IPv6 /64. - [Policies](https://skeld.dev/docs/api/auth/policy/index.md): Any policy: the constraint of a policy tuple; it reads only the name and the action rules. - [Auth routes](https://skeld.dev/docs/api/auth/routes/index.md): The body of authSession: no session, or the live session with its CSRF token. - [Auth errors](https://skeld.dev/docs/api/auth/auth-error/index.md): Why an auth call failed; each code has one fixed message. - [Store](https://skeld.dev/docs/api/auth/store/index.md): An unexpired API key with its subject's state, read in one statement. - [SQLite store](https://skeld.dev/docs/api/auth/sqlite/index.md): The options of createSqliteStore. - [PostgreSQL store](https://skeld.dev/docs/api/auth/postgres/index.md): The members of a checked-out pg client the store uses. - [Store conformance](https://skeld.dev/docs/api/auth/store-conformance/index.md): The outcome of a conformance run; each case name is .. - [API keys](https://skeld.dev/docs/api/auth/api-key/index.md): An API key as listed: never its secret or digest. - [JWT](https://skeld.dev/docs/api/auth/jwt/index.md): A JSON Web Key; its type fixes its algorithm: RSA of at least 2,048 bits is RS256, P-256 is ES256. - [OpenID Connect](https://skeld.dev/docs/api/auth/oidc/index.md): The OIDC part given to createAuth, with the handlers of oidcRoutes. - [Passwords](https://skeld.dev/docs/api/auth/password/index.md): The outcome of hashPassword. - [OpenAPI](https://skeld.dev/docs/api/openapi/openapi/index.md): What a diagnostic reports: a constraint the document describes more weakly than core enforces it. - [OpenAPI errors](https://skeld.dev/docs/api/openapi/openapi-error/index.md): Why generation was refused; each code has one fixed message. - [SQL queries](https://skeld.dev/docs/api/data/sql/index.md): A value a query sends as a parameter, never as text. - [PostgreSQL database](https://skeld.dev/docs/api/data/postgres/index.md): The options of createPostgresDatabase; an unknown key is refused with BootError INVALIDOPTION. - [SQLite database](https://skeld.dev/docs/api/data/sqlite/index.md): The options of createSqliteDatabase; an unknown key is refused with BootError INVALIDOPTION. - [Database](https://skeld.dev/docs/api/data/database/index.md): A database bound to an owner. - [Data errors](https://skeld.dev/docs/api/data/data-error/index.md): The step a connection failed at. - [Auth pool](https://skeld.dev/docs/api/data/pg-pool/index.md): Gives @skeld/auth's PostgreSQL store a pool that runs on this database's own connections. - [Rate limits](https://skeld.dev/docs/api/data/limit/index.md): The options of limitRoutes.