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-moonslack-app

v1.0.0

Published

CLI para crear apps Expo con estructura MVVM y Moonslack UI

Readme

🌙 create-moonslack-app

Crea apps Expo + React Native con arquitectura MVVM, soporte para Expo Router, y una base sólida de componentes Moonslack UI — todo con un solo comando.


🚀 Instalación rápida

# Crear un nuevo proyecto usando npx
npx create-moonslack-app mi-app

O si prefieres instalarlo globalmente:

pnpm add -g create-moonslack-app
create-moonslack-app mi-app

🧩 ¿Qué incluye?

El CLI genera una app lista para producción con:

  • Expo SDK más reciente
  • Estructura MVVM (Model–View–ViewModel)
  • Expo Router para navegación moderna
  • TypeScript + ESLint + Prettier
  • Dark/Light mode preconfigurado
  • Contextos base (AuthViewModel, ThemeContext, etc.)
  • Moonslack UI Kit listo para usar
  • Configuración inicial para Apple Sign-In, SecureStore, y AsyncStorage

🏗️ Estructura del proyecto generado

mi-app/
├── app/                   # Rutas y pantallas (Expo Router)
│   ├── (tabs)/            # Tabs principales
│   ├── auth/              # Login / Registro
│   └── _layout.tsx
├── src/
│   ├── viewmodels/        # Hooks de estado y lógica (MVVM)
│   ├── components/        # UI Components reutilizables
│   ├── context/           # Contextos globales (Auth, Theme, etc.)
│   ├── theme/             # Colores, tipografía, dark/light mode
│   ├── utils/             # Helpers y utilidades comunes
│   └── config/            # Constantes y settings
├── assets/                # Imágenes, íconos, fuentes
├── package.json
├── tsconfig.json
└── app.json

⚙️ Opciones del CLI

Al ejecutar el comando, se te pedirá el nombre del proyecto:

? Nombre de la app: my-awesome-app

Luego el CLI:

  1. Crea la carpeta del proyecto.
  2. Ejecuta pnpm create expo-app con el template base.
  3. Copia la estructura template/ de Moonslack (MVVM + UI).
  4. Limpia archivos innecesarios (.git, .expo, etc.).
  5. Te deja listo para ejecutar pnpm start.

🧠 Scripts comunes

Dentro del proyecto generado podrás usar:

pnpm start        # Inicia el servidor de desarrollo
pnpm ios          # Ejecuta en iOS Simulator
pnpm android      # Ejecuta en Android
pnpm lint         # Revisa el código con ESLint
pnpm prettier     # Formatea el código

🪄 Ejemplo completo

npx create-moonslack-app mi-app
cd mi-app
pnpm start

Salida esperada:

🚀 Bienvenido a create-moonslack-app (Expo + MVVM)

? Nombre de la app: mi-app

📁 Creando carpeta /Users/you/mi-app...
⚙️  Generando base con Expo SDK más reciente...
📦 Aplicando estructura Moonslack...
✅ Proyecto creado con éxito!

👉 cd mi-app && pnpm start

🧰 Requisitos

  • Node.js ≥ 18
  • pnpm ≥ 8.0.0 (recomendado)
  • Git instalado
  • macOS o Windows con soporte Expo CLI

Puedes instalar pnpm con:

npm i -g pnpm

🪶 Filosofía del CLI

create-moonslack-app busca:

  • Estándar uniforme entre proyectos (MVVM + Expo Router)
  • Integración nativa con Moonslack UI y patrones de diseño consistentes
  • Productividad inmediata sin configuración manual
  • Ideal para crear apps con autenticación, modo oscuro, IA o módulos SaaS

📦 Publicación

Para mantener tu CLI actualizado:

# Actualiza la versión
pnpm version patch

# Publica en npm
npm publish --access public

🤝 Contribución

¿Quieres mejorar la plantilla o agregar nuevos templates (por ejemplo --template saas o --template ai)?

  1. Clona este repositorio
  2. Edita el contenido del folder /template
  3. Prueba localmente con:
    pnpm link --global
    create-moonslack-app test
  4. Abre un PR o comparte tus mejoras 🚀

🧩 Roadmap

  • [ ] Soporte para múltiples templates (--template auth, --template saas)
  • [ ] Inicializador con configuración de Supabase / Firebase
  • [ ] Integración opcional de Moonslack UI Kit desde npm
  • [ ] Postinstall automático con dependencias base

🧑‍💻 Autor

Moonslack Labs
Creadores de experiencias hermosas con Expo, React Native y AI.
🌐 moonslack.com


📄 Licencia

MIT © 2025 Moonslack Labs