- Created manifest.json for the Crawl4AI Assistant extension. - Added popup HTML, CSS, and JS files for the extension interface. - Included icons and favicon for the extension. - Implemented functionality for schema capture and code generation. - Updated index.md to reflect the availability of the new extension. - Enhanced LLM Context Builder layout and styles for consistency. - Adjusted global styles for better branding and responsiveness.
158 lines
7.4 KiB
HTML
158 lines
7.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Crawl4AI LLM Context Builder</title>
|
|
<link rel="stylesheet" href="llmtxt.css">
|
|
</head>
|
|
<body>
|
|
<div class="terminal-container">
|
|
<div class="header">
|
|
<div class="header-content">
|
|
<div class="logo-section">
|
|
<img src="../../img/favicon-32x32.png" alt="Crawl4AI Logo" class="logo">
|
|
<div>
|
|
<h1>Crawl4AI LLM Context Builder</h1>
|
|
<p class="tagline">Multi-Dimensional Context for AI Assistants</p>
|
|
</div>
|
|
</div>
|
|
<nav class="nav-links">
|
|
<a href="../../" class="nav-link">← Back to Docs</a>
|
|
<a href="../" class="nav-link">All Apps</a>
|
|
<a href="https://github.com/unclecode/crawl4ai" class="nav-link" target="_blank">GitHub</a>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<section class="intro">
|
|
<div class="intro-header">
|
|
<h2>🧠 A New Approach to LLM Context</h2>
|
|
<p>
|
|
Traditional <code>llm.txt</code> files often fail with complex libraries like Crawl4AI. They dump massive amounts of API documentation, causing <strong>information overload</strong> and <strong>lost focus</strong>. They provide the "what" but miss the crucial "how" and "why" that makes AI assistants truly helpful.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="intro-solution">
|
|
<h3>💡 The Solution: Multi-Dimensional, Modular Contexts</h3>
|
|
<p>
|
|
Inspired by modular libraries like Lodash, I've redesigned how we provide context to AI assistants. Instead of one monolithic file, Crawl4AI's documentation is organized by <strong>components</strong> and <strong>perspectives</strong>.
|
|
</p>
|
|
|
|
<div class="dimensions">
|
|
<div class="dimension">
|
|
<span class="badge memory">Memory</span>
|
|
<h4>The "What"</h4>
|
|
<p>Precise API facts, parameters, signatures, and configuration objects. Your unambiguous reference.</p>
|
|
</div>
|
|
<div class="dimension">
|
|
<span class="badge reasoning">Reasoning</span>
|
|
<h4>The "How" & "Why"</h4>
|
|
<p>Design principles, best practices, trade-offs, and workflows. Teaches AI to think like an expert.</p>
|
|
</div>
|
|
<div class="dimension">
|
|
<span class="badge examples">Examples</span>
|
|
<h4>The "Show Me"</h4>
|
|
<p>Runnable code snippets demonstrating patterns in action. Pure practical implementation.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="intro-benefits">
|
|
<p>
|
|
<strong>Why this matters:</strong> You can now give your AI assistant exactly what it needs - whether that's quick API lookups, help designing solutions, or seeing practical implementations. No more information overload, just focused, relevant context.
|
|
</p>
|
|
<p class="learn-more">
|
|
<a href="/blog/articles/llm-context-revolution" class="learn-more-link" target="_parent">📖 Read the full story behind this approach →</a>
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="builder">
|
|
<div class="special-contexts">
|
|
<h2>Quick Presets</h2>
|
|
<div class="preset-options">
|
|
<label class="preset-option">
|
|
<input type="radio" name="preset" value="vibe" id="preset-vibe">
|
|
<div class="preset-card">
|
|
<h3>🎯 Vibe Coding</h3>
|
|
<p>Curated context for general AI prompting - perfect for exploring capabilities</p>
|
|
</div>
|
|
</label>
|
|
<label class="preset-option">
|
|
<input type="radio" name="preset" value="all" id="preset-all">
|
|
<div class="preset-card">
|
|
<h3>📚 Complete Library</h3>
|
|
<p>Comprehensive context including all components and perspectives</p>
|
|
</div>
|
|
</label>
|
|
<label class="preset-option">
|
|
<input type="radio" name="preset" value="custom" id="preset-custom" checked>
|
|
<div class="preset-card">
|
|
<h3>🔧 Custom Selection</h3>
|
|
<p>Choose specific components and context types</p>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="component-selector" id="component-selector">
|
|
<h2>Select Components & Context Types</h2>
|
|
<div class="select-all-controls">
|
|
<button class="btn-small" id="select-all">Select All</button>
|
|
<button class="btn-small" id="deselect-all">Deselect All</button>
|
|
</div>
|
|
|
|
<div class="component-table-wrapper">
|
|
<table class="component-selection-table">
|
|
<thead>
|
|
<tr>
|
|
<th width="50"></th>
|
|
<th>Component</th>
|
|
<th class="clickable-header" data-type="memory">Memory</th>
|
|
<th class="clickable-header" data-type="reasoning">Reasoning</th>
|
|
<th class="clickable-header" data-type="examples">Examples</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="components-tbody">
|
|
<!-- Components will be dynamically inserted here -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="action-area">
|
|
<button class="download-btn" id="download-btn">
|
|
<span class="icon">⬇</span> Generate & Download Context
|
|
</button>
|
|
<div class="status" id="status"></div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="reference-table">
|
|
<h2>Available Context Files</h2>
|
|
<div class="table-wrapper">
|
|
<table class="context-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Component</th>
|
|
<th>Memory</th>
|
|
<th>Reasoning</th>
|
|
<th>Examples</th>
|
|
<th>Full</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="reference-table-body">
|
|
<!-- Table rows will be dynamically inserted here -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="llmtxt.js"></script>
|
|
</body>
|
|
</html> |