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

auto-docify

v1.0.1

Published

Creates README file for projects automatically

Readme

auto-docify

Node.js NPM Version License: MIT

📖 Description

auto-docify is a lightweight CLI tool that automatically creates (or updates) a high‑quality README.md for any project. It scans your source files, extracts useful information, and leverages the Groq LLM API to craft polished documentation.

Key capabilities:

  • File scanning – walks through your project and collects file names, structure, and metadata
  • AI‑powered writing – uses Groq's LLM to generate human‑friendly documentation
  • Existing README awareness – reads and enhances an existing README.md instead of overwriting it
  • Your API key – users provide their own Groq API key (no shared keys)

🚀 Quick Start

1. Install globally

npm install -g auto-docify

2. Get your Groq API key

Get a free API key from https://groq.com

3. Run the generator

auto-docify "/path/to/your/project" -k "your_groq_api_key"

After the command finishes, a fresh README.md will appear in the target directory.


🛠️ Installation

As a global CLI

npm install -g auto-docify

As a development dependency

npm install -D auto-docify

Prerequisites

| Requirement | Version | | ---------------- | ------------------------------------------------ | | Node.js | >= 18 | | npm | >= 8 | | Groq API key | Obtain from https://groq.com |


📦 Usage

CLI Syntax

auto-docify [options] <projectPath>

| Option | Alias | Description | | ------ | ----------- | ---------------------------- | | -k | --api-key | Your Groq API key (required) | | -h | --help | Show help information |

Examples

# Generate README for a project (required -k flag)
auto-docify "/path/to/project" -k "gsk_xxxxxxxx"

# Generate README for current directory
auto-docify . -k "gsk_xxxxxxxx"

# Show help
auto-docify --help

Using with node directly

# Set API key as environment variable
set GROQ_API_KEY=your_key
node index.js "/path/to/project"

Programmatic API

If you prefer to call the generator from another Node script:

const generateReadme = require("auto-docify");

(async () => {
  const markdown = await generateReadme("/my/project", {
    apiKey: "gsk_xxxxxxxx",
  });

  console.log("README generated!");
})();

Or using environment variable:

process.env.GROQ_API_KEY = "gsk_xxxxxxxx";

const generateReadme = require("auto-docify");

await generateReadme("/my/project");

✨ Features

| Feature | Description | | ------- | ---------------------------------------------------------------------- | | ✅ | File scanner – walks through project and collects metadata | | ✅ | Existing README reader – parses current README to preserve content | | ✅ | AI integration – uses Groq API for generating documentation | | ✅ | Custom prompts – builds context‑aware prompts for the LLM | | ✅ | Project analyzer – detects language, tech stack, and structure | | ✅ | CLI interface – quick, one‑liner generation | | ✅ | Programmatic API – use as a library in your own code |


🏗️ Tech Stack

| Layer | Technology | | -------------- | ------------------------------------------------------------- | | Runtime | Node.js (v18+) | | CLI Framework | Native process.argv handling | | AI Provider | groq-sdk | | Env Management | dotenv | | Code Analysis | Custom scanners (helpers/scanner.js, helpers/analyzer.js) |


🤝 Contributing

Contributions are welcome! Follow these steps:

  1. Fork the repository
  2. Clone your fork:
    git clone https://github.com/yourusername/auto-docify.git
  3. Create a feature branch:
    git checkout -b feature/awesome-new-feature
  4. Install dependencies:
    npm install
  5. Make your changes and test locally:
    node index.js /test/project -k "your_key"
  6. Commit and push to your fork
  7. Open a Pull Request

📝 License

Distributed under the MIT License. See the LICENSE file for details.


📚 Related Projects & Resources


Happy documenting! 🎉