API reference

Every value and type each @samveys/* package exports, read from its source with the signature and its documentation comment.

895 exports

Core

  • @samveys/core 1.0.2

    Container, inject(), providers, plugins, hooks, lifecycle, config, env, logger, errors, hashing and encryption

    48 Function/Value · 104 Type

  • @samveys/validator 1.0.2

    Typed schemas implementing Standard Schema v1

    4 Function/Value · 13 Type

  • @samveys/console 1.0.2

    The svs CLI, defineCommand, inspection commands, svs check

    9 Function/Value · 27 Type

  • @samveys/testing 1.0.2

    createTestApp, in-process HTTP test client, fake time, events fake, hook recording

    6 Function/Value · 14 Type

HTTP & APIs

  • @samveys/http 1.0.2

    Kernel, router, controllers, middleware, Problem Details, security headers, node driver, SSE, WebSocket

    29 Function/Value · 52 Type

  • @samveys/fastify 1.0.2

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

    1 Function/Value · 1 Type

  • @samveys/hono 1.0.2

    Hono carries the transport via @hono/node-server; the kernel owns every request

    1 Function/Value · 1 Type

  • @samveys/http-client 1.0.2

    Retries, timeouts, concurrency pool, fakes and SSRF protection

    3 Function/Value · 12 Type

  • @samveys/openapi 1.0.2

    OpenAPI 3.1 from route schemas, dev-only /docs, typed client generator, breaking-change check

    8 Function/Value · 6 Type

  • @samveys/graphql 1.0.2

    Depth, count and cost limits, per-object rate limits, batching control

    2 Function/Value · 4 Type

  • @samveys/grpc 1.0.2

    gRPC, gRPC-Web and the Connect protocol from one service definition

    4 Function/Value · 4 Type

Data

  • @samveys/database 1.0.2

    Connections, query and schema builders, migrations, seeders; PostgreSQL, MySQL/MariaDB, SQLite

    24 Function/Value · 45 Type

  • @samveys/orm 1.0.2

    Schema-first models, relations, eager loading, mass-assignment and lazy-loading guards, factories

    11 Function/Value · 39 Type

  • @samveys/search 1.0.2

    Searchable models on FTS5, tsvector or FULLTEXT, with an outbox for index updates

    3 Function/Value · 11 Type

  • @samveys/mssql 1.0.2

    Microsoft SQL Server driver (tedious via mssql)

    4 Function/Value · 1 Type

  • @samveys/oracle 1.0.2

    Oracle Database driver (node-oracledb thin mode)

    5 Function/Value · 1 Type

  • @samveys/libsql 1.0.2

    libSQL / Turso driver (sqld over HTTP, SQLite dialect)

    3 Function/Value · 1 Type

  • @samveys/mongodb 1.0.2

    Typed document ODM with injection-safe queries and transactions

    4 Function/Value · 18 Type

  • @samveys/meilisearch 1.0.2

    Meilisearch search driver, REST over fetch

    1 Function/Value · 1 Type

  • @samveys/typesense 1.0.2

    Typesense search driver, REST over fetch

    1 Function/Value · 1 Type

  • @samveys/opensearch 1.0.2

    OpenSearch search driver, REST over fetch

    1 Function/Value · 1 Type

Security

  • @samveys/security 1.0.2

    CSRF guard (Fetch Metadata + tokens), CORS, rate limiting

    7 Function/Value · 4 Type

  • @samveys/session 1.0.2

    Server-side sessions, secure cookies, id regeneration, flash data

    6 Function/Value · 8 Type

  • @samveys/auth 1.0.2

    Session and API-token guards, OIDC sign-in with PKCE, policies

    15 Function/Value · 27 Type

  • @samveys/tenancy 1.0.2

    Tenant resolution, scoped ORM queries, per-tenant databases, PostgreSQL row level security

    13 Function/Value · 4 Type

Features

  • @samveys/cache 1.0.2

    Memory, database and failover stores, cross-process locks, funnel

    11 Function/Value · 8 Type

  • @samveys/queue 1.0.2

    Jobs, retries, database driver with SKIP LOCKED, transactional outbox, workers

    9 Function/Value · 18 Type

  • @samveys/scheduler 1.0.2

    Cron tasks, overlap and one-server locks, schedule:run

    5 Function/Value · 10 Type

  • @samveys/mail 1.0.2

    Mailables, SMTP over node:net/tls, log and fake transports

    11 Function/Value · 13 Type

  • @samveys/notifications 1.0.2

    Mail and database channels, optional queueing, channel registry

    5 Function/Value · 12 Type

  • @samveys/storage 1.0.2

    Local and S3 (SigV4) disks and safe uploads

    10 Function/Value · 11 Type

  • @samveys/webhooks 1.0.2

    Verified incoming deliveries and signed outgoing events

    5 Function/Value · 8 Type

  • @samveys/payment 1.0.2

    Midtrans and Xendit drivers on webhooks and http-client

    4 Function/Value · 8 Type

  • @samveys/broadcast 1.0.2

    Relays SSE and WebSocket messages between instances

    4 Function/Value · 5 Type

  • @samveys/i18n 1.0.2

    Intl formatting, locale negotiation and MessageFormat 2 translations

    5 Function/Value · 8 Type

  • @samveys/flags 1.0.2

    OpenFeature-compatible feature flags with a database provider

    6 Function/Value · 12 Type

  • @samveys/env-crypt 1.0.2

    svs env:encrypt and env:decrypt

    9 Function/Value · 0 Type

  • @samveys/health 1.0.2

    Liveness and readiness endpoints, shutdown-aware

    1 Function/Value · 5 Type

  • @samveys/inspector 1.0.2

    Records requests, queries, jobs, mail and exceptions in development

    2 Function/Value · 4 Type

  • @samveys/admin 1.0.2

    Server-rendered, policy-checked and audited CRUD screens for ORM models

    6 Function/Value · 11 Type

  • @samveys/mcp 1.0.2

    An MCP server exposing app info, routes, schema, config and the last error to AI agents

    5 Function/Value · 4 Type

Views

  • @samveys/view 1.0.2

    The ViewEngine contract, engine registry and ctx.view

    3 Function/Value · 7 Type

  • @samveys/template 1.0.2

    .tpl.html compiled to ES modules, no eval

    6 Function/Value · 3 Type

  • @samveys/vite 1.0.2

    @vite tags, manifest reader and hashed asset serving

    4 Function/Value · 5 Type

  • @samveys/inertia 1.0.2

    Inertia protocol v2: ctx.inertia, partial reloads, shared props, SSR hook

    4 Function/Value · 4 Type

  • @samveys/vue 1.0.2

    Server-side rendering of Vue components with state for hydration

    5 Function/Value · 3 Type

  • @samveys/lsp 1.0.2

    Template language server: completion, hover, diagnostics, go-to-file

    2 Function/Value · 1 Type