silgi
| Install | |
|---|---|
npm install silgi |
|
| Latest Version: | 0.53.6 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Apr 27, 2026 |
| Links: | GitHub · npm |
End-to-end type-safe RPC framework for TypeScript. Single package — server, client, 15 plugins, 14 adapters. Full docs at silgi.dev.
Install
pnpm add silgi
# or: npm install silgi / yarn add silgi / bun add silgi
Requires Node.js >=24.
Minimal example
import { silgi } from 'silgi'
const k = silgi({
context: (req) => ({ now: Date.now() }),
})
const hello = k.$resolve(({ ctx }) => ({ message: 'hi', at: ctx.now }))
const router = k.router({ hello })
export default k.handler(router)
Export handler from any Fetch-compatible runtime (Next.js App Router,
SvelteKit, Remix, Astro, SolidStart, Hono, srvx, Bun, Deno, Cloudflare
Workers, AWS Lambda via the hono adapter, …). Dedicated adapters for
Express, Nitro, NestJS, and Node's raw http live under
silgi/express, silgi/nextjs, silgi/sveltekit, etc.
Run a standalone server:
await k.serve(router, { port: 3000 })
Documentation
- silgi.dev — user guide, recipes, API reference.
CONTRIBUTING.md— dev setup, commands, PR checklist.ARCHITECTURE.md— request pipeline, module layout, performance invariants.SECURITY.md— threat model, reporting policy, security features.docs/rfcs/0001-de-magic.md— the refactor that removed module-global mutable state, explicit schema converter injection, and per-instance context bridges.
Credits
- oRPC — Pipeline architecture, client proxy, error handling, contract-first workflow
- tRPC — Router/procedure model, end-to-end type inference
- Elysia — Sucrose-style static handler analysis
License
MIT
Related Packages
Nuxt module to define and easily consume your backend API in a validated and typ...
Type-safe Nuxt actions with advanced forms, declared business errors and mutatio...
Version History
| Version | Released | License |
|---|---|---|
| 0.53.6 | MIT | |
| 0.53.5 | MIT | |
| 0.53.4 | MIT | |
| 0.53.3 | MIT | |
| 0.53.2 | MIT | |
| 0.53.1 | MIT | |
| 0.53.0 | MIT | |
| 0.52.2 | MIT | |
| 0.52.1 | MIT | |
| 0.52.0 | MIT | |
| 0.51.8 | MIT | |
| 0.51.7 | MIT | |
| 0.51.6 | MIT | |
| 0.51.4 | MIT | |
| 0.51.3 | MIT | |
| 0.51.2 | MIT | |
| 0.51.1 | MIT | |
| 0.50.4 | MIT | |
| 0.50.3 | MIT | |
| 0.50.2 | MIT | |
| 0.50.1 | MIT | |
| 0.50.0 | MIT | |
| 0.43.29 | ||
| 0.43.28 | ||
| 0.43.27 | ||
| 0.43.26 | ||
| 0.43.25 | ||
| 0.43.24 | ||
| 0.43.23 | ||
| 0.43.22 |
Showing the latest 30 of 745. See every release on npm
Pre-releases (15)
| Version | Released | License |
|---|---|---|
| 0.1.0-beta.15 | MIT | |
| 0.1.0-beta.14 | MIT | |
| 0.1.0-beta.13 | MIT | |
| 0.1.0-beta.12 | MIT | |
| 0.1.0-beta.11 | MIT | |
| 0.1.0-beta.10 | MIT | |
| 0.1.0-beta.9 | MIT | |
| 0.1.0-beta.8 | MIT | |
| 0.1.0-beta.7 | MIT | |
| 0.1.0-beta.6 | MIT | |
| 0.1.0-beta.5 | MIT | |
| 0.1.0-beta.4 | MIT | |
| 0.1.0-beta.3 | MIT | |
| 0.1.0-beta.2 | MIT | |
| 0.1.0-beta.1 | MIT |