Skip to content
Nadhi-(Kushi) edited this page Apr 1, 2026 · 5 revisions

Http-native

@http-native/core is an Express-style HTTP framework backed by a Rust native module through napi-rs.

This wiki is meant to describe the code that is in this repository now:

  • Bun and Node are supported.
  • Native binaries are downloaded during install.
  • Routing supports exact paths, params, middleware, groups, sessions, validation, WebSockets, and native response caching.
  • Static HTML routes are first-class through app.static().
  • Dev reload is first-class through app.reload(), http-native dev, and createDevServer().

Install

bun add @http-native/core

If the native binary needs to be repaired or re-downloaded:

http-native setup --force

Minimal Example

import { createApp } from "@http-native/core";

const app = createApp();

app.get("/", (req, res) => {
  res.json({ ok: true });
});

const server = await app.listen().port(3000);
console.log(server.url);

What To Read Next

Clone this wiki locally