Skip to content
Packages
Core
- @setu-ts/common — Shared contracts, capability tokens, and pure codecs every Setu-TS package builds on
- @setu-ts/kernel — Capability-token plugin kernel: service registry, middleware pipeline, router
- @setu-ts/runtime — Runtime services and HTTP adapters for Node.js, Deno, Bun, and Cloudflare Workers
- @setu-ts/exceptions — Exception hierarchy, RFC 9457 Problem Details, and the error-handler middleware
Plugins
- @setu-ts/audit-plugin — Immutable audit trail over memory, log, database, or file storage
- @setu-ts/auth-plugin — JWT via Web Crypto, API keys, refresh tokens, RBAC, and rate limiting — zero npm dependencies
- @setu-ts/cache-plugin — Cache over memory (LRU), Redis, or noop, with transparent response caching
- @setu-ts/cloudflare-plugin — Cloudflare bindings: KV, R2, D1, Queues, Cron, Cache API, and Durable Objects
- @setu-ts/config-plugin — Configuration with env loading, variable expansion, and schema validation
- @setu-ts/cqrs-plugin — Command and query buses with a composable pipeline of behaviors
- @setu-ts/database-plugin — Repository pattern and Unit of Work over MongoDB, Prisma, Drizzle, D1, or memory
- @setu-ts/decorator-plugin — Optional NestJS-style decorators and reflection, without reflect-metadata
- @setu-ts/di-plugin — Optional dependency injection with singleton, scoped, and transient lifecycles
- @setu-ts/diagnostics-plugin — Authenticated local diagnostics connector: signed loopback polling for the devtool
- @setu-ts/events-plugin — In-process domain event bus with typed handlers
- @setu-ts/feature-flags-plugin — Feature flags with percentage rollout, user targeting, and pluggable providers
- @setu-ts/graphql-plugin — GraphQL over HTTP with subscriptions on WebSocket and SSE, batching, and persisted queries
- @setu-ts/grpc-plugin — Co-serve gRPC, Connect, and gRPC-Web on the same port as ordinary routes
- @setu-ts/health-plugin — Health, liveness, and readiness probes with pluggable indicators
- @setu-ts/http-security-plugin — CORS, security headers, CSRF, request-size limits, and IP rules
- @setu-ts/idempotency-plugin — A repeated request, queue job or broker message does its work once per key
- @setu-ts/localization-plugin — Localization: message catalogues, request locale resolution, a formatter shared with the browser
- @setu-ts/logger-plugin — Structured logging over console, pino, or noop, with request/response middleware
- @setu-ts/mail-plugin — Email over log, SMTP, SES, or SendGrid, with a zero-dependency template engine
- @setu-ts/messaging-plugin — Message broker over in-memory, Redis Streams, RabbitMQ, NATS, or Kafka, with request-reply
- @setu-ts/metrics-plugin — Prometheus counters, gauges, histograms, and summaries with built-in HTTP metrics
- @setu-ts/multi-tenancy-plugin — Tenant resolution by subdomain, header, path, or JWT, with schema/database/column isolation
- @setu-ts/notification-plugin — Email, SMS, push, and Slack notifications over one injectable HTTP seam
- @setu-ts/openapi-plugin — OpenAPI 3.1 generated from routes, with a Zod transformer and Swagger UI
- @setu-ts/queue-plugin — Background jobs over memory, Redis, or RabbitMQ, with retries and cron scheduling
- @setu-ts/react-router-plugin — React Router 8 framework-mode SSR with file-based routing, as a plugin
- @setu-ts/realtime-backplane-plugin — Cross-replica fan-out so WebSocket rooms and SSE channels reach every instance
- @setu-ts/resilience-plugin — Circuit breaker, retry, timeout, and bulkhead composed around any async call
- @setu-ts/scheduler-plugin — Cron, interval, and delayed jobs with distributed locking
- @setu-ts/secrets-plugin — Secrets over env, AWS KMS, GCP Secret Manager, Azure Key Vault, or HashiCorp Vault
- @setu-ts/service-discovery-plugin — Service discovery over static config, Consul, Kubernetes, or DNS-SRV, with balancing and ejection
- @setu-ts/session-plugin — Encrypted cookie sessions with pluggable stores and synchronizer-token form CSRF
- @setu-ts/sse-plugin — Server-Sent Events with named channels, heartbeat, and Last-Event-ID replay
- @setu-ts/static-plugin — Static files with conditional requests, Range, precompressed sidecars, and SPA fallback
- @setu-ts/storage-plugin — Object storage over S3, B2, GCS, Azure Blob, local, or memory, with uploads
- @setu-ts/telemetry-plugin — OpenTelemetry tracing with W3C propagation and optional auto-instrumentation
- @setu-ts/validation-plugin — Zod-based validation with RFC 9457, NestJS, or default error shapes
- @setu-ts/view-plugin — Server-rendered HTML: view engines for JSX and html-tag components, named by reference
- @setu-ts/websocket-plugin — Full-duplex WebSocket on all four runtimes, with rooms, heartbeat, and limits
- @setu-ts/worker-pool-plugin — CPU-bound work on real worker threads, off the event loop
Tools
- @setu-ts/testing — Test app factory, mock plugins, and request injection for Setu-TS
- @setu-ts/sdk — Portable HTTP client with retry, circuit breaker, rate limiting, and OpenAPI codegen
- @setu-ts/cli — setu — project scaffolding and plugin-aware code generation
- @setu-ts/create — npm create @setu-ts — scaffolds a Setu-TS project with setu new