@samveys/fastify

Fastify owns the server lifecycle, the Samveys kernel owns every request

Version
1.0.3Nov 5, 2026
Install
pnpm add @samveys/fastify

This list was read from version 1.0.2; run pnpm sync to refresh it.

Import
import { fastify } from '@samveys/fastify'

Function (1)

fastify Function

HTTP driver on Fastify. Fastify supplies the server lifecycle (`serverFactory`, `listen`, `close`); every request is handed untouched to `kernel.handleNode`, so Fastify never parses a body.

function fastify(options?: FastifyDriverOptions): HttpDriver<FastifyInstance>;

Exported from packages/fastify/src/driver.ts

Interface (1)

FastifyDriverOptions Interface

No documentation comment.

interface FastifyDriverOptions {
    /**
     * Runs on the Fastify instance before it starts listening (register plugins, hooks, decorators).
     * Requests never reach Fastify's router: the Samveys kernel owns routing, bodies, limits and errors.
     */
    readonly configure?: (instance: FastifyInstance) => void | Promise<void>;

Exported from packages/fastify/src/driver.ts