AHGUIAHUIAHUIA
Documentation website for the @falai/agent framework - Build intelligent, conversational AI agents with TypeScript.
- ✨ Automated Content Generation: Automatically fetches and renders documentation from
@falai/agentpackage - 📚 Documentation Pages: All docs from the package's
/docsfolder rendered with syntax highlighting - 💻 Live Examples: Interactive code examples from the package's
/examplesfolder - 🎨 Modern UI: Beautiful, responsive design with dark theme
- ⚡ Fast Performance: Built with Vite + React for lightning-fast development and builds
- 🔍 Type-Safe: Full TypeScript support throughout
- Framework: React 19 + TypeScript
- Build Tool: Vite 7
- Package Manager: Bun
- Routing: React Router v7
- Markdown Rendering: react-markdown with remark-gfm
- Syntax Highlighting: rehype-highlight with highlight.js
- Linting: ESLint with TypeScript support
- Bun 1.0+ (recommended) or Node.js 18+
- The
@falai/agentpackage is automatically included as a dependency
# Clone the repository
git clone <your-repo-url>
cd falai-site
# Install dependencies
bun install# Start development server (includes metadata generation)
bun run devThe site will be available at http://localhost:5173
# Build the site
bun run build
# Preview the production build
bun run preview# Generate content metadata from @falai/agent package
bun run generate:metadata
# Run type checking
bun run typecheck
# Run linter
bun run lintfalai-site/
├── scripts/
│ └── generate-content-metadata.ts # Generates metadata from @falai/agent package
├── src/
│ ├── components/
│ │ ├── CodeViewer.tsx # Renders code examples
│ │ ├── Header.tsx # Site header with navigation
│ │ ├── Layout.tsx # Main layout wrapper
│ │ ├── MarkdownViewer.tsx # Renders markdown documentation
│ │ └── Sidebar.tsx # Sidebar navigation
│ ├── pages/
│ │ ├── DocPage.tsx # Individual documentation page
│ │ ├── ExamplePage.tsx # Individual example page
│ │ └── HomePage.tsx # Landing page with README
│ ├── App.tsx # Main app component with routing
│ ├── App.css # Global styles
│ └── content-metadata.json # Auto-generated metadata
├── vite.config.ts # Vite configuration
└── package.json
- Metadata Generation: The
generate-content-metadata.tsscript scans the@falai/agentpackage for documentation and examples - Static Content Copy: Vite plugin copies markdown and code files to the build output
- Dynamic Routing: React Router creates routes for all docs and examples based on metadata
- Runtime Fetching: Content is fetched at runtime and rendered with syntax highlighting
The site uses CSS custom properties (CSS variables) for easy theming. Edit src/App.css to customize:
:root {
--bg-primary: #0a0a0b;
--accent-primary: #6366f1;
/* ... more variables */
}The documentation content is automatically sourced from the @falai/agent package. To update:
- Update the
@falai/agentpackage version inpackage.json - Run
bun install - Run
bun run generate:metadatato update metadata - Build or start dev server
The site is a static SPA that can be deployed to any static hosting service:
- Vercel: Connect your repository and deploy automatically
- Netlify: Same as Vercel, with automatic builds
- GitHub Pages: Deploy the
distfolder - Cloudflare Pages: Connect and deploy
The dist folder contains:
- Static HTML, CSS, and JS
/content/directory with all markdown and code files- Optimized and minified assets
MIT © 2025
Built with ❤️ for the @falai/agent community