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

ai-readme-generator-cli

v2.0.0

Published

A CLI tool that analyzes code in a directory and generates comprehensive README.md files with local analysis (no API required)

Readme

🔍 Code Analyzer CLI

Un potente strumento da terminale che analizza automaticamente il codice in qualsiasi directory e genera un README.md completo utilizzando analisi locale avanzata (senza bisogno di API esterne).

✨ Caratteristiche

  • 🤖 Analisi locale intelligente: Nessuna API key richiesta, funziona completamente offline
  • 🌐 Multi-linguaggio: Supporta JavaScript, TypeScript, Python, Java, C, C++, Go
  • 🔒 Analisi di sicurezza: Identifica potenziali vulnerabilità e best practices
  • 📋 Documentazione completa: Genera README professionali con struttura, funzionamento e istruzioni
  • Veloce e privato: Analisi istantanea senza inviare codice a servizi esterni
  • 🎯 Personalizzabile: Scegli directory di input e nome file di output
  • 💰 Gratuito: Nessun costo per l'utilizzo

🚀 Installazione

Installa globalmente via npm:

npm install -g ai-readme-generator-cli

📖 Utilizzo

Comando base

Analizza la directory corrente e genera README.md:

code-analyzer

Specifica directory e output

code-analyzer --directory ./mio-progetto --output DOCUMENTATION.md

Opzioni disponibili

code-analyzer [options]

Options:
  -V, --version                output the version number
  -d, --directory <path>       Directory to analyze (default: ".")
  -o, --output <filename>      Output filename (default: "README.md")
  -h, --help                   display help for command

🎯 Esempi

Analizza un progetto Node.js

cd my-nodejs-app
code-analyzer

Analizza un progetto Python

code-analyzer -d ./python-project -o API_DOCUMENTATION.md

Analizza una libreria multi-linguaggio

code-analyzer --directory ./full-stack-app --output COMPREHENSIVE_README.md

� Come Funziona

Il tool analizza il codice localmente senza inviare dati a servizi esterni:

  1. 📂 Scansione: Legge tutti i file con estensioni supportate
  2. 🔍 Rilevamento: Identifica linguaggi, framework e pattern di codice
  3. 🛡️ Sicurezza: Cerca pattern di vulnerabilità comuni
  4. 📊 Statistiche: Calcola metriche e struttura del progetto
  5. 📝 Generazione: Crea un README.md professionale e dettagliato

Vantaggi dell'Analisi Locale

  • Privacy totale: Il tuo codice rimane sul tuo computer
  • Velocità: Analisi istantanea senza latenza di rete
  • Costo zero: Nessuna API key o costo per utilizzo
  • Offline: Funziona senza connessione internet
  • Sicurezza: Nessun rischio di data leak

📋 Linguaggi Supportati

Il tool analizza automaticamente file con le seguenti estensioni:

| Linguaggio | Estensioni | Rilevamento Framework | |--------------|---------------|-----------------------| | JavaScript | .js | React, Vue, Express, Next.js | | TypeScript | .ts | Angular, React, Vue | | Python | .py | Flask, Django, FastAPI | | Java | .java | Spring Boot | | C | .c | - | | C++ | .cpp | - | | Go | .go | Gin |

📄 Contenuto Generato

Il README.md generato include:

📋 Linguaggi e Tecnologie

  • Lista dettagliata di linguaggi utilizzati con statistiche
  • Framework e librerie identificate automaticamente
  • Dipendenze estratte da package.json, requirements.txt, etc.

🚀 Funzionamento del Progetto

  • Tipo di progetto rilevato automaticamente
  • Statistiche complete del codebase
  • Istruzioni di installazione specifiche per linguaggio
  • Struttura e organizzazione del progetto

🔒 Analisi della Sicurezza

  • Scansione per pattern di vulnerabilità comuni:
    • SQL Injection potenziale
    • Cross-Site Scripting (XSS)
    • Credenziali hardcoded
    • Algoritmi crittografici deboli
    • Path traversal vulnerabilities
  • Raccomandazioni di sicurezza personalizzate
  • Classificazione per gravità (Critica, Alta, Media, Bassa)

📁 Struttura del Progetto

  • Visualizzazione ad albero della struttura
  • Descrizione dei moduli principali
  • Percentuali di utilizzo per linguaggio

🛠️ Sviluppo

Requisiti

  • Node.js >= 14.0.0
  • Nessuna API key richiesta!

Installazione per sviluppo

git clone https://github.com/yourusername/ai-readme-generator-cli.git
cd ai-readme-generator-cli
npm install
npm link

Test locale

node bin/cli.js --help

🚨 Risoluzione Problemi

Errore: "Nessun file di codice trovato"

  • Verifica che la directory contenga file con estensioni supportate
  • Controlla che la directory specificata esista
  • Le cartelle node_modules, .git, dist vengono automaticamente ignorate

Il tool non rileva il mio framework

  • Il rilevamento si basa su pattern comuni nel codice
  • Assicurati che il codice contenga import o riferimenti tipici del framework
  • Puoi contribuire aggiungendo nuovi pattern di rilevamento

📊 Limitazioni

  • Analisi statica: Il tool analizza solo il codice sorgente, non esegue il programma
  • Pattern matching: Il rilevamento di framework si basa su pattern comuni
  • Falsi positivi: Alcuni avvisi di sicurezza potrebbero essere falsi allarmi
  • Linguaggi supportati: Limitato alle estensioni configurate

🆚 Confronto con Altri Tool

| Caratteristica | ai-readme-generator-cli | Altri tool AI | |----------------|-------------------------|---------------| | Costo | ✅ Gratuito | ❌ A pagamento | | Privacy | ✅ Locale | ❌ Cloud | | API Key | ✅ Non richiesta | ❌ Richiesta | | Velocità | ✅ Istantaneo | ⚡ Dipende dalla rete | | Offline | ✅ Sì | ❌ No |

🤝 Contributi

I contributi sono benvenuti! Per favore:

  1. Fork del repository
  2. Crea un branch per la feature (git checkout -b feature/nuova-caratteristica)
  3. Commit delle modifiche (git commit -am 'Aggiungi nuova caratteristica')
  4. Push al branch (git push origin feature/nuova-caratteristica)
  5. Crea una Pull Request

📜 Licenza

Questo progetto è rilasciato sotto licenza MIT.

📞 Supporto

  • Issues: GitHub Issues
  • Documentazione: Questo README
  • Esempi: Prova il tool sui tuoi progetti per vedere esempi reali!

Ti è piaciuto questo tool? Lascia una stella su GitHub!

Made with ❤️ for developers who love good documentation and privacy.