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

@agentmarkup/cli

v0.5.2

Published

Run agentmarkup on any built static site: llms.txt, llms-full.txt, A2A Agent Cards, JSON-LD, markdown mirrors, headers, AI crawler controls, and validation — framework-agnostic, with a CI-friendly check command

Downloads

431

Readme

@agentmarkup/cli

Run agentmarkup on any built static site — no framework adapter required. Point it at a directory of emitted HTML and it generates llms.txt, markdown mirrors, JSON-LD, AI-crawler robots.txt, and _headers, then validates the result. Works for Eleventy, Gatsby, Hugo, Jekyll, Docusaurus, plain static HTML, and CI pipelines.

Install

npm install -D @agentmarkup/cli

Usage

# Inject + write machine-readable assets into a build output directory
agentmarkup generate ./dist

# Validate what is already on disk (CI gate) — exits non-zero on errors
agentmarkup check ./dist

# Preview without writing anything
agentmarkup generate ./dist --dry-run

Add a config file in your project root:

// agentmarkup.config.mjs
export default {
  site: 'https://example.com',
  name: 'Example',
  outDir: 'dist', // optional CLI-only default; or pass the dir as an argument
  llmsTxt: {
    sections: [
      { title: 'Docs', entries: [{ title: 'Home', url: 'https://example.com/' }] },
    ],
  },
  markdownPages: { enabled: true },
  aiCrawlers: { GPTBot: 'disallow' },
};

Commands

| Command | What it does | Exit code | |---|---|---| | generate [outDir] | Injects discovery links + JSON-LD into HTML and writes llms.txt, llms-full.txt, markdown mirrors, robots.txt, _headers. | 0 | | generate [outDir] --dry-run | Runs the full pass in memory and reports planned writes; mutates nothing. | 0 | | check [outDir] | Validates the files exactly as they are on disk and warns when a configured artifact (llms.txt, llms-full.txt, markdown mirrors, robots.txt rules, Agent Card) is missing from the output. Never writes. Use as a CI gate. | 1 on any error finding (--strict also fails on warnings), else 0 |

Options

  • --config <path> — path to an agentmarkup config (.mjs / .js / .cjs). Defaults to agentmarkup.config.* in the working directory.
  • --dry-run — (generate) report planned writes without mutating files.
  • --strict — (check) treat warnings as failures.
  • -h, --help, -v, --version.

Output directory resolution

Explicit argument → config outDir → common build defaults (dist, build, out, _site). public/ is never auto-guessed because it is a source asset directory in many frameworks; pass it explicitly if you really mean it.

Coexistence

Existing curated llms.txt, existing robots.txt rules, and existing page JSON-LD are preserved by default; the CLI only fills gaps. Opt into replacement per feature via the config (llmsTxt.replaceExisting, markdownPages.replaceExisting, jsonLd.replaceExistingTypes, etc.).

Programmatic API

import { processStaticOutput, loadConfig, resolveOutDir } from '@agentmarkup/cli';

All @agentmarkup/core helpers are re-exported as well.

License

MIT — Sebastian Cochinescu and Anima Felix.