nestrs
Nestrs is a Rust web framework that lets you build structured APIs using the same architectural patterns as NestJS — modules, controllers, providers, and dependency injection — while running on Axum and Tower.
Install / Use
claude mcp add Joshyahweh -- npx -y github:Joshyahweh/nestrsIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Data & AnalyticsSupported Platforms
Our assessment of nestrs
nestrs scores 83/100 on our quality scale, 487th of 608 Data & Analytics skills we index.
Its MCP Server is 10 KB long, well organised into 20 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 10 days ago, so nestrs is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-11-11. Automated pattern scan on 2026-11-11. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
nestrs compared with similar skills
All 4 of these similar skills score higher than nestrs; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| nestrs (this skill)by Joshyahweh | 83 | 10 | 10d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 112.7k | 9d ago | CLAUDE.md |
| rufloby ruvnet | 100 | 82.0k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.9k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 48.0k | today | CLAUDE.md |
Frequently asked questions
- How do I install nestrs?
- Run
claude mcp add Joshyahweh -- npx -y github:Joshyahweh/nestrs. The install tabs above show the steps for each supported agent. - Which AI agents does nestrs work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is nestrs safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is nestrs still maintained?
- The repository was last updated 10 days ago, so nestrs is actively maintained.
Skill content
View source on GitHubnestrs
NestJS-like API framework for Rust built on Axum and Tower.
nestrs gives you a familiar module/controller/provider mental model with Rust performance and explicit typing.
Highlights
- Module-oriented architecture (
module,controller,injectablemacros) - HTTP route macros (
get,post,put,patch,delete,options,head,all) - DI + application context — request scopes, lifecycle hooks,
useValue/useFactoryproviders with opt-in lifecycles - DTO validation pipeline, class-validator-style ergonomics, and extraction-time pipe chains (
#[use_pipes]—ValidationPipe,ParseIntPipe,TrimPipe, custom pipes) - Cross-cutting pipeline: guards, pipes, interceptors, exception filters, strategies
- Route posture —
#[public]/#[use_guards]metadata +NestApplication::require_route_posture(unguarded routes fail at boot) - Row-level authorization (
authz-row-level): deny-closedCrudService, module-qualified principals, masking subjects - SeaORM (
nestrs-sea-orm/ featuresea-orm):Repo, ambient transactions,RowAuthz/AbilityAuthz #[crud]generated controllers with paginated list endpoints (limit/offset)- Microservice transports via
nestrs-microservices: NATS, Redis, Kafka, RabbitMQ (AMQP 0.9), MQTT, TCP (length-prefixed, bounded frames), gRPC - GraphQL (async-graphql) incl. federation gateway (
EntityResolver,_service/_entities), data loaders, WebSocket subscriptions - OAuth2 via
nestrs-oauth2: 4 grant types incl. PKCE, JWKS-backed resource server, social providers (Google/GitHub/Microsoft/Apple),OAuth2Guard - Multi-cloud object storage via
nestrs-storage(S3 / GCS / Azure / Local, built onobject_store) - DB migrations + seeding:
nestrs-cli db migrate add|run|revert|infoanddb seed --bin|--seed-file - OpenAPI/Swagger via
nestrs-openapi, with#[dto]schemars reflection - CQRS (
nestrs-cqrs) and in-process events (nestrs-events) - Production controls: backpressure, bounded caches, rate limiting with proxy-topology awareness, metrics, request tracing, security runbooks
- Model Context Protocol server (
nestrs-mcp) for Claude Code, Cursor, VS Code, Codex CLI — project introspection, live runtime, scaffolding, docs search (guide) - Performance hardening workflows: benchmark gating (HTTP, DI, validated JSON), history tracking, dashboard artifacts; scheduled libFuzzer smoke runs
Ownership and release
- Maintainer / code owner: @Joshyahweh
- Current workspace version:
1.7.1(fromVERSIONand workspace package settings) — a minor release on the 1.0 stable contract; the public API is covered by full semver (seeSTABILITY.md) - Release notes template:
.github/release-template.md - Changelog:
CHANGELOG.md - Contribution guide:
CONTRIBUTING.md - Release process:
RELEASE.md - Code of conduct:
CODE_OF_CONDUCT.md - Security disclosure policy:
SECURITY.md - Licenses:
LICENSE-MITandLICENSE-APACHE
Toolchain policy
- Rust edition:
2021(workspace-level) - MSRV:
1.88(tested in CI as1.88.0) - CI matrix: MSRV +
stable+beta - Contributor note: keep new crates on
edition.workspace = trueandrust-version.workspace = trueunless there is a documented exception
Project Layout
nestrs/- main framework crate (public runtime API)nestrs-core/- runtime primitives (context, traits, metadata, strategy)nestrs-macros/- proc macros and helper attributesnestrs-cli/- scaffold/generate CLI +dbmigrations/seeding (crates.io package name:nestrs-scaffold, binary:nestrs-cli)nestrs-prisma/- Prisma integration cratenestrs-microservices/- transport/client/event primitives (NATS, Redis, Kafka, RabbitMQ, MQTT, TCP, gRPC)nestrs-cqrs/- CQRS command/query bus primitivesnestrs-events/- in-process event bus (Nest-style@OnEventanalogue)nestrs-oauth2/- OAuth2 client, JWKS-backed resource server, social providers,OAuth2Guardnestrs-storage/- multi-cloud object storage (S3 / GCS / Azure / Local)nestrs-openapi/,nestrs-graphql/,nestrs-ws/- parity extension cratesnestrs-mcp/- Model Context Protocol server (stdio + Streamable HTTP)nestrs-mongodb/- Mongoose-style MongoDB adapter (MongoModule,MongoRepository<T>)nestrs-http/- outbound HTTP client (HttpModule/HttpService)nestrs-throttle/- per-route rate limits (ThrottlerGuard, in-memory or Redis)nestrs-health/- readiness / liveness indicatorsnestrs-security/- Bearer parsing, helmet headers, CSRF middlewarenestrs-resilience/- retry / timeout / circuit / bulkhead (featureresilience)nestrs-idempotency/-Idempotency-Keydedupe (featureidempotency)nestrs-outbox/- transactional outbox + DLQ (featureoutbox)nestrs-locks/- lease locks for single-runner work (featurelocks)nestrs-mail/- templated email (featuremail)nestrs-webhooks/- Standard Webhooks sign/verify (featurewebhooks)nestrs-workflows/- durable steps + human approval (featureworkflows)nestrs-ai/- LLM / agent module (featureai)nestrs-socketio/- Socket.IO adapter (socketioxide)nestrs-lambda/- AWS Lambda / API Gateway adapternestrs-better-auth/- Better Auth session-cookie guard + router nestnestrs-bullmq/- BullMQ Redis key-layout producernestrs-auth-strategy/- Passport-styleAuthStrategyadaptersnestrs-saml//nestrs-ldap/- SAML SP redirect and LDAP simple bindnestrs-sea-orm/- SeaORMRepo, ambient transactions,RowAuthz(recommended ORM path; TypeORM/Sequelize analogue)
Quick Start
1) Build and test
cargo check --workspace
cargo test --workspace
2) Run an example app
cargo run -p hello-app
If the example package name differs in your local setup, run:
cargo run --manifest-path examples/hello-app/Cargo.toml
3) Preview docs locally
python3 -m http.server 4173
Then open:
http://localhost:4173/docs.html(documentation hub)
Documentation Index
Core docs
- NestJS → nestrs — mdBook:
docs/src/nestjs-migration.md - Security defaults & ordering — mdBook:
docs/src/secure-defaults.md,docs/src/http-pipeline-order.md - Security defaults & ordering — mdBook:
docs/src/secure-defaults.md,docs/src/http-pipeline-order.md - MCP / AI editor integration — mdBook:
docs/src/mcp.md; Mintlify:mintlify-docs/guides/mcp.mdx CHANGELOG.md- release historySTABILITY.md- semver, public vs#[doc(hidden)]API,test-hooks/ global registries
Platform/operations
PRODUCTION_RUNBOOK.md- deployment/operations runbookSECURITY.md- security guidance and controlsMICROSERVICES.md- microservices/event-driven patterns
Performance and benchmark ops
benchmarks/BASELINE.md- how to run, compare, and track benchmarksbenchmarks/relative_thresholds.json- active relative regression gate confignestrs/fuzz/andnestrs-microservices/fuzz/-cargo-fuzztargets (seePRODUCTION_RUNBOOK.md)
Storage + publishing
BENCHMARK_STORAGE_PLAYBOOK.md- long-term storage layout and restore workflowBENCHMARK_STORAGE_SECRETS_CHECKLIST.md- provider setup checklist (OIDC/least privilege).github/workflows/benchmark-storage-sync.yml- manual-dispatch storage sync template
Common Commands
# benchmark gates
python3 scripts/load/check_benchmark_thresholds.py
python3 scripts/load/check_benchmark_relative_regression.py
# benchmark reports and recommendation artifacts
python3 scripts/load/export_benchmark_report.py
python3 scripts/load/maintain_benchmark_history.py
python3 scripts/load/build_benchmark_dashboard.py
python3 scripts/load/recommend_relative_thresholds.py
python3 scripts/load/evaluate_threshold_reassessment.py
CI Workflows
.github/workflows/security.yml- security checks.github/workflows/ci.yml- PR/push checks on MSRV + stable + beta, plus fmt/clippy/docs/audit.github/workflows/performance.yml- performance benches, gating, reporting, optional publishing.github/workflows/fuzz.yml- weekly libFuzzer smoke (wire JSON, auth header, URI/JSON).github/workflows/benchmark-storage-sync.yml- storage sync template for S3/GCS/Azure.github/workflows/release-version-check.yml- enforcesVERSIONand latestCHANGELOG.mdrelease heading stay in sync.github/workflows/publish-crates.yml- tag-driven crates.io publish after preflight; usesCARGO_REGISTRY_TOKEN(optional OIDC/trusted publishing can replace this)
GitHub community templates
.github/ISSUE_TEMPLATE/bug_report.yml.github/ISSUE_TEMPLATE/feature_request.yml.github/ISSUE_TEMPLATE/config.yml.github/pull_request_template.md
Status
The tracked roadmap implementation is complete. Ongoing work is maintenance mode: periodic benchmark history accumulation and threshold re-evaluation when data changes.
Related Skills
Agent-Reach
112.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
82.0k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
79.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
48.0kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
