Server Kit is a minimalistic HTTP and WebSocket server and router for Node.js, currently in early alpha (v0.11.7). It provides a lightweight alternative to Express or Koa with built-in WebSocket support. Designed for simplicity and low overhead, it uses a straightforward API for routing and middleware. Suitable for small to medium projects where minimal dependencies are desired. Note: alpha stage means frequent breaking changes.
npm install server-kitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic HTTP GET route and WebSocket echo endpoint using Server Kit's ESM API.
Update route definitions to use new parameter syntax (e.g., '/users/:id' instead of '/users/{id}').Upgrade Node.js to version 16.13.0 or higher.
Replace `import serverKit from 'server-kit'` with `import { Server, Router } from 'server-kit'`.If WebSocket errors occur, ensure `ws` is installed via `npm install ws`.
Use named imports: `import { Server } from 'server-kit'`.Install ws: `npm install ws`.
Upgrade Node.js to v16.13.0 or later.
No dependency data recorded yet.