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

create-zs3-app

v1.0.1

Published

Generador de projectes personalitzat amb configuració estandarditzada

Readme

create-zs3-app

Generador interactiu de projectes amb configuració estandarditzada. Crea projectes backend i frontend amb TypeScript o JavaScript, linting, formatació i VS Code configurats automàticament.

Ús ràpid

npx @el-teu-username/create-zs3-app

O amb instal·lació global:

npm install -g @el-teu-username/create-zs3-app
create-zs3-app

Arguments CLI

Es pot saltar total o parcialment el wizard passant arguments per línia de comandes. Si en falten alguns, el wizard només pregunta els que falten.

| Argument | Valors | Descripció | |---|---|---| | --type | backend, frontend, fullstack | Tipus de projecte | | --name | text (a-z0-9-_) | Nom del projecte | | --variant | ts, vanilla | TypeScript o JavaScript | | --framework | express, zs3, express-zs3, none | Framework addicional | | --description | text | Descripció del projecte | | --author | text | Autor del projecte | | --git / --no-git | — | Inicialitzar repositori Git | | --dry-run | — | Mostra els fitxers sense crear res | | -h, --help | — | Mostra l'ajuda i surt |

Exemple sense cap pregunta interactiva:

npx @el-teu-username/create-zs3-app --type backend --name my-api --variant ts --framework express --author "Joan" --git

Exemple parcial (el wizard pregunta el que falta):

npx @el-teu-username/create-zs3-app --type frontend --name my-app

Exemple fullstack (Express + zs3-ui-components):

npx @el-teu-username/create-zs3-app --type fullstack --name my-app --variant ts --framework express-zs3 --git

Es pot combinar amb --dry-run:

npx @el-teu-username/create-zs3-app --type backend --variant ts --name test --dry-run

Tipus de projectes disponibles

| Template | Stack | |---|---| | Backend (TypeScript) | Node.js + TypeScript + dotenv | | Backend (TypeScript + Express) | Node.js + TypeScript + Express + dotenv | | Backend (JavaScript) | Node.js + JavaScript + dotenv | | Backend (JavaScript + Express) | Node.js + JavaScript + Express + dotenv | | Frontend (TypeScript) | Vite + TypeScript | | Frontend (TypeScript + zs3-ui-components) | Vite + TypeScript + zs3-ui-components | | Frontend (JavaScript) | Vite + JavaScript | | Frontend (JavaScript + zs3-ui-components) | Vite + JavaScript + zs3-ui-components | | Fullstack | Monorepo (npm workspaces) amb backend + frontend combinats dinàmicament |

Fullstack: No hi ha templates estàtics fullstack. El generador composa dinàmicament un monorepo combinant un template backend i un frontend dels 8 existents, suportant les 8 combinacions possibles. Utilitza concurrently per executar backend i frontend simultàniament.

Wizard interactiu

El generador fa les preguntes següents:

  1. Tipus de projecte: Backend, Frontend o Fullstack
  2. Nom del projecte: Nom del directori (lletres minúscules, números, guions)
  3. Descripció: Descripció del projecte (opcional)
  4. Autor: Nom de l'autor (opcional)
  5. Git: Si vols inicialitzar un repositori Git
  6. Variant: TypeScript o Vanilla (JavaScript)
  7. Framework: Express (backend), zs3-ui-components (frontend), o ambdós per separat (fullstack)

Abans de crear res, mostra un resum per confirmar.

Exemple

$ npx @el-teu-username/create-zs3-app

🚀 Generador de projectes

? Quin tipus de projecte vols crear? Backend
? Nom del projecte: my-api
? Descripció del projecte: API REST
? Autor: El meu nom
? Inicialitzar repositori Git? Sí
? Quina variant vols utilitzar? TypeScript
? Vols utilitzar Express? Sí

📋 Resum del projecte:

  Tipus:             Backend (TypeScript + Express)
  Nom:               my-api
  Descripció:        API REST
  Autor:             El meu nom
  Git:               Sí
  Express:           Sí

? Vols crear el projecte amb aquesta configuració? Sí

📦 Creant projecte...

✓ Repositori Git inicialitzat

✨ Projecte creat amb èxit!

Passos següents:

  cd my-api
  npm install
  npm run dev

Què inclou cada projecte generat

Tots els projectes inclouen:

  • ESLint 9 amb flat config i regles de qualitat de codi
  • Prettier per formatació automàtica
  • EditorConfig per consistència entre editors
  • Configuració de VS Code (settings + extensions recomanades)
  • Scripts npm predefinits (dev, lint, lint:fix, format, format:check)
  • .gitignore configurat

Els projectes TypeScript afegeixen a més:

  • tsconfig.json amb configuració estricta
  • Scripts addicionals (build, type-check)
  • Regles ESLint per TypeScript (no-explicit-any, no-floating-promises, etc.)

Scripts disponibles als projectes generats

Fullstack (monorepo)

npm run dev            # Inicia backend i frontend simultàniament
npm run dev:backend    # Només backend
npm run dev:frontend   # Només frontend
npm run build          # Build de producció
npm run lint           # Lint de tot el projecte
npm run format         # Formatar tot el projecte

Backend

npm run dev        # Desenvolupament amb hot reload
npm start          # Producció
npm run lint       # Analitzar codi
npm run format     # Formatar codi

Frontend

npm run dev        # Servidor de desenvolupament Vite
npm run build      # Build de producció
npm run preview    # Previsualitzar build
npm run lint       # Analitzar codi
npm run format     # Formatar codi

Requisits

  • Node.js >= 18

Llicència

MIT