Skip to content
Cododev-TechnologyPublic

About

A minimal and fast HTTP framework aiming to become one of the best & fastest, for Node.js and Rust.

Resources

Contributing

Security policy

Stars

215 stars

Watchers

16 watching

Forks

Latest commit

 

History

121 Commits

Folders and files

Repository files navigation

Cpeak

npm version crates.io HTTP Arena H/1.1

Cpeak is a minimal and fast HTTP framework for Node.js and for Rust.

The two versions have the same API, the same names and the same concepts, so if you know one, you already know how to use the other:

  • Cpeak for Node.js: use it if you want maximum development speed with the speed of Fastify, and features of Express.js. Cpeak for Node.js has zero dependencies.
  • Cpeak for Rust: use it if you want the best performance, control and memory usage over your application. As of October 2026, Cpeak for Rust is ranked #1 on the HttpArena HTTP/1.1 leaderboard, surpassing Drogon (C++), Vert.x (Java), Bun (TS), Actix Web (Rust) and others.

Both give you routing, middleware functions, JSON parsing, cookie parsing, CORS, compression, authentication and more, with a codebase that you can easily navigate, audit and change if you want. The Rust codebase mirrors the Node.js one file by file.

Cpeak started as an educational project, and now it's being used for production. At Cododev we build real products, get real users, and then use them to offer a unique kind of education for the age of AI. To see how we teach, and some of the products built with Cpeak, visit cododev.ca.

Cpeak for Node.js

npm install cpeak
import cpeak from "cpeak";

const server = cpeak();

server.route("get", "/", (req, res) => {
  return res.json({ message: "Hi there!" });
});

server.listen(3000, () => {
  console.log("Server has started on port 3000");
});

The full documentation is in node/README.md.

Cpeak for Rust

cargo add cpeak
use cpeak::{cpeak, json};

fn main() {
    let mut server = cpeak();

    server.route("get", "/", async |_req, res| {
        return res.json(json!({ "message": "Hi there!" }));
    });

    server
        .listen(3000, || {
            println!("Server has started on port 3000");
        })
        .wait();
}

The full documentation is in rust/README.md.

Contributing

See CONTRIBUTING.md, and SECURITY.md for reporting a vulnerability.

License

MIT

About

A minimal and fast HTTP framework aiming to become one of the best & fastest, for Node.js and Rust.

Resources

Contributing

Security policy

Stars

215 stars

Watchers

16 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages