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

@devmaggioni/magg-cli

v1.0.7

Published

Um pequeno utilitário para criar projetos rapidamente

Readme

🚀 MAGG CLI

Um CLI simples para criar projetos baseados em templates prontos.
Atualmente suporta React, API com Fastify, API com Express e CLI Exemplo.

Os templates estão hospedados em:
👉 devmaggioni/templates


📦 Uso rápido:

# instale globalmente
npm i -g @devmaggioni/magg-cli

# uso:
magg create # => seleciona as opções
# npx @devmaggioni/magg-cli create #=> testar sem instalar globalmente

📦 Instalação

Clone este repositório e instale as dependências:

git clone https://github.com/devmaggioni/magg-cli.git
cd magg-cli
npm install
npm run build
# node dist/index.js create

Opcionalmente, você pode linkar globalmente para usar o comando em qualquer lugar:

npm link

▶️ Uso

Para iniciar o CLI:

magg create

📋 Passo a passo

  1. Escolha um template no menu (React, Fastify, Express ou CLI Exemplo).
  2. Informe o nome da pasta onde o projeto será criado.
  3. O CLI irá baixar automaticamente apenas o template escolhido do repositório remoto.

🔧 Requisitos

  • Node.js (>= 18)

  • curl instalado

    • Linux/macOS: já vem por padrão
    • Windows: disponível no PowerShell moderno

💻 Exemplos de uso

Linux / macOS

magg create

👉 Isso executa internamente:

curl -L https://github.com/devmaggioni/templates/archive/refs/heads/main.zip -o repo.zip \
&& unzip -q repo.zip "templates-main/api-express/*" \
&& mv templates-main/api-express ./meu-projeto \
&& rm -rf templates-main repo.zip

Windows (PowerShell)

magg create

👉 Isso executa internamente:

curl -L https://github.com/devmaggioni/templates/archive/refs/heads/main.zip -o repo.zip;
Expand-Archive -Force repo.zip -DestinationPath .;
Move-Item -Path "templates-main/api-express" -Destination "./meu-projeto";
Remove-Item -Recurse -Force templates-main, repo.zip;

📚 Templates disponíveis

  • React
  • API com Express
  • API com Fastify
  • CLI Exemplo

⚠️ Observações

  • Se o diretório já existir, o CLI não sobrescreve.
  • Necessário ter curl instalado.
  • Em Windows, o script usa PowerShell.

🛠️ Futuro

  • Suporte a novos templates (NestJS, Next.js, etc).
  • Download via GitHub API (sem curl).
  • Suporte a customização (ex: instalar dependências após criar).