srvkit

A toolkit for building JavaScript server applications

src/index.ts
import { defineServer } from "@srvkit/vite";

export default defineServer({
    fetch: (req: Request): Response {
        return new Response("Hello, World!");
    },
});
🌍

Runtime agnostic

Powered by srvx — write once and run on Node.js, Deno, Bun, Cloudflare Workers, and more.

🧩

Framework agnostic

Seamless integration with Web API frameworks, and supports Node.js frameworks via a handler adapter. No vendor lock-in.

🔌

Vite & Rsbuild plugins

Drop-in plugins for Vite and Rsbuild — add to your config and start building.

🔗

HTTPS & middleware

Built-in HTTPS support, middleware chain out of the box.

🔥

Live dev server

Hot-reloading dev server that updates on file changes without restarting.

📦

Flexible build targets

Build as a standalone server or serverless handler, with external or bundled dependencies.