Skip to content

bxn

A zero-config, file-system-driven HTTP framework for Node.js — type-safe, fast, and minimal.

File-System Based Routing

Your directory structure is your API structure. Drop your route files and go - no setup required.

Type-Safe

End-to-end TypeScript support with full type inference for params, queries, bodies, and responses.

Zero Config

No configuration files needed. Convention over configuration means you can start building immediately.

Simple API

Intuitive request/response helpers like json(), ok(), notFound(), and more.

Hot Reload

Automatic route reloading in development mode for a smooth developer experience.

Lightweight

Minimal dependencies, built on Node.js HTTP. Fast and efficient by design.

Dynamic Routes

First-class support for path parameters using the $ prefix convention (e.g., $id, $slug).

Streaming Support

Built-in support for streaming responses for real-time data and Server-Sent Events.

HTTPS Support

Built-in HTTPS support for secure connections.

Create a new project with one command:

Terminal window
npm create bxn@latest

Or manually create your first route:

src/routes/get.ts
import { route, json } from '@buildxn/http';
export default route().handle(() => {
return json({
message: 'Hello, World!',
timestamp: new Date().toISOString(),
});
});

Run with npx bxn start --watch and your API is live at http://localhost:3000!