Skip to content

Jetpath

Jetpath

A performance-first cross-runtime API framework without the boilerplate

Documentation »

Join Discord · Report Bug · Request Feature

Downloads per MonthDownloads per Yearnpm versionStars

In this new v1.11.1 we ran a 217 (passing) tests for performance, reliability and security.

Why Engineers Choose Jetpath

Every framework promises to be fast and simple but they are not.

// This is a complete API endpoint in JetpathexportconstGET_users_$id: JetRoute=asyncfunction(ctx){const{ id }=ctx.params;constuser=awaitdb.users.findUnique({where: { id }});returnctx.send(user);};

Jetpath eliminates the cognitive overhead that slows down development in many ways, you only write functions that map directly to HTTP endpoints through a clean, predictable naming convention.

The tech stack you already trust, but faster:

  • Write APIs in TypeScript/JavaScript across Node.js, Deno, or Bun
  • ~25% less code than Express with stronger type safety
  • Benchmarks show massive throughput compared to Elysia.js *(bunJS fastest Framework).

Core Design Principles

Jetpath is built with strong opinions on what matters to you:

  1. Zero config by default
  2. Runtime agnostic - True support for Node.js, Deno, and Bun, AWS Lambda and cloudflare workers.
  3. Type safety
  4. Predictable routing - Routes derived from function names *(GET_users_$id → GET /users/:id)
  5. Built for production
  6. Faster iteraction

Quick Start

# Create new project
npx jetpath new-project
# Navigate and start the dev servercd new-project
npm install npm run dev

API Design That makes everything simple and concise

import{typeJetRoute,Jetpath,use}from"jetpath";constapp=newJetpath();app.listen(3000);// GET /productsexportconstGET_products: JetRoute=async(ctx)=>{constproducts=awaitdb.products.findMany();ctx.send({ products });};// POST /products with validationexportconstPOST_products: JetRoute=async(ctx)=>{constdata=awaitctx.parse();constproduct=awaitdb.products.create({ data });ctx.send({ product },201);};// Add validation and docs in one stepuse(POST_products).title("Create a new product").body((t)=>({name: t.string().required().min(3),price: t.number().required().min(0),description: t.string()}));// Maps to ws://your-host/live instantlyexportconstGET_live: JetRoute=(ctx)=>{ctx.upgrade();constconn=ctx.connection!;conn.addEventListener("open",(socket)=>{/* ... */});conn.addEventListener("message",(socket,event)=>{/* ... */});};

Real Performance

It's not just a claim how fast - measure it. In the benchmark suite, Jetpath consistently perform close to raw Bunjs performance and matches elysia.js on common API workloads:

FrameworkRequests/secLatency (avg)
Bun~40,89012.2ms
Elysia~33,38313.2ms
Jetpath~32,33913.7ms

12-core CPU, 32gb Ram, 1000 concurrent connections and 1,000,000 requests, simple JSON response

Bunjs being amongst the fastest http runtime.

Installation

For existing projects:

npm install jetpath --save

AI Coding Assistants

If you use Claude Code, you can install the Jetpath framework skill to give Claude deep, production-ready knowledge of Jetpath's conventions, routing, context, validation, and real-world patterns.

To install the Jetpath skill in your project:

claude config add skills https://raw.githubusercontent.com/codedynasty-dev/jetpath/main/jetpath-backend-framework-skill/SKILL.md

With this skill installed, Claude/llms will automatically understand how to scaffold endpoints, use the ctx object, set up validation, and follow Jetpath's performance-first patterns.

Community & Support

License

Apache 2.0 - Open source and built for the community.

Contributing

We welcome contributions! See our contributing guide for details on how to get involved.

By contributing, you agree to license your code under the Apache 2.0 license and confirm that all contributions are your original work.

Support or Sponsor the Project

If Jetpath helps you or your team ship faster and more understandable codebase, consider supporting its development through GitHub Sponsors.

Releases

Sponsor this project

Packages

Used by

Contributors

Languages