Transform any documentation into AI-friendly formats with one click.
A powerful browser extension that detects documentation websites and provides instant export to AI-optimized formats including Markdown, llms.txt, and plain text. Seamlessly integrates with ChatGPT, Claude, Cursor, and VS Code.
AI Docs Copier solves a daily pain point for developers: copying documentation into AI tools for analysis and questions. Instead of manually copying, formatting, and cleaning up docs, this extension:
- Automatically detects documentation sites using intelligent multi-strategy detection
- Extracts clean content using Mozilla's Readability algorithm with smart fallbacks
- Converts to AI-friendly formats including Markdown, llms.txt, and plain text
- Opens directly in AI platforms like ChatGPT and Claude with pre-filled prompts
- Integrates with IDEs via Cursor and VS Code deeplinks
Uses 5 detection strategies to identify documentation sites:
- Meta tag platform detection (Docusaurus, Sphinx, GitBook, MkDocs, Jekyll, Hugo)
- URL pattern analysis (
/docs/,/api/,/guide/, etc.) - DOM structure recognition (sidebars, TOCs, navigation patterns)
- Content analysis (headings and titles)
- llms.txt file presence detection
- Markdown: Clean, LLM-ready markdown with proper formatting
- llms.txt: Structured index format for AI consumption (following llmstxt.org spec)
- Plain Text: Simple text extraction for lightweight use
- ChatGPT: One-click open with GPT-4o and pre-filled context
- Claude: Direct integration with pre-filled prompts
- Cursor IDE: Deeplink support for immediate editing
- VS Code: Deeplink integration for developer workflows
- Primary: Mozilla Readability.js for article/documentation extraction
- Fallback: CSS selector matching for 15+ documentation platforms
- Ultimate Fallback: Sanitized body content extraction
- Security: All content sanitized with DOMPurify
- 2-day free trial (no payment required)
- Subscription management via chrome.storage.sync
- Access control for premium features
- Upgrade prompts with clear pricing
- Framework: React 19 + TypeScript
- Build Tool: Vite 6 with Turborepo monorepo
- Styling: Tailwind CSS 3
- Browser: Manifest V3 for Chrome/Edge/Brave/Opera
- Content Extraction: @mozilla/readability + DOMPurify
- Markdown Conversion: Turndown.js with GFM plugin
ai-docs-copier/
βββ chrome-extension/ # Extension manifest and background scripts
β βββ manifest.ts # Manifest V3 configuration
β βββ src/background/ # Service worker
βββ pages/ # Extension pages
β βββ content-ui/ # Floating button and export menu
β βββ popup/ # Extension popup
β βββ options/ # Settings page
βββ packages/ # Shared packages
β βββ shared/ # Core business logic
β β βββ lib/ai-integrations.ts
β β βββ lib/content-extractor.ts
β β βββ lib/docs-detector.ts
β β βββ lib/markdown-converter.ts
β β βββ lib/llms-txt-generator.ts
β β βββ lib/mcp-registry.ts
β β βββ lib/subscription.ts
β βββ storage/ # Chrome storage helpers
β βββ ui/ # Shared UI components
β βββ hmr/ # Hot module reload
βββ dist/ # Built extension (load in browser)
- Node.js >= 22.15.1
- pnpm 10.11.0 (install with
npm install -g pnpm) - Chrome, Edge, Brave, or any Chromium-based browser
-
Clone the repository
git clone https://github.com/OthmanAdi/ai-docs-copier.git cd ai-docs-copier -
Install dependencies
pnpm install
-
Run development build
pnpm dev
-
Load in browser
- Open Chrome and navigate to
chrome://extensions - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
distdirectory from this project
- Open Chrome and navigate to
pnpm build # For Chrome/Edge
pnpm build:firefox # For Firefoxpnpm zip # Creates extension-YYYYMMDD-HHmmss.zip in dist-zip/- Navigate to any documentation site (e.g., docs.langchain.com, react.dev, docs.python.org)
- Click the floating "Copy for AI" button that appears in the bottom right
- Choose your export option:
- Copy as Markdown/llms.txt/Plain Text
- Open directly in ChatGPT or Claude
- Or right-click anywhere on the page and use the "AI Docs Copier" context menu
# For root
pnpm i <package> -w
# For specific module
pnpm i <package> -F <module-name>pnpm update-version 1.2.0See packages/env/README.md for environment variable configuration.
Enable/disable extension features:
pnpm module-manager- @mozilla/readability - Content extraction engine
- turndown - HTML to Markdown conversion
- turndown-plugin-gfm - GitHub Flavored Markdown support
- dompurify - HTML sanitization
- react - UI framework
- tailwindcss - Styling
- Smart documentation detection
- Multi-format export (Markdown, llms.txt, plain text)
- AI platform integration (ChatGPT, Claude)
- Floating UI with export menu
- Context menu integration
- Trial system implementation
- Preview dialog before copying
- Copy history explorer
- MCP server installation UI
- Cloud library with AI organization
- User accounts and cross-device sync
- Custom export templates
- Firefox and Safari support
This project is open source with a dual licensing approach:
- Free Version: Open source repository for developers and community
- Paid Version: Chrome Web Store with 2-day free trial, then monthly/yearly subscription
This model builds trust through transparency while sustaining development.
Contributions are welcome! This is an early-stage project, and we're open to:
- Bug reports and fixes
- Feature suggestions
- Documentation improvements
- Code quality enhancements
Please open an issue first to discuss major changes.
MIT License - See LICENSE file for details.
Ahmad Othman Ammar Adi (Othman Adi)
Full Stack Developer, AI Agents Orchestrator, and passionate educator from Hama, Syria β now based in Berlin, Germany.
- π Education: Completed apprenticeship in Computer Science
- π¨βπ« Teaching: 8,000+ documented teaching lectures since 2020
- π Formats: Workshops (days to weeks), intensive courses (2-6 months), and long-term programs including multi-year weekend coding classes for kids
- πΌ Current Role: AI Agents Orchestrator at migRaven
Connect:
- π Website: othmanadi.com
- πΌ LinkedIn: codingwithadi
- π GitHub: OthmanAdi
Made with β€οΈ for developers who live in documentation