npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mvc-dex-cli

v1.1.0

Published

The **DEX architecture** is a modern, scalable, and maintainable architecture for developing back-end applications with Node.js and TypeScript. It leverages the powerful **MVC (Model-View-Controller)** pattern, helping you structure your project efficient

Readme

MVC - DEX: A New Era of Architecture

MVC-based Architecture for Back-End Applications on Node.js

The DEX architecture is a modern, scalable, and maintainable architecture for developing back-end applications with Node.js and TypeScript. It leverages the powerful MVC (Model-View-Controller) pattern, helping you structure your project efficiently and making it easier to manage large-scale applications.


Key Principles of DEX:

  1. Data: Models that define and handle data structures.
  2. Entity: Services that encapsulate business logic.
  3. Execution: Controllers and Routes that manage incoming requests and responses.

Core Technologies Used in DEX:

  • Node.js – for the server-side runtime environment.
  • Express.js – the web framework for handling routing and HTTP requests.
  • ESLint – to enforce coding standards and improve code quality.
  • TypeScript – a statically-typed language that provides enhanced tooling and avoids common JavaScript pitfalls.

Why DEX?

  • Simplicity: DEX was designed to streamline application creation, reducing setup time by automating key configurations.
  • Scalability: With its modular structure and clear separation of concerns, DEX supports growing systems and teams.
  • Maintainability: DEX helps you build clean and organized codebases that are easy to maintain in the long run.
  • Clear Separation: The MVC pattern ensures that each part of your application (data, logic, and presentation) is logically separated and easier to scale.

Quick Start: Setting Up a DEX Project

1. Install mvc-dex-cli for Easy Architecture Management

This tool will help you quickly set up and manage the DEX architecture for your Node.js projects.

npm i -g mvc-dex-cli

2. Create a New DEX Project

Use the CLI to initialize a new project based on the DEX architecture.

npx mvc-dex-cli init myDexProject

This command will create the following directory structure:

.
├── src
│   ├── app
│   ├── configs
│   ├── index.ts
│   ├── middlewares
│   ├── tests
│   └── utils
├── eslint.config.mjs
├── package.json
├── README.md
└── tsconfig.json

3. Install Required Dependencies

Now, install the necessary npm modules.

npm i

4. Add System Components

You can now add new components to your system, such as models, controllers, and services. For example, to add a users component, run:

npx mvc-dex-cli add users

This will create the following files for your users component:

  • users.controller.ts
  • users.model.ts
  • users.service.ts
  • users.route.ts

5. Running the Project

To run your project in development mode, use:

npm run dev

This will start the project using nodemon to automatically restart the server during development.


6. Building the Project

To build your project for production, run:

tsc

This will compile your TypeScript code to JavaScript, preparing your project for deployment.


7. Start Building with Scalable Architecture!

Now that your project is set up, you can start developing your application with a clean, modular, and scalable architecture.

With DEX, you can easily add new features, grow your application, and ensure that your code remains clean and maintainable as your project evolves.


Why Choose DEX?

DEX is designed to make the development of scalable and maintainable Node.js applications easier. Here’s why you should consider using it:

  • Clean Structure: DEX follows the MVC architecture, providing a clean and understandable structure that anyone can follow.
  • Extensibility: With its modular approach, you can easily add new features and services as your project grows.
  • TypeScript-First: Leveraging TypeScript from the beginning ensures you get the benefits of static typing, better tooling, and fewer bugs in production.
  • Automated CLI: The mvc-dex-cli tool automates tedious tasks, helping you stay focused on building features rather than managing configuration.
  • Future-Proof: DEX helps you design applications that can scale, handle more traffic, and remain easy to maintain as your team grows.

License

MIT License. See LICENSE file for details.


More Information

Feel free to refer to the project’s documentation for detailed guides on how to structure your controllers, models, services, and routes. You can also dive into additional features like authentication, testing, and deployment to make your project production-ready.


Let's improve the back-end development world, one scalable architecture at a time!

New in v1.1.0

  • Added --dex-js option after command init to add Dex.JS framework