Nestrs

•
11
•

Build structured APIs in Rust using NestJS-like architectural patterns on Axum and Tower for performance and safety.

Nestrs is a Rust web framework designed to bring the familiar architectural patterns of NestJS—including modules, controllers, providers, and dependency injection—to the Rust ecosystem. Built upon the high-performance Axum and Tower frameworks, it allows teams already familiar with NestJS to leverage their existing mental model while benefiting from Rust's performance, safety guarantees, and explicit typing for building structured and robust APIs. It includes comprehensive support for microservices, GraphQL, OAuth2, DTO validation, and a Model Context Protocol server for AI editor integration.

主な機能

01NestJS-like module-oriented architecture with Dependency Injection and lifecycle hooks.
02Extensive microservice transport support for NATS, Redis, Kafka, RabbitMQ, gRPC, and more.
03Integrated GraphQL with federation gateway, data loaders, and WebSocket subscriptions.
048 GitHub stars
05Comprehensive HTTP routing with DTO validation, pipes, guards, interceptors, and exception filters.
06Model Context Protocol (MCP) server for AI editor integration, project introspection, and scaffolding.

ユースケース

01Developing structured RESTful APIs and microservices in Rust with familiar patterns.
02Building AI-integrated applications through project introspection and live runtime via the MCP server.
03Implementing GraphQL APIs featuring federation, data loaders, and real-time subscriptions.