Skip to content

YUZU-Hub/awesome-js-libs-for-llms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ awesome-js-libs-for-llms

Curated JavaScript library documentation optimized for LLM code generation agents

Deploy License: MIT

🎯 Purpose

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.

Why This Exists

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)

πŸ“š Documentation Format

Each library has:

  1. Quick Overview - What it does, when to use it
  2. Installation - CDN links (always current)
  3. Quick Start - Copy-paste working example
  4. Common Patterns - Real-world use cases
  5. Mobile Considerations - Touch support, responsive behavior
  6. Gotchas - Common mistakes and how to avoid them
  7. Pro Tips - Best practices
  8. Resources - Links to official docs

πŸ”§ For LLM Developers

Quick Start

// 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');

System Prompt Template

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)

Tool Definitions

{
  "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.

πŸ“– Available Libraries (30)

HTTP & AJAX

  • Axios - Promise-based HTTP client

Animation

Charts & Visualization

  • Chart.js - Simple HTML5 charts
  • D3.js - Data-driven visualizations

UI Frameworks

Sliders & Carousels

Graphics & Games

Utilities & More

See full list β†’

🀝 Contributing

We welcome contributions! Here's how:

Adding a New Library

  1. Fork this repo
  2. Add metadata to docs/index.json
  3. Create documentation in docs/libraries/your-library.md
  4. Follow the template
  5. Run validation: npm run validate
  6. Submit a PR

Updating Existing Documentation

  1. Edit the markdown file in docs/libraries/
  2. Update version in docs/index.json if needed
  3. Run validation
  4. Submit a PR

Documentation Guidelines

  • 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.

πŸ”„ Automation

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

πŸ“Š Project Stats

  • 30 libraries documented
  • 20+ categories
  • 100% CDN link validation
  • Auto-updated weekly
  • MIT Licensed

🌟 Who Uses This?

  • AI code generation agents (Claude, GPT-4, etc.)
  • Developer tools with AI features
  • Code completion engines
  • Educational platforms
  • Any tool that generates JavaScript code

πŸ”— Resources

πŸ“œ License

MIT License - see LICENSE for details

πŸ™ Acknowledgments

  • All the amazing library maintainers
  • CDN providers (jsDelivr, unpkg, Cloudflare)
  • Contributors who keep docs updated

πŸ’¬ Community


Made with ❀️ for the AI code generation community

If this helped your project, give it a ⭐ to help others discover it!

About

This project aims to be the definitive resource for LLM code generation with JavaScript libraries.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors