Generate llms.txt, JSON-LD, markdow
Generate llms.txt, JSON-LD, markdow
Agent Markup is a collection of open-source npm packages and a CLI tool designed to generate machine-readable output for static websites. Its primary function is to help developers create websites that are more easily interpreted by AI crawlers and automated agents. The tool integrates into the build process of popular JavaScript frameworks, including Next.js, Vite, Astro, and Nuxt, and also offers a framework-agnostic CLI for use with any static site generator. An additional audit tool checks deployed URLs against the user agents of real AI crawlers to verify what those crawlers can access. The tool provides several build-time features. It can automatically generate an `llms.txt` manifest file, optionally produce an `llms-full.txt` with expanded same-site context, and inject a discovery link for the manifest. It supports publishing an A2A Agent Card at `/.well-known/agent-card.json` for existing agent-to-agent services. It injects schema.org JSON-LD structured data into every page, with six built-in presets and XSS-safe serialization. It manages AI crawler robots.txt rules, allowing specific control over GPTBot, ClaudeBot, PerplexityBot, Google-Extended, and CCBot. It can generate cleaned Markdown companion files for built pages, patch a host-friendly `_headers` file with Content-Signal directives, and perform final-output validation to catch missing fields, incomplete schemas, thin HTML, and crawler conflicts before deployment. Typical use cases include making a website more discoverable and interpretable by AI services, improving the efficiency of content retrieval by fetch-based agents, and ensuring that structured data and access rules are correctly configured. The workflow involves installing the appropriate package for the framework being used, configuring it in the project's build settings, and then running the build. The output files and headers are generated automatically. For post-deployment verification, the audit tool can be run against a live URL without requiring an account. The tool operates entirely at build time, adding no runtime JavaScript to the final site.