Jetpath is a modern Node.js framework designed for speed and developer productivity. Build robust, type-safe APIs with elegant syntax and unmatched performance.
import { type JetFunc, Jetpath } from "jetpath";
const app = new Jetpath();
app.listen();
// this goes to = get /
export const GET_: JetFunc = function (ctx) {
ctx.send("hello world!");
};
import { Jetpath } from "jetpath";
const app = new Jetpath();
export const WS_room: JetFunc = (ctx) => {
const conn = ctx.connection!;
conn.addEventListener("open", (socket) => {
socket.send("😎 Welcome to jet chat");
});
conn.addEventListener("message", (socket, event) => {
socket.send("message received");
});
};
export const POST_auth_login: JetFunc = async function (ctx) {
await ctx.json();
const { username, password } = ctx.validate(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
}
});
};
POST_auth_login.body = {
username: { type: "string", required: true, err: "Username is required" },
password: { type: "string", required: true, err: "Password is 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.
Jetpath 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 | Fast | Moderate |
TypeScript Support | First-class | First-class | Good | Good |
Built-in Validation | Yes | Yes | Yes | Yes |
Learning Curve | Low | Medium | Medium | High |
Bundle Size | < 28KB | Medium | Medium | Large |
WebSocket Support | Built-in | Plugin | Plugin | Built-in | Cross-runtime support | Built-in | No | No | No |
When speed matters, Jetpath delivers.
Jetpath comes with everything you need to build modern web applications and APIs.
Scaffold projects and generate code with our powerful command-line tool.
Built-in authentication with support for JWT, OAuth, and more.
Deploy to any environment with Docker, serverless, and cloud platform integrations.
Join number of developers who have already chosen Jetpath for their next and existing projects.