Blazing Fast Backend Framework

Build high-performance APIs with minimal effort

Jetpath is a modern cross runtime framework designed for speed and DX. Build robust, type-safe APIs with unmatched performance.

Basic
Websocket
Advanced
import { type JetRoute, Jetpath } from "jetpath";

new Jetpath().listen();

// this goes to = get /
export const GET_: JetRoute = function (ctx) {
  ctx.send("I am fast!");
};
import { Jetpath } from "jetpath";

new Jetpath().listen();

export const GET_room: JetRoute = (ctx) => {
  ctx.upgrade();

  const conn = ctx.connection!;

  conn.addEventListener("open", (socket) => {
    socket.send("😎 Welcome to the chat");
  });

  conn.addEventListener("message", (socket, event) => {
    socket.send("message received");
  });
};
import { type JetRoute, Jetpath } from "jetpath";

new Jetpath().listen();

export const POST_auth_login: JetRoute = async function (ctx) {
  await ctx.parse();
  const { username, password } = ctx.body;
  
  const authResult = ctx.plugins.authenticateUser(username, password);
  
  if (!authResult.authenticated) {
    ctx.code = 401;
    ctx.send({ status: "error", message: authResult.message });
    return;
  }
  
  ctx.send({
    status: "success",
    message: "Authentication successful",
    token: authResult.token,
    user: {
      id: authResult.user.id,
      username: authResult.user.username,
      role: authResult.user.role
    }
  });
};

use(POST_auth_login).body((t) => {
  return {
    username: t.string({ err: "Username is required", inputDefaultValue: "admin" }).required(),
    password: t.string({ err: "Password is required", inputDefaultValue: "admin123" }).required()
  }
});
Terminal
$ npx jetpath my-api
$ cd my-api
$ npm install
$ npm run dev
🔥 Jetpath server running at http://localhost:3000

Engineered for Speed

Jetpath is blazingly fast. We benchmark continuously to ensure top-tier performance.

Very Close Tie

Requests per second on a standard benchmark:

Jetpath ~32,339 req/s
Elysia ~33,383 req/s
Bun ~40,890 req/s

*initial benchmark. more benchmarks coming soon.

View Benchmark

Feature-rich Developer Experience

Jetpath is designed to make backend development enjoyable with powerful built-in features that boost productivity.

Lightning Fast

Built with performance in mind from day one. Jetpath handles thousands of requests per second with minimal latency and resource usage.

Intuitive API

Clean, elegant syntax that makes developing complex applications straightforward. Express your business logic clearly without boilerplate.

Built-in Validation

Stop worrying about malformed data. Jetpath's built-in validation ensures your API only receives what it expects, with automatic TypeScript integration.

Modular Architecture

Organize your application with route groups, modules, and middleware. Build complex applications that remain maintainable as they grow.

Zero Compromise

Get both developer experience and runtime performance. No need to choose between productivity and speed - Jetpath delivers both.

Typescript-First

Experience perfect type safety from HTTP request to response. Catch errors before runtime with full TypeScript integration.

Why Choose Jetpath

Jetpath combines the best ideas from popular frameworks while avoiding their pitfalls. Experience backend development without compromises.

Feature Jetpath Elysia Express Fastify
Performance Ultra-fast Ultra-fast Moderate Fast
TypeScript Support First-class First-class Good Good
Built-in Validation Yes Yes No No
Learning Curve Low Medium Medium High
WebSocket Support Built-in Built-in Plugin Built-in
Cross-runtime support Built-in No No No

Jetpath is designed to make backend development enjoyable with powerful built-in features that boost your productivity.

Rich Ecosystem

Jetpath comes with everything you need to build modern web applications and APIs.

Jetpath CLI

Scaffold projects and generate code with our powerful command-line tool.

Authentication

Off-the-shelf plugins that provides authentication with support for JWT, OAuth, and more.

Deployment

Deploy to any environment with Docker, lambda, and cloud platform integrations.

Ready to build something amazing?

Join number of developers who have already chosen Jetpath for their next and existing projects.