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

typedoc-plugin-llms-txt

v0.1.2

Published

TypeDoc plugin to generate llms.txt files for LLM consumption

Readme

typedoc-plugin-llms-txt

A TypeDoc plugin that generates llms.txt files for LLM consumption.

What is llms.txt?

llms.txt is a convention for providing LLM-friendly documentation summaries. This plugin automatically generates an llms.txt file from your TypeDoc documentation.

Installation

npm install typedoc-plugin-llms-txt typedoc -D

typedoc v0.28.0 or later is a required peer dependency.

Usage

Add the plugin to your TypeDoc configuration:

// typedoc.config.js
export default {
  plugin: ['typedoc-plugin-llms-txt'],
  // ... other options
};

That's it! The plugin will generate an llms.txt file in your output directory with reasonable defaults.

Zero-Config Defaults

The plugin works out of the box with sensible defaults:

  • Project name: From TypeDoc's name option
  • Description: From your package.json description
  • Sections: Auto-discovered from projectDocuments frontmatter categories
  • API links: Auto-generated from TypeDoc entry points

Configuration

Customize the output with these TypeDoc options:

llmsTxt

Enable or disable llms.txt generation. Default: true

llmsTxtFilename

Output filename. Default: "llms.txt"

llmsTxtHeader

Customize the header section:

{
  llmsTxtHeader: {
    name: 'My Project',           // defaults to TypeDoc name
    description: 'A cool library', // defaults to package.json description
    features: [                    // defaults to empty
      'Feature one',
      'Feature two',
    ],
  },
}

llmsTxtSections

Control how document categories are displayed and ordered:

{
  llmsTxtSections: {
    Guides: { displayName: 'Documentation', order: 1 },
    Reference: { displayName: 'Reference', order: 2 },
    About: { displayName: 'Optional', order: 3 },
  },
}

Categories not listed use their original name and appear alphabetically after configured sections.

llmsTxtDeclarations

Add links to specific API symbols using TypeDoc declaration references:

{
  llmsTxtDeclarations: [
    { ref: 'myproject!', label: 'API Reference', description: 'Full API docs' },
    { ref: 'myproject!myFunction', label: 'myFunction()' },
  ],
}

llmsTxtQuickReference

Add a code examples section:

{
  llmsTxtQuickReference: `
// Basic usage
import { foo } from 'myproject';
foo();
`,
}

llmsTxtTemplate

Use a custom template file for full layout control:

{
  llmsTxtTemplate: './llms-template.md',
}

Template slots:

  • {{header}} - Name, description, and features
  • {{sections}} - All document sections
  • {{section:CategoryName}} - Specific category
  • {{declarations}} - API links
  • {{quickReference}} - Code examples

License

BlueOak-1.0.0