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 🙏

© 2026 – Pkg Stats / Ryan Hefner

fc-cli-ca

v1.0.2

Published

CLI para agilizar el desarrollo de aplicaciones siguiendo Clean Architecture con NestJS

Downloads

4

Readme

CLI-CA: Generador de Módulos Clean Architecture

Una herramienta de línea de comandos para agilizar el desarrollo de aplicaciones siguiendo los principios de Clean Architecture con NestJS.

🚧 Nota: Esta CLI está en constante mejora y desarrollo activo. Nuevas características y mejoras se añaden regularmente.

🚀 Características

  • Generación automática de módulos: Crea toda la estructura de un módulo completo con un solo comando
  • Arquitectura limpia: Sigue las mejores prácticas de Clean Architecture
  • Templates personalizables: Estructura basada en Handlebars para fácil personalización
  • Convenciones de nomenclatura: Aplica automáticamente diferentes formatos de nomenclatura (camelCase, kebab-case, PascalCase, snake_case)

📦 Instalación

Instalación Global

npm install -g fc-cli-ca

Instalación Local

npm install fc-cli-ca

🛠️ Uso

Comando Principal

ca generate <tipo> <nombre>
# o
ca g <tipo> <nombre>

Generar un Módulo

# Generar un módulo de usuarios
ca generate module user

# Forma abreviada
ca g m user

# Generar un módulo de productos
ca generate module product

📁 Estructura Generada

Al ejecutar ca generate module <nombre>, se crea la siguiente estructura en src/core/<nombre>:

src/core/<nombre>/
├── infrastructure/
│   ├── <nombre>.module.ts
│   ├── controllers/
│   │   └── <nombre>.controller.ts
│   └── repositories/
│       └── <nombre>.repository.ts
├── domain/
│   ├── entities/
│   │   └── <nombre>.entity.ts
│   └── interfaces/
│       └── <nombre>-repository.interface.ts
└── application/
    ├── dtos/
    │   ├── requests/
    │   │   ├── create-<nombre>.request.dto.ts
    │   │   └── index.ts
    │   └── responses/
    │       ├── <nombre>.response.dto.ts
    │       └── index.ts
    ├── interfaces/
    │   └── use-cases/
    │       ├── params/
    │       │   ├── create-<nombre>.params.ts
    │       │   └── index.ts
    │       └── results/
    │           ├── <nombre>.result.ts
    │           └── index.ts
    ├── mappers/
    │   ├── <nombre>.mapper.ts
    │   └── index.ts
    └── use-cases/
        ├── create-<nombre>.usecase.ts
        ├── find-all-<nombre>.usecase.ts
        ├── get-<nombre>-by-id.usecase.ts
        └── index.ts

🎯 Casos de Uso Incluidos

Cada módulo generado incluye automáticamente:

  • Create: Crear una nueva entidad
  • Find All: Obtener todas las entidades
  • Get By Id: Obtener una entidad por su ID

🔧 Convenciones de Nomenclatura

La CLI aplica automáticamente diferentes formatos según el contexto:

  • camelCase: Para variables y métodos (userName)
  • kebab-case: Para archivos y rutas (user-profile)
  • PascalCase: Para clases y tipos (UserName)
  • snake_case: Para constantes (USER_NAME)

Ejemplo

Si generas un módulo llamado user-profile:

ca generate module user-profile

Se aplicarán las siguientes transformaciones:

  • userProfile (camelCase)
  • user-profile (kebab-case)
  • UserProfile (PascalCase)
  • user_profile (snake_case)

📋 Requisitos

  • Node.js 14 o superior
  • NestJS (para usar los módulos generados)
  • TypeORM (para las entidades)

🎨 Personalización

Los templates están ubicados en la carpeta templates/ y utilizan Handlebars para la generación. Puedes personalizar:

  • Estructura de archivos
  • Contenido de los templates
  • Convenciones de nomenclatura
  • Casos de uso incluidos

👨‍💻 Autor

Franz Cortez Olmedo


🚀 Ejemplos de Uso

Generar un módulo de productos

ca generate module product

Generar un módulo de categorías

ca g m category

Generar un módulo de pedidos

ca generate m order

¡Disfruta desarrollando con Clean Architecture! 🎉