@mxweb/core
v1.2.0
Published
A NestJS-inspired backend framework for Next.js App Router with dependency injection, guards, interceptors, and modular architecture
Maintainers
Readme
@mxweb/core
A NestJS-inspired backend framework for Next.js App Router.
⚠️ Security Notice (CVE-2025-55182)
This vulnerability affects Next.js. Please ensure you are using a patched version of Next.js:
- Next.js 16.x: Use version
16.0.7or later- Next.js 15.x: Use version
15.1.7or later- Next.js 14.x: Use version
14.2.25or laternpm install next@latestFor more details, see the Next.js security advisory.
Features
- 🏗️ Feature-based Architecture - Modular design with Features, Controllers, and Services
- 💉 Dependency Injection - Built-in DI container for managing dependencies
- 🛡️ Guards & Interceptors - Request lifecycle hooks for auth, logging, and more
- 🔄 Pipes & Filters - Data transformation and exception handling
- 🎯 Decorators - Intuitive decorators for clean, declarative code
- 📦 Request Scoping - AsyncLocalStorage-based request context
Installation
npm install @mxweb/core
# or
yarn add @mxweb/core
# or
pnpm add @mxweb/coreQuick Start
// app/api/[[...path]]/route.ts
import { Application } from "@mxweb/core";
import "@/features/product.feature";
const app = Application.create({});
export const GET = app.GET;
export const POST = app.POST;
export const PUT = app.PUT;
export const PATCH = app.PATCH;
export const DELETE = app.DELETE;Documentation
For detailed documentation, guides, and API reference, visit:
License
MIT
