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

@codigodoleo/wp-kit

v3.5.0

Published

Kit opinativo para padronizar projetos WordPress com CI/CD dinâmico.

Readme

@codigodoleo/wp-kit

npm version license

wp-kit monta a estrutura que você sempre recria do zero — lint, CI, deploy, scaffolds WordPress — em menos de um minuto.

O que você quer fazer hoje?

| Cenário | Módulos ativos | Quickstart | | ----------------------------- | ------------------------- | ----------------------------- | | Só lint, git e deploy | lint + git + deploy | → Quickstart | | Tema WordPress moderno (Sage) | + sage | → Sage | | MU Plugin customizado | + mu-plugin | → MU Plugin | | Plugin WordPress | + plugin | → Plugin | | Tema do zero com Vite | + blank-theme | → Blank Theme |

⚡ Os módulos são combinantes — você pode ter Sage + mu-plugin + lint no mesmo projeto. E pode adicionar módulos rodando o init novamente.

Quickstart

npx @codigodoleo/wp-kit init --output meu-site

Sem perguntas (defaults inteligentes):

npx @codigodoleo/wp-kit init --output meu-site --defaults

Instalação global (opcional):

npm install -g @codigodoleo/wp-kit
leo-wp init --output meu-site

Scaffolds disponíveis

| | Sage | MU Plugin | Plugin | Blank Theme | | ------------- | ------------------------- | --------------------------- | ------------------------ | ------------------------- | | Diretório | content/themes/{name} | content/mu-plugins/{name} | content/plugins/{name} | content/themes/{name} | | PHP | Acorn + Blade | PSR-4 | PSR-4 | Mínimo | | JS/CSS | Vite (Bud) | — | — | Vite + SCSS | | ACF | ACF Composer | — | — | — | | Lint | ESLint + Stylelint + Pint | Pint | Pint | ESLint + Stylelint + Pint |

Requisitos

  • Node.js 18+ (recomendado 22+)
  • npm
  • Git
  • PHP 8.2+ e Composer — necessário para Sage, mu-plugin e plugin

Módulos

| Módulo | O que faz | | ------------- | ------------------------------------------------------------------- | | git | Inicializa repositório, Husky, commitlint, lint-staged | | deploy | Gera pipeline de CI (GitLab, GitHub Actions ou Bitbucket Pipelines) | | lint | Configura ESLint, Prettier, Stylelint, Pint, commitlint e hooks | | sage | Scaffold do tema Roots Sage v11 em content/themes/ | | mu-plugin | Scaffold de MU Plugin em content/mu-plugins/ | | plugin | Scaffold de Plugin em content/plugins/ | | blank-theme | Scaffold de tema Vite+SCSS em content/themes/ | | php | Scripts e configs auxiliares para PHP | | docs | Gera README do projeto gerado |

Documentação completa: docs/04-Módulos.md

Lint modular

O sistema de lint é modular: cada scaffold tem suas próprias configs instaladas de forma independente.

⚠️ enable_lint controla apenas Husky + commitlint + .lintstagedrc.json dinâmico. Os arquivos de config (pint.json, .prettierrc.json, eslint.config.mjs) são sempre instalados em cada scaffold, independentemente dessa flag.

O .lintstagedrc.json na raiz é gerado dinamicamente com base nos módulos ativos — apenas os linters relevantes para o que você habilitou.

CI Dinâmico

O pipeline é gerado com base nos módulos que você ativou:

  • ci.build.composer — composer.json detectado ou Sage ativo
  • ci.build.node — package.json detectado ou Sage ativo
  • ci.lint.sage — Sage ativo + enable_lint
  • ci.lint.mu_plugin — mu-plugin ativo + enable_lint
  • ci.lint.plugin — plugin ativo + enable_lint
  • ci.lint.blank_theme — blank-theme ativo + enable_lint
  • ci.deploy.docker — estratégia Docker selecionada

💡 Você não precisa editar o pipeline manualmente — se ativar um módulo, o job correspondente já aparece no CI.

Documentação completa: docs/05-CI-Dinâmico.md

Scripts de desenvolvimento

npm run lint          # ESLint
npm run lint:fix      # ESLint com correção automática
npm run format        # Prettier
npm run commit        # Commit interativo (commitizen)

Convenções

  • Commits: Conventional Commits (feat:, fix:, docs:, refactor:, chore:)
  • Hooks: Husky + lint-staged validam no pré-commit
  • Commitlint: Valida mensagem no commit-msg

Contribuição

Pull Requests são bem-vindos. Use commits convencionais, mudanças pequenas e atualize a documentação quando alterar comportamentos.

→ Guia completo: docs/06-Contribuicao.md


Para entender a fundo a arquitetura, módulos e CI dinâmico: docs/