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

@byetevinn/shtoolkit

v1.0.2

Published

Modern CLI to explore project structure, copy file content, and streamline developer workflows.

Readme

🧰 shtoolkit

CLI moderna para explorar, filtrar e copiar conteúdo de projetos com consistência e simplicidade.

🇺🇸 Read in English


✨ Features

  • 🌳 Gerar árvore de diretórios (tree)
  • 📋 Copiar conteúdo de arquivos (copy-content / cpc)
  • ⚙️ Configuração via .shtk.json (para tree)
  • 🔍 Regras de ignore por nome, pasta e glob
  • 📦 Saída em JSON e YAML
  • 📊 Estatísticas detalhadas
  • 🚫 Tratamento de erros robusto

📦 Instalação

Global

npm install -g @byetevinn/shtoolkit

Usando npx

npx @byetevinn/shtoolkit tree

🚀 Comandos

🌳 Tree

Gera a estrutura do projeto.

shtk tree

👉 Documentação: tree


📋 Copy Content (cpc)

Copia conteúdo de arquivos a partir dos caminhos informados.

shtk cpc src

👉 Documentação: copy-content


⚙️ Init

Inicializa o arquivo de configuração.

shtk init

👉 Documentação: init


📚 Documentação


⚙️ Configuração

Execute:

shtk init

Isso cria o arquivo .shtk.json, utilizado pelo comando tree.

ℹ️ Observação: copy-content NÃO utiliza .shtk.json — ele segue apenas os caminhos informados.


🧠 Regras de Ignore

names

Ignora arquivos/pastas em qualquer nível

"names": ["node_modules", ".git"]

filesIn

Ignora arquivos dentro de pastas específicas

"filesIn": ["screenshots", "src/temp/uploads"]

patterns

Suporte a glob

"patterns": ["*.log", "*.tmp"]

📊 Exemplo de Saída

JSON

{
  "name": "project",
  "type": "folder",
  "children": []
}

YAML

name: project
type: folder
children: []

📈 Exemplo de Estatísticas

📊 Copy Content Result

📁 Total Files : 23
✅ Processed   : 23
⏭ Skipped     : 0
❌ Errors      : 0
📄 Total Lines : 1213

🧪 Casos de Uso

  • Preparar contexto para IA (ChatGPT, etc)
  • Gerar documentação de projetos
  • Analisar estrutura de código
  • Debug de arquivos

🛠 Roadmap

  • [ ] Saída em Markdown
  • [ ] Flag --flat
  • [ ] Integração com .gitignore
  • [ ] Suporte a múltiplos diretórios

👤 Autor

Desenvolvido por Stevan Padilha


📝 Licença

MIT