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

@4hse/astro-llms-txt

v1.0.4

Published

Generate llms.txt files to train large language models on your astro project

Readme

@4hse/astro-llms-txt

An Astro integration to generate AI‑friendly documentation files:

  • /llms.txt – primary index with title, description, and structured links
  • /llms-small.txt – ultra‑compact version containing only page structure (titles, lists)
  • /llms-full.txt – full Markdown documentation in a single file

Installation

npm install @4hse/astro-llms-txt
# or
yarn add @4hse/astro-llms-txt

Usage

import { defineConfig } from 'astro/config';
import astroLlmsTxt from '@4hse/astro-llms-txt';

export default defineConfig({
  site: 'https://www.4hse.com',
  integrations: [
    astroLlmsTxt({
      title: '4HSE',
      description: '4HSE is cloud‑based HSE software that automates workplace safety processes…',
      details: 'Additional context or guidelines.',
      notes: '- This content is auto‑generated from the official source.',
      optionalLinks: [
        {
          label: 'News',
          url: 'https://www.4hse.com/en/news',
          description: 'Latest company news',
        },
      ],
      docSet: [
        {
          title: 'Complete site',
          description: 'The full site of 4HSE',
          url: '/llms-full.txt',
          include: ['en/', 'en/**'],
          promote: ['en/'],
        },
        {
          title: 'Small site',
          description: 'Index of key pages',
          url: '/llms-small.txt',
          include: ['en/', 'en/**'],
          onlyStructure: true,
          promote: ['en/'],
        },
      ],
      pageSeparator: '\n\n---\n\n',
    }),
  ],
});
  • onlyStructure: true makes llms-small.txt include only headings and list structure.

  • Use promote/demote with glob patterns for ordering pages.

  • Customize mainSelector or ignoreSelectors when scraping non-standard HTML.

Difference: small vs. full

  • llms-small.txt: extremely concise—keeps only hierarchy (titles, lists), ideal for agents with limited token budget.

  • llms-full.txt: exports entire documentation in a single file with full Markdown—suitable for RAG flows, IDEs, or tools that ingest content once.

Configuration summary

llms.txt config

| Property | Type | Description | | --------------- | -------------------------------- | -------------------------------- | | title | string | Root H1 header | | description | string? | Blockquote under title | | details | string? | Expanded guidance paragraphs | | notes | string? | Footer note | | optionalLinks | { label, url, description }[]? | Non-essential references | | docSet | DocSet[]? | Sets of documentation files | | pageSeparator | string? | Custom separator between entries |

Single DocSet config

| Property | Type | Description | | ----------------- | ----------- | --------------------------------------- | | title | string | Section title | | description | string | Blockquote in each file | | url | string | Output file URL (e.g. /llms-full.txt) | | include | string[] | Glob patterns for pages | | promote | string[]? | Globs to push pages higher | | demote | string[]? | Globs to push pages lower | | onlyStructure | boolean? | If true, extracts headings + lists only | | mainSelector | string? | CSS selector for main HTML root | | ignoreSelectors | string[]? | CSS selectors to skip in HTMl to MD |