Jetpath is a modern cross runtime framework designed for speed and DX. Build robust, type-safe APIs with unmatched performance.
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()
}
});
Jetpath is blazingly fast. We benchmark continuously to ensure top-tier performance.
Very Close Tie
Requests per second on a standard benchmark:
*initial benchmark. more benchmarks coming soon.
View BenchmarkJetpath is designed to make backend development enjoyable with powerful built-in features that boost productivity.
Built with performance in mind from day one. Jetpath handles thousands of requests per second with minimal latency and resource usage.
Clean, elegant syntax that makes developing complex applications straightforward. Express your business logic clearly without boilerplate.
Stop worrying about malformed data. Jetpath's built-in validation ensures your API only receives what it expects, with automatic TypeScript integration.
Organize your application with route groups, modules, and middleware. Build complex applications that remain maintainable as they grow.
Get both developer experience and runtime performance. No need to choose between productivity and speed - Jetpath delivers both.
Experience perfect type safety from HTTP request to response. Catch errors before runtime with full TypeScript integration.
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.
Jetpath comes with everything you need to build modern web applications and APIs.
Scaffold projects and generate code with our powerful command-line tool.
Off-the-shelf plugins that provides authentication with support for JWT, OAuth, and more.
Deploy to any environment with Docker, lambda, and cloud platform integrations.
Join number of developers who have already chosen Jetpath for their next and existing projects.