get-llms-txt
RepositoryFreeGenerate LLM-friendly llms.txt files from markdown and MDX content files
Capabilities10 decomposed
markdown-to-llm-context extraction
Medium confidenceParses markdown and MDX files from a documentation source directory and extracts semantic content blocks (headings, paragraphs, code blocks, lists) into a structured format optimized for LLM consumption. Uses AST-based parsing to preserve document hierarchy and metadata, then flattens content into a single llms.txt file with clear delimiters and context markers that help LLMs understand document structure without needing to parse raw markdown syntax.
Specifically targets the llms.txt convention (emerging standard for LLM-friendly documentation) rather than generic markdown-to-text conversion, with awareness of documentation site generators (Next.js, Astro, Docusaurus) and their directory structures
Purpose-built for LLM context generation unlike generic markdown converters; understands documentation site conventions and preserves semantic hierarchy better than simple text extraction
multi-framework documentation source detection
Medium confidenceAutomatically detects and adapts to different documentation framework conventions (Next.js, Astro, Docusaurus, VitePress, Gatsby) by identifying framework-specific directory patterns, configuration files, and content organization schemes. Uses heuristic-based framework detection (checking for framework config files like next.config.js, astro.config.mjs, docusaurus.config.js) to determine the correct source directory and content structure without requiring explicit configuration.
Implements framework-agnostic detection logic that recognizes multiple documentation generators' conventions and automatically resolves content paths, eliminating the need for manual configuration across different tech stacks
Eliminates configuration overhead compared to generic markdown processors that require explicit path specification; handles framework-specific quirks automatically
recursive directory traversal with file filtering
Medium confidenceWalks through nested directory structures starting from a detected or configured source directory, recursively discovers all markdown and MDX files, and applies filtering rules to include/exclude content based on file patterns, directory names, and metadata. Uses file system APIs with configurable glob patterns or ignore rules to skip common non-content directories (node_modules, .git, build output) and focus only on documentation source files.
Combines recursive traversal with framework-aware filtering that understands documentation site conventions (e.g., skipping build directories, node_modules) without explicit configuration
More intelligent than generic file globbing because it understands documentation project structure; faster than shell-based find commands for large trees
markdown-to-plaintext semantic conversion
Medium confidenceTransforms markdown syntax into plain text while preserving semantic meaning and document structure through strategic formatting choices. Converts markdown headers to uppercase labels with separators, converts lists to indented plain text, strips inline formatting (bold, italic) while keeping content, removes markdown-specific syntax (backticks, brackets), and preserves code blocks as indented text blocks. This approach ensures LLMs can understand content hierarchy without needing to parse markdown syntax.
Prioritizes semantic clarity for LLM consumption over markdown fidelity; uses structural formatting (uppercase headers, indentation, delimiters) instead of markdown syntax to signal document hierarchy
Better for LLM context than raw markdown (which adds parsing overhead) or naive text extraction (which loses structure); optimized for the specific use case of LLM-friendly documentation
mdx component and jsx handling
Medium confidenceProcesses MDX files containing embedded JSX components and React code by extracting text content from component props, rendering component descriptions, and handling interactive elements as plain text descriptions. Parses JSX syntax to identify component boundaries, extracts meaningful text from component children and props, and generates fallback text descriptions for components that don't have direct text equivalents (e.g., 'Interactive Code Example' for a CodeSandbox embed).
Handles MDX-specific content (React components, JSX) which generic markdown tools cannot process; extracts semantic meaning from component structures rather than treating them as unparseable syntax
Enables MDX documentation to be included in llms.txt unlike markdown-only tools; better than stripping JSX entirely because it preserves component intent through fallback descriptions
configurable output formatting and delimiters
Medium confidenceGenerates llms.txt output with customizable formatting options including configurable section delimiters, header formatting styles, content separators, and metadata inclusion. Allows users to specify how headers are formatted (e.g., '# HEADER' vs '=== HEADER ==='), what separators divide sections, whether to include file paths or metadata, and how to structure the final output. Supports multiple output format presets (compact, verbose, structured) to optimize for different LLM consumption patterns.
Provides format customization specifically for LLM consumption patterns rather than generic text formatting; includes preset formats optimized for different LLM architectures and use cases
More flexible than fixed-format tools; allows optimization for specific LLM providers unlike one-size-fits-all markdown converters
batch processing and file aggregation
Medium confidenceProcesses multiple markdown and MDX files in a single operation, aggregates their content into a unified llms.txt output, and maintains file-level organization through metadata or section markers. Reads all discovered files, parses each independently, concatenates converted content with clear file boundaries, and optionally includes file path information or table of contents to help LLMs navigate the aggregated content. Handles file ordering (alphabetical, by modification time, or custom) to ensure consistent output.
Designed specifically for documentation aggregation with awareness of file boundaries and logical organization; maintains context about source files unlike naive concatenation
More efficient than processing files individually; preserves file-level context better than simple text concatenation
npm package distribution and cli integration
Medium confidenceDistributes get-llms-txt as an npm package with a command-line interface that can be invoked directly or integrated into build scripts and CI/CD pipelines. Provides both programmatic API (for Node.js projects) and CLI commands (for shell scripts and automation), supports configuration via command-line arguments or config files, and integrates with npm scripts in package.json for automated llms.txt generation during builds or deployments.
Provides both CLI and programmatic API for maximum flexibility; integrates seamlessly with npm-based workflows and CI/CD systems through standard Node.js conventions
More accessible than standalone tools because it leverages existing npm infrastructure; easier to integrate into existing Node.js projects than external utilities
incremental generation with change detection
Medium confidenceDetects changes in source markdown files since the last llms.txt generation and optionally regenerates only affected sections or the entire file based on modification timestamps or content hashing. Tracks file modification times or computes hashes of source files to determine if regeneration is necessary, enabling faster builds by skipping unchanged documentation. Can be configured to always regenerate or to use change detection for optimization.
Implements change detection specifically for documentation generation workflows; understands that llms.txt is deterministic output that only needs regeneration when inputs change
Faster than always regenerating; more reliable than manual cache invalidation; enables efficient CI/CD integration
front matter and metadata extraction
Medium confidenceExtracts YAML or TOML front matter from markdown files (metadata like title, description, tags, date) and optionally includes this metadata in the llms.txt output or uses it to filter/organize content. Parses front matter blocks at the beginning of files, extracts key-value pairs, and can use metadata to determine file importance, ordering, or inclusion in the output. Supports filtering files based on metadata (e.g., exclude draft files, include only published content).
Leverages front matter metadata common in static site generators to enable intelligent filtering and organization of documentation; treats metadata as a first-class feature rather than optional
More sophisticated than content-only extraction because it understands editorial metadata; enables filtering and organization that plain text extraction cannot provide
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with get-llms-txt, ranked by overlap. Discovered automatically through the match graph.
llm-code-highlighter
Condense source code for LLM analysis by extracting essential highlights, utilizing a simplified version of Paul Gauthier's repomap technique from Aider Chat.
auto-md
Convert Files / Folders / GitHub Repos Into AI / LLM-ready Files
Filesystem MCP Server
Read, write, and manage local filesystem resources via MCP.
@adisuryanathanael/mcp-server-filesystem2
MCP-compatible server tool for filesystem access from https://github.com/adisuryanathan/modelcontextprotocol-servers.git
@modelcontextprotocol/server-filesystem
MCP server for filesystem access
git-mcp
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
Best For
- ✓documentation site maintainers using Next.js, Astro, Docusaurus, or VitePress
- ✓teams building AI-powered documentation assistants or chatbots
- ✓developers wanting to provide LLM context for their projects without manual curation
- ✓teams using popular static site generators for documentation
- ✓developers who want zero-configuration setup for their specific framework
- ✓documentation maintainers managing multiple projects with different tech stacks
- ✓large documentation projects with complex directory hierarchies
- ✓teams with mixed content types who need to selectively include/exclude files
Known Limitations
- ⚠No support for custom markdown extensions beyond standard CommonMark and MDX syntax
- ⚠Does not handle embedded images or binary assets — only text content extraction
- ⚠No built-in deduplication of repeated content across files
- ⚠Output file size grows linearly with documentation size; very large docs (>10MB) may exceed LLM context windows
- ⚠Only supports a predefined set of frameworks (Next.js, Astro, Docusaurus, VitePress, Gatsby); custom frameworks require manual path configuration
- ⚠Framework detection relies on presence of config files; monorepos with multiple frameworks may cause detection conflicts
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Package Details
About
Generate LLM-friendly llms.txt files from markdown and MDX content files
Categories
Alternatives to get-llms-txt
Are you the builder of get-llms-txt?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →