Skip to main content
nestrs is a Rust API framework that gives you the familiar NestJS architecture — modules, controllers, dependency injection, guards, pipes, and interceptors — while running on Axum and Tower for maximum throughput. If you know NestJS, you can be productive in nestrs from day one.

Quick Start

Build and run your first nestrs API in under 5 minutes.

Installation

Add nestrs to your Cargo project and choose the right feature flags.

Core Concepts

Learn modules, controllers, providers, and how they fit together.

CLI Tool

Scaffold projects and generate code with nestrs new and nestrs generate.

Why nestrs?

nestrs lets you structure large Rust APIs the same way you’d structure a NestJS application — without reinventing the wheel. Route handlers, DI-injected services, validation pipelines, and middleware all compose in the same way whether your team comes from Rust or TypeScript backgrounds.

Guides

Step-by-step guides for security, observability, microservices, and more.

Ecosystem

Add caching, scheduling, databases, GraphQL, and OpenAPI to your app.

API Reference

Complete reference for NestFactory, NestApplication, and all macros.

NestJS Migration

Coming from NestJS? See the side-by-side mapping of concepts and syntax.

Get started in 3 steps

1

Install the CLI

cargo install nestrs-scaffold
2

Create a new project

nestrs new my-api
cd my-api
3

Run your API

cargo run
# Server running at http://127.0.0.1:3000