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

create-cfw-app

v2.1.1

Published

CLI para crear aplicaciones SPA para CloudFramework con React Router y aislamiento CSS

Readme

create-cfw-app

CLI para crear aplicaciones SPA (Single Page Application) para CloudFramework.

🚀 Uso rápido

npx create-cfw-app mi-app

📦 Frameworks disponibles

| Framework | Comando | UI Library | |-----------|---------|------------| | React | --framework react | Tailwind CSS | | React + shadcn/ui | --framework react-shadcn | shadcn/ui + Tailwind | | Vue 3 | --framework vue3 | Tailwind CSS | | Vue 3 + Vuetify | --framework vue3-vuetify | Vuetify 3 + Material Design |

Todos los frameworks soportan JavaScript y TypeScript.

# Ver frameworks disponibles
npx create-cfw-app --list

⚡ Crear proyecto

Modo interactivo

npx create-cfw-app

Modo rápido (JavaScript)

# React básico
npx create-cfw-app mi-app --framework react -y

# React + shadcn/ui
npx create-cfw-app mi-app --framework react-shadcn -y

# Vue 3 básico
npx create-cfw-app mi-app --framework vue3 -y

# Vue 3 + Vuetify
npx create-cfw-app mi-app --framework vue3-vuetify -y

Con TypeScript

# React + TypeScript
npx create-cfw-app mi-app --framework react --typescript -y

# React + shadcn/ui + TypeScript
npx create-cfw-app mi-app --framework react-shadcn -t -y

# Vue 3 + TypeScript
npx create-cfw-app mi-app --framework vue3 --typescript -y

# Vue 3 + Vuetify + TypeScript
npx create-cfw-app mi-app --framework vue3-vuetify -t -y

Con Firebase

npx create-cfw-app mi-app \
  --framework react-shadcn \
  --typescript \
  --firebase-project "mi-proyecto" \
  --firebase-hosting-prod "mi-app"

🔧 Comandos del CLI

Crear proyecto

npx create-cfw-app [nombre] [opciones]

| Opción | Descripción | |--------|-------------| | -f, --framework <fw> | Framework (react, react-shadcn, vue3, vue3-vuetify) | | -t, --typescript | Usar TypeScript | | --css-prefix <prefix> | Prefijo CSS para aislamiento | | --port <number> | Puerto de desarrollo (default: 4000) | | --firebase-project <id> | ID del proyecto Firebase | | --firebase-hosting-prod <n> | Hosting Firebase producción | | -y, --yes | Usar valores por defecto | | -l, --list | Listar frameworks |

Añadir página

npx create-cfw-app add <ruta>
# Ejemplos
npx create-cfw-app add about
npx create-cfw-app add contact
npx create-cfw-app add users/:id
npx create-cfw-app add products/:category/:id

El comando detecta automáticamente si el proyecto usa TypeScript y genera archivos .tsx/.ts o .jsx/.js según corresponda.

Añadir store

npx create-cfw-app add-store
  • React: Crea store con Zustand (index.js o index.ts)
  • Vue 3: Crea store con Pinia (index.js o index.ts)

Listar rutas

npx create-cfw-app routes

📁 Estructura del proyecto

JavaScript

mi-app/
├── src/
│   ├── pages/              # Páginas de la aplicación
│   │   ├── Home.jsx
│   │   └── NotFound.jsx
│   ├── shared/
│   │   ├── components/     # Layout y componentes compartidos
│   │   └── utils/
│   │       └── router.jsx  # Router para CloudFramework
│   ├── App.jsx             # Definición de rutas
│   ├── main.jsx            # Punto de entrada
│   └── index.css
├── cfw.config.js           # Configuración del proyecto
├── vite.config.js
└── package.json

TypeScript

mi-app/
├── src/
│   ├── pages/
│   │   ├── Home.tsx
│   │   └── NotFound.tsx
│   ├── shared/
│   │   ├── components/
│   │   │   └── Layout.tsx
│   │   └── utils/
│   │       └── router.tsx
│   ├── App.tsx
│   ├── main.tsx
│   └── index.css
├── tsconfig.json
├── cfw.config.js
├── vite.config.js
└── package.json

🔧 Scripts npm

| Comando | Descripción | |---------|-------------| | npm run dev | Servidor de desarrollo | | npm run build | Build de producción (incluye tsc para TypeScript) | | npm run preview | Preview del build | | npm run deploy | Deploy a Firebase (si configurado) |

🌐 URLs

| Entorno | URL | |---------|-----| | Desarrollo standalone | http://localhost:4000/cfwapp/ | | En CloudFramework | #http://localhost:4000/cfwapp/about | | Producción | https://tu-app.web.app/cfwapp/ |

📚 Documentación

  • Tutorial completo: Ver TUTORIAL.md
  • Desarrollo del CLI: Ver DEVELOPMENT.md

UI Libraries

📝 Licencia

MIT © CloudFramework