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

ax-init

v1.4.0

Published

Generate AI Agent Experience (AX) files — companion to ax-audit

Readme

ax-init

Generate AI Agent Experience (AX) files — companion to ax-audit.

ax-audit tells you what's missing. ax-init generates it.

Usage

npx ax-init

CLI flags

npx ax-init                          # Interactive mode
npx ax-init --from <url>             # Detect existing files, pre-fill prompts
npx ax-init --config ax.json         # Non-interactive mode
npx ax-init --dry-run                # Preview without writing files
npx ax-init --save-config            # Save answers to ax.json after prompts
npx ax-init --help                   # Show help
npx ax-init --version                # Show version

Auto-detect mode

Scan an existing site to detect what AX files are already present. Pre-fills prompts with discovered metadata and pre-deselects generators for files that already exist:

npx ax-init --from https://example.com
  Scanning https://example.com...

  ✓ llms.txt           found
  ✗ llms-full.txt      not found
  ✓ robots.txt         found (policy: allow)
  ✗ agent.json         not found
  ✗ mcp.json           not found
  ✓ security.txt       found
  ✗ openapi.yaml       not found
  ✓ Structured Data    found
  ✓ AI Meta Tags       found
  ✓ HTTP Headers       found

  Detected: "Example Corp" — business site
  Contact: [email protected]
  Languages: en, es

Prompts are pre-filled with detected values. Only missing files are selected by default.

Dry run

Preview what would be generated without writing any files:

npx ax-init --config ax.json --dry-run
npx ax-init --from https://example.com --dry-run

Save config

Save your prompt answers to ax.json for future runs with --config:

npx ax-init --save-config
# or combine with --from:
npx ax-init --from https://example.com --save-config

Non-interactive mode

Create an ax.json config file and run without prompts — useful for CI/CD:

{
  "url": "https://example.com",
  "name": "My Site",
  "type": "business",
  "description": "A great website",
  "contactName": "Acme Inc",
  "contactEmail": "[email protected]",
  "languages": ["en"],
  "crawlerPolicy": "allow",
  "outputDir": "./public",
  "generators": ["llms-txt", "llms-full-txt", "robots-txt", "agent-json",
    "mcp-json", "security-txt", "structured-data", "meta-tags", "http-headers"]
}
npx ax-init --config ax.json

Generated files

Interactive CLI that generates:

| File | Description | |------|-------------| | llms.txt | LLM-readable site description (llmstxt.org spec) | | llms-full.txt | Extended LLM-readable site content with full inline sections | | robots.txt | AI crawler allow/block rules for 29+ known crawlers | | .well-known/agent.json | A2A Agent Card for protocol compliance | | .well-known/mcp.json | MCP server configuration for AI agent discovery | | .well-known/security.txt | RFC 9116 security contact file | | openapi.yaml | OpenAPI 3.0 stub (API type sites only) | | JSON-LD | Structured data <script> tag for <head> | | AI Meta Tags | <meta> and <link> tags for <head> | | HTTP Headers | Server config snippets for Nginx, Apache, Vercel, Netlify |

How it works

  1. Answer questions about your site (URL, name, type, description, contact, languages, crawler policy)
  2. Select which files to generate
  3. Files are written to your output directory; snippets are printed to the console
  4. Run npx ax-audit to verify your score

Example

$ npx ax-init

  ax-init v1.4.0 — Generate AI Agent Experience files

  Site URL: https://example.com
  Site name: Example
  Site type: Personal
  Brief description: Personal portfolio and blog
  Your name: John Doe
  Contact email: [email protected]
  Languages: en
  AI crawler policy: Allow
  Output directory: ./public
  Files to generate: all

  ✓ public/llms.txt
  ✓ public/llms-full.txt
  ✓ public/robots.txt
  ✓ public/.well-known/agent.json
  ✓ public/.well-known/mcp.json
  ✓ public/.well-known/security.txt

  6 files written

  Snippets — copy to your config:

  ── Structured Data (JSON-LD) ──
  <script type="application/ld+json">
  ...
  </script>

  ── AI Meta Tags ──
  <meta name="ai:site" content="Example">
  ...

  ── HTTP Headers ──
  # Nginx / Apache / Vercel / Netlify configs
  ...

  ✓ All files validated

  ──────────────────────────────────────

  Verify your score: npx ax-audit https://example.com
  Show only issues:  npx ax-audit https://example.com --only-failures

Supported site types

  • Personal — generates Person schema, personal llms.txt
  • Business — generates Organization schema, corporate llms.txt
  • API / Developer Tool — generates SoftwareApplication schema, API-focused llms.txt, OpenAPI stub
  • Blog — generates Blog schema, content-focused llms.txt

AI crawlers configured

robots.txt rules cover 29 known AI crawlers including:

GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, Claude-Web, anthropic-ai, Google-Extended, Gemini, Amazonbot, Grok, xAI-Bot, DeepSeekBot, Meta-ExternalAgent, Meta-ExternalFetcher, PerplexityBot, and more.

Requirements

  • Node.js 18+

Related

  • ax-audit — Lighthouse for AI Agents. Audit your AX score.

License

Apache 2.0