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

pwa-generator

v1.0.13

Published

Generador de plantillas para React

Readme

📦 React PWA CLI

Generador de estructura para aplicaciones React PWA

NPM Version
License
Node.js Version


📖 Descripción

pwa-generator es una herramienta CLI que permite crear fácilmente la estructura de archivos y carpetas para proyectos React PWA. Automatiza la configuración inicial del proyecto, incluyendo la configuración de Git, la estructura de carpetas y la conexión con un repositorio remoto.


🚀 Instalación

Para instalarlo globalmente desde npm, ejecuta:

npm install -g pwa-generator

📌 Uso

Después de la instalación, puedes ejecutar el CLI con el comando:

pwa-generator <comando>

🛠 Comandos Disponibles

| Comando | Descripción | |--------------------|-------------| | init | Crea un nuevo proyecto React PWA con la estructura base. | | create <tipo> | Genera un nuevo componente o página dentro del proyecto. |

Opciones para el comando create:

  • create component → Crea un nuevo componente
  • create page → Crea una nueva página

🏗 Ejemplos de Uso

Iniciar un nuevo proyecto

pwa-generator init

El CLI solicitará información como el nombre del proyecto, descripción y la opción de conectarlo a un repositorio Git.

Crear una nueva página

pwa-generator create page

El CLI preguntará el nombre de la página y generará la estructura correspondiente.

Crear un nuevo componente

pwa-generator create component

El CLI solicitará el nombre del componente y lo generará en la carpeta src/components.


📂 Estructura del Proyecto Generado

/my-pwa-project
│── src/
│   │── config/
│   │── pages/
│   │── services/
│   │── utils/
│   │── components/
│   │── theme/
│   │── root/
│── package.json
│── tsconfig.json
│── README.md
│── .gitignore
│── vite.config.ts
│── index.html
│── manifest.json

🔗 Conexión con un Repositorio Git

Si especificas un repositorio durante la configuración inicial (init), el CLI:
Inicializará Git
Creará una rama main
Agregará el repositorio remoto

Si omites esta opción, podrás configurarlo manualmente más adelante.


🖥 Abrir en Visual Studio Code

Al finalizar la creación del proyecto, el CLI preguntará si deseas abrirlo en VSCode. Puedes elegir:
🔹 Presionar ENTER → Abre el proyecto en VSCode
🔹 Escribir n y ENTER → No abrir en VSCode


📋 Requisitos

🔹 Node.js >= 14
🔹 npm >= 6
🔹 Git (opcional, solo si deseas conectar a un repositorio)
🔹 Visual Studio Code (opcional, si deseas abrir el proyecto automáticamente)


🤝 Contribución

Si deseas contribuir, sigue estos pasos:

  1. Fork este repositorio
  2. Crea una rama con tu feature (git checkout -b feature-nueva)
  3. Commitea tus cambios (git commit -m "Agregada nueva feature")
  4. Haz push a la rama (git push origin feature-nueva)
  5. Abre un Pull Request 🚀

📜 Licencia

Este proyecto está bajo la licencia MIT. Puedes usarlo y modificarlo libremente.


¡Gracias por usar React PWA CLI! 🎉🚀