navree

Laravel's completeness,NestJS's structure,Rust's speed and footprint.

Navree is a web application framework for Rust. Routing, validation, an ORM, auth, queues, mail, real time and testing come in the box, organised into modules like NestJS, running on Tokio and Axum.

cargo install --git https://github.com/NavreeHQ/navree navree-clinavree new blog
DWLBLCLAftFore

Structured like NestJS, checked by Rust

Modules, providers, controllers and guards work the way you know from NestJS. The difference is underneath: one binary, no garbage collector, and types the compiler checks.

An app is a set of modules

As in NestJS, each module declares what it imports, the services it provides, its controllers and what it exports. The container wires them by type when the app boots, and refuses to start if a dependency is missing or private, naming the module and the type.

Read about modules
src/modules/deals/mod.rs
src/main.rs

Everything a backend needs

Like Laravel, Navree ships the whole stack: auth, an ORM, queues, mail, real time, testing and a CLI, designed to work together and documented in one place.

Architecture

The basics

Security

Database

Digging deeper

Testing

Measured against 14 other frameworks

The same API on the same machine, after the same 170-check conformance test. Navree lands mid-field where requests do real work and stays tiny in memory. Its own per-request overhead is high, and the benchmarks page says why.

Auth + paginated list, requests per secondJWT check, user lookup, a count and one page of 20 deals with their owners.
  1. Gin + pgxmicro30k
  2. Axum + sqlxmicro24.4k
  3. Actix Web + sqlxmicro22.1k
  4. ASP.NET Core + EF Core20.4k
  5. Express + pgmicro20.1k
  6. Spring Boot + JPA16.3k
  7. Loco16.2k
  8. Navree15.5k
  9. NestJS (Fastify)4.7k
  10. NestJS (Express)4.5k
  11. FastAPI + SQLAlchemymicro3.5k
  12. Ruby on Rails3.3k
  13. Django + DRF2.2k
  14. Laravel (Octane, FrankenPHP)1.8k
  15. Laravel (PHP-FPM + nginx)927

Navree in every test

Navree: requests per second and rank among 15 frameworks in each test
JSON214k10th of 15
Single query46.5k10th of 15
20 queries6.1k9th of 15
Auth + paginated list15.5k8th of 15
Auth + validated insert20.3k8th of 15
Peak memory38 MB3rd lowest
Ready after23 ms5th fastest

JSON is where Navree ranks lowest: with little database work, the framework's own per-request cost is most of what is measured.

See every result, the method and the caveats

Everything in the box

28 crates in 7 layers. A crate’s dependencies all sit in lower layers, and a test checks every edge. Depend on the navree facade to get every module, or turn its features off to compile less.

Popular pages

  • Installation
  • Your first app
  • Routing and controllers
  • Validation
  • Authentication
  • Benchmarks