A performance-first cross-runtime API framework without the boilerplate
Documentation »
Join Discord
·
Report Bug
·
Request Feature
In this new v1.11.1 we ran a 217 (passing) tests for performance, reliability and security.
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).
Jetpath is built with strong opinions on what matters to you:
- Zero config by default
- Runtime agnostic - True support for Node.js, Deno, and Bun, AWS Lambda and cloudflare workers.
- Type safety
- Predictable routing - Routes derived from function names *(GET_users_$id → GET /users/:id)
- Built for production
- Faster iteraction
# Create new project
npx jetpath new-project
# Navigate and start the dev servercd new-project
npm install npm run devimport{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)=>{/* ... */});};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:
| Framework | Requests/sec | Latency (avg) |
|---|---|---|
| Bun | ~40,890 | 12.2ms |
| Elysia | ~33,383 | 13.2ms |
| Jetpath | ~32,339 | 13.7ms |
12-core CPU, 32gb Ram, 1000 concurrent connections and 1,000,000 requests, simple JSON response
Bunjs being amongst the fastest http runtime.
For existing projects:
npm install jetpath --saveIf 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.mdWith 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.
- Documentation - In-depth guides and API reference
- Discord Community - Get help from the team and other users
- GitHub Issues - Report bugs or request features
Apache 2.0 - Open source and built for the community.
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.
If Jetpath helps you or your team ship faster and more understandable codebase, consider supporting its development through GitHub Sponsors.