Official website and documentation for UnifyRoute - an open-source, self-hosted gateway for routing requests across multiple LLM providers.
The website includes:
- π Landing Page - Homepage with features, quickstart, and use cases
- π Documentation - Comprehensive guides including:
- Getting Started
- Architecture & Design
- API Reference
- CLI Commands
- Configuration Guide
- Deployment Instructions
- Troubleshooting
- β¨ Features Page - Detailed feature descriptions
- π Dark/Light Mode - Full theme support with system preference detection
- π Full-Text Search - Lunr.js powered search across all content
- Hugo 0.100+ (extended version recommended)
- Python 3.7+ (for search index generation)
- Node.js 14+ (optional, for CSS/JS preprocessing)
-
Clone the repository
git clone https://github.com/unifyroute/UnifyRoute.git cd UnifyRoute/website # or UnifyRouteWeb
-
Start development server
hugo server -D # Website will be available at http://localhost:1313 -
View in browser
- Open http://localhost:1313
- Changes are live-reloaded
-
Run build script
chmod +x build.sh ./build.sh
Or use Hugo directly:
hugo --minify
-
Output
- Generated files are in the
public/directory - Ready for deployment
- Generated files are in the
.
βββ config.toml # Hugo configuration
βββ content/ # Content files
β βββ _index.md # Homepage
β βββ features.md # Features page
β βββ docs/ # Documentation
β βββ _index.md # Docs homepage
β βββ getting-started.md
β βββ architecture.md
β βββ api-reference.md
β βββ cli.md
β βββ configuration.md
β βββ deployment.md
β βββ troubleshooting.md
βββ themes/
β βββ unifyroute/ # Custom theme
β βββ layouts/ # Template files
β βββ assets/ # CSS and JavaScript
β βββ static/ # Static assets
βββ static/
β βββ images/ # Logos and images
βββ build.sh # Build script
βββ README.md # This file
Edit theme color variables in themes/unifyroute/assets/css/style.css:
:root {
--primary-color: #4d4d4d; /* Dark gray */
--accent-color: #f25221; /* Orange */
/* ... other variables ... */
}Edit menu items in config.toml:
[[menu.main]]
name = "Features"
url = "/features/"
weight = 1Place logos in static/images/:
logo.png- Header logofavicon.png- Faviconlogo-space.png- Homepage hero image
Edit markdown files in content/ directory. Hugo supports:
- Markdown with front matter
- YAML configuration
- Custom shortcodes
-
Build the site:
./build.sh
-
Deploy
public/folder to your hosting platform -
Configure DNS and HTTPS
server {
listen 80;
server_name unifyroute.example.com;
root /var/www/unifyroute;
index index.html;
location / {
try_files $uri $uri/ =404;
}
# Cache static assets
location ~* \.(js|css|png|jpg|svg|woff|woff2)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
}<VirtualHost *:80>
ServerName unifyroute.example.com
DocumentRoot /var/www/unifyroute
<Directory /var/www/unifyroute>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
</Directory>
</VirtualHost># Using Let's Encrypt with Certbot
sudo certbot certonly --webroot -w /var/www/unifyroute -d unifyroute.example.comThe website automatically:
- Detects system preference (
prefers-color-scheme) - Loads saved user preference from localStorage
- Provides a manual toggle button
JavaScript code in themes/unifyroute/assets/js/theme.js manages theme switching.
Search is powered by Lunr.js:
- Searches across all page titles and content
- Fuzzy matching support
- Results updated as user types
- Search data built during site generation
Search index is auto-generated in public/search-index.json
The site is optimized for speed:
- Static HTML output (no server-side processing)
- Minified CSS and JavaScript
- Image optimization
- Lazy loading support
- CDN-friendly structure
Lighthouse scores:
- Performance: 90+
- Accessibility: 95+
- Best Practices: 95+
- SEO: 100
To add analytics:
-
Add to
config.toml:[params] googleAnalytics = "G-XXXXXXXXXX"
-
Analytics code will be automatically included in production builds
# Install Hugo
brew install hugo # macOS
choco install hugo # Windows
apt-get install hugo # Linux# Check Hugo version
hugo version
# Should be 0.100+
# Validate config
hugo config# Check theme path
ls -la themes/unifyroute
# Reinstall theme
rm -rf themes/unifyroute
git clone <theme-repo> themes/unifyrouteContributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally
- Submit a pull request
This website is part of the UnifyRoute project and is licensed under the Apache License 2.0.
See LICENSE for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Discord: Join our Discord
- Twitter: @unifyroute
- Main Project: UnifyRoute GitHub
- Documentation: Available on the website
- Community: Join our Discord (link on website)
Built with β€οΈ for the community. UnifyRoute - Smart LLM Routing.