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

llms-generator-cli

v1.0.3

Published

Generate llms.txt and advanced LLM contexts from a URL

Readme

llms-gen

A fast, lightweight CLI tool to generate llms.txt and llms-full.txt from any website URL — making your content instantly readable by AI language models.

npm version license node


What is llms.txt?

llms.txt is an emerging standard that helps AI language models better understand your website. Similar to how robots.txt guides search engine crawlers, llms.txt provides structured, clean Markdown context that LLMs can efficiently read and reference.

llms-gen automates this process — just point it at a URL and it handles the rest.


Features

  • 🔍 Auto-scrapes any public URL using Axios + Cheerio
  • 📝 Converts HTML → clean Markdown via Turndown
  • 📄 Generates llms.txt — a concise, LLM-optimized summary
  • 🚀 Generates llms-full.txt — full-page deep context (with --advanced flag)
  • Zero config — works out of the box
  • 🛠️ Globally installable as a CLI command

Installation

Option 1: Run directly with npx (no install needed)

npx llms-generator-cli <url>

Option 2: Install globally

npm install -g llms-generator-cli

Option 3: Clone and use locally

git clone https://github.com/Asadsheblu/llms-generator-node.git
cd llms-generator-cli
npm install
npm link

Usage

Basic — Generate llms.txt

llms-gen https://example.com

This fetches the page, extracts the main content, and writes a clean llms.txt file in your current directory.

Advanced — Generate llms-full.txt

llms-gen https://example.com --advanced

or with the shorthand flag:

llms-gen https://example.com -a

This generates both llms.txt (concise) and llms-full.txt (complete page context).


Output Format

llms.txt (Standard)

# Page Title

> Meta description of the page

## Info
- URL: https://example.com

## Core Content
... (first ~2000 characters of clean Markdown content)

llms-full.txt (Advanced)

# Full Context: Page Title

... (complete page content in clean Markdown, no truncation)

Examples

# Generate llms.txt for a documentation site
llms-gen https://docs.example.com

# Generate full context for a product landing page
llms-gen https://myproduct.com -a

# Generate for a blog post
llms-gen https://myblog.com/my-article --advanced

Options

| Option | Alias | Description | |--------|-------|-------------| | --advanced | -a | Also generate llms-full.txt with full page content | | --version | -V | Show version number | | --help | -h | Show help information |


Requirements

  • Node.js v14.0.0 or higher
  • npm v6.0.0 or higher

Dependencies

| Package | Purpose | |---------|---------| | axios | HTTP requests to fetch web pages | | cheerio | Fast, jQuery-like HTML parsing | | turndown | HTML to Markdown conversion | | commander | CLI argument and option parsing |


How It Works

  1. Fetch — Downloads the HTML of the target URL via Axios
  2. Parse — Loads the HTML into Cheerio and extracts metadata (title, description) and the main content (<main> or <body>)
  3. Convert — Transforms the HTML into clean Markdown using Turndown
  4. Format — Structures the output into the llms.txt standard format
  5. Save — Writes the file(s) to your current working directory

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m 'Add my feature'
  4. Push to the branch: git push origin feature/my-feature
  5. Open a Pull Request

License

MIT © 2024 llms-generator-cli contributors