Curated JavaScript library documentation optimized for LLM code generation agents
This project provides LLM-optimized documentation for 30 popular JavaScript libraries commonly used in web development. Unlike standard documentation, this is specifically designed for consumption by AI code generation agents like Claude, GPT-4, and others.
LLMs often:
- β Generate outdated code (wrong CDN links, old API syntax)
- β Hallucinate methods that don't exist
- β Miss mobile-specific considerations
- β Don't know the latest library versions
This project solves these problems by providing:
- β Always up-to-date CDN links
- β Copy-paste ready code examples
- β Mobile-first best practices
- β Common gotchas highlighted
- β Consistent format across all libraries
- β Token-efficient documentation (500-2000 tokens per library)
Each library has:
- Quick Overview - What it does, when to use it
- Installation - CDN links (always current)
- Quick Start - Copy-paste working example
- Common Patterns - Real-world use cases
- Mobile Considerations - Touch support, responsive behavior
- Gotchas - Common mistakes and how to avoid them
- Pro Tips - Best practices
- Resources - Links to official docs
// Install the client
const client = new LibraryDocsClient({
baseUrl: 'https://yuzu-hub.github.io/awesome-js-libs-for-llms'
});
// Initialize at app startup (loads library index)
await client.init();
// Get minimal table for system prompt (20 top libraries)
const promptTable = client.getPromptTable({ limit: 20 });
// When LLM needs specific docs
const axiosDocs = await client.getDocs('axios');You are a code generator with access to 30 JavaScript libraries.
## Available Libraries
${client.getPromptTable({ limit: 20 })}
For detailed documentation, use: get_library_docs(library_id)
For library search, use: search_libraries(query){
"name": "get_library_docs",
"description": "Get detailed documentation for a JavaScript library",
"parameters": {
"library_id": "string (e.g., 'axios', 'chart-js')"
}
}See integration guide for complete setup.
- Axios - Promise-based HTTP client
- GSAP - Professional animation library
- Anime.js - Lightweight animation
- Lottie - After Effects animations
- AOS - Animate on scroll
- ScrollReveal - Scroll animations
- Bootstrap - CSS framework
- Alpine.js - Lightweight reactive
- Framework7 - Mobile UI framework
- Three.js - 3D graphics (WebGL)
- Babylon.js - 3D game engine
- PixiJS - 2D rendering
- Phaser - 2D game framework
- Matter.js - 2D physics engine
- jQuery - DOM manipulation
- Lodash - Utility functions
- Popper.js - Tooltip positioning
- Hammer.js - Touch gestures
- Leaflet - Mobile-friendly maps
- SweetAlert2 - Beautiful popups
- Moment.js - Date handling
- Howler.js - Audio playback
- LocalForage - Offline storage
- Supabase JS - Backend client
- SIP.js - WebRTC VoIP
- Workbox - PWA service workers
We welcome contributions! Here's how:
- Fork this repo
- Add metadata to
docs/index.json - Create documentation in
docs/libraries/your-library.md - Follow the template
- Run validation:
npm run validate - Submit a PR
- Edit the markdown file in
docs/libraries/ - Update version in
docs/index.jsonif needed - Run validation
- Submit a PR
- Be concise - 500-2000 tokens per library
- Include working examples - Copy-paste ready
- Highlight gotchas - Common mistakes
- Mobile-first - Always mention mobile considerations
- Keep it current - Latest version and syntax
See CONTRIBUTING.md for detailed guidelines.
This project includes automated workflows:
- β Deploy on merge - Auto-deploys to GitHub Pages
- β Validation on PR - Checks schemas, links, format
- β Weekly version check - Monitors for library updates
- β Monthly link check - Verifies all CDNs are alive
- 30 libraries documented
- 20+ categories
- 100% CDN link validation
- Auto-updated weekly
- MIT Licensed
- AI code generation agents (Claude, GPT-4, etc.)
- Developer tools with AI features
- Code completion engines
- Educational platforms
- Any tool that generates JavaScript code
- Live Documentation: https://yuzu-hub.github.io/awesome-js-libs-for-llms/
- API Endpoint:
https://yuzu-hub.github.io/awesome-js-libs-for-llms/index.json
MIT License - see LICENSE for details
- All the amazing library maintainers
- CDN providers (jsDelivr, unpkg, Cloudflare)
- Contributors who keep docs updated
- Issues: Report bugs or request libraries
- Discussions: Ask questions or share ideas
- Twitter: @stefanlh
Made with β€οΈ for the AI code generation community
If this helped your project, give it a β to help others discover it!