A lightweight middleware framework for Deno, Bun & Node

Build faster. Ship with confidence.

Find a perfect balance between simplicity and power, with type-safe validation, lightening-fast routing and elegant middleware definition. Raptor has everything you need to build your next application.

Engineered to scale, built to adapt

Every feature has been designed to give you absolute flexibility, right out of the box.

Modular by design, minimal by default

All you really need is the Kernel and it's tiny - at just under 50KB. Add additional components when you need them, such as routing or validation. Ship to production what you actually use.

Lightning-fast radix-tree routing

Fast route matching powered by radix-trees. Handles thousands of routes in microseconds with a type-safe API, keeping complex routing patterns a piece of cake.

Intuitive Request Validation

With an intuitive pipe-separate validation syntax and full flexibility of Standard Schema, you can mix and match between Raptor's built-in rules and your favourite validation library, such as Zod, Valibot.

Runtime agnostic, truly swappable

With support for Deno, Bun, and Node.js and identical APIs across all runtimes, your code works the same whether you're deploying to Deno Deploy, a Node server, or Bun's edge runtime.

TypeScript-first

Built in TypeScript, for TypeScript. Enjoy autocomplete that actually helps, type inference that just works, and error messages you can understand. If you prefer JavaScript, everything works beautifully without a single type annotation.

Middleware at the core

Inspired by the best parts of Express and Koa with full support for async/await, Raptor's middleware provides a consistent, familiar interface for building complex web applications.

Benchmarks you can run

The kernel ships with benchmarks against Hono, H3, Elysia, Express, Koa and Fastify, both in-process and over HTTP, so you can see how Raptor performs on your own machine.

Requests per second with a 10 middleware chain

Over HTTP on an Apple M1 running Node 26.13, with Raptor's lightweight mode on. Longer is faster.

Raptor
100,243
Fastify
120,826
Hono
94,854
Koa
91,795
H3
86,726
Express
54,659
See all the results

Proudly built with Raptor