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

aygaoua-readme-generator

v1.8.1

Published

A smart CLI tool that generates professional README.md files by auto-detecting project info from package.json and git config.

Readme

aygaoua-readme-generator

License Node npm CI CodeQL Socket Badge

A smart CLI tool that generates professional README.md files by auto-detecting project info from package.json and git config — so you answer fewer questions.


✨ What's New in v1.8.0

  • 🔒 Supply Chain Security — Added dependency review workflow, OpenSSF Scorecard, and socket.yml configuration.
  • 📋 Code of Conduct — Adopted Contributor Covenant v2.1 for community standards.
  • 🔧 Dependabot Fixes — Properly configured Dependabot for npm and GitHub Actions ecosystems.
  • 📝 Complete Changelog — Full version history from v1.0.0 to v1.8.0.

Features

  • Auto-detection — Reads your package.json and git config to pre-fill project name, license, GitHub username, email, install & test commands.
  • 3 README templates — Minimal (clean & concise), Standard (balanced), Detailed (full-featured with Features, Roadmap, Acknowledgments).
  • Emoji section headers — Optionally prefix headings with thematic emoji (🚀 Installation, 📜 License, etc.).
  • Inline preview — Previews the generated markdown directly in the terminal before writing to disk.
  • Input validation & Overwrite protection — Validates required fields/emails and warns before replacing existing files.
  • Custom output filename — Choose any .md filename you want.
  • License badges — Automatically adds a Shields.io badge matching your project license.
  • Dynamic sections — Skips sections like Tests if no command is detected.
  • Interactive CLI UI — Powered by Inquirer for a polished terminal experience.

Installation

npm install -g aygaoua-readme-generator

Or use it directly with npx:

npx aygaoua-readme-generator

Requirements

  • Node.js >= 18.0.0
  • npm >= 8.0.0

Usage

Navigate to your project directory and run:

readme-gen

The tool will:

  1. Auto-detect your project name, description, license, GitHub username, email, and test commands from package.json and .git/config.
  2. Prompt you only for information it couldn't detect.
  3. Generate a polished README.md with proper formatting, badges, and table of contents.

CLI Options

| Flag | Description | |------|-------------| | -v, --version | Show version number | | -h, --help | Show help message |

Example Output

The generated README includes:

  • License badge from Shields.io
  • Table of Contents with anchor links
  • Description, Installation, Usage sections
  • Contributing guidelines and Questions with your contact info
  • Tests section (only if a test command is detected)

Supported Licenses

| License | Badge Color | |---------|-------------| | MIT | Yellow | | Apache-2.0 | Blue | | GPL-3.0 | Red | | BSD-3-Clause | Orange | | None | No badge |


Development

Setup

git clone https://github.com/aygaoua/readme-generator.git
cd readme-generator
npm install

Testing

npm test

Runs 19 unit tests using Node.js built-in test runner covering:

  • Markdown generation and section rendering
  • Prompt logic and auto-detection skipping
  • Input validation (email format, filename)
  • JSON parsing and error handling

Linting

npm run lint

Uses ESLint with strict rules for code quality.


Security

This project takes security seriously:

  • Provenance — All npm releases include provenance attestations via OIDC Trusted Publishing
  • CodeQL — Automated vulnerability scanning on every push and PR
  • Dependency Review — PRs are scanned for risky dependency changes
  • OpenSSF Scorecard — Continuous security scoring and assessment
  • Socket.dev — Real-time supply chain security monitoring

For vulnerability reports, see SECURITY.md.


Contributing

Contributions are welcome! Please read our Contributing Guide and Code of Conduct before getting started.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Run tests: npm test
  4. Submit a Pull Request

Changelog

See CHANGELOG.md for a complete list of changes across all versions.


License

This project is licensed under the MIT license — see the LICENSE file for details.


Author

aygaouaGitHub · Email