⚡ Fast. Secure. Bun-powered. Built for performance with unmatched DX.
A backend foundation that can be deployed to any provider — with no vendor, platform, or database lock-in.
YAE Backend is the powerhouse behind your AI VTuber companion. Built with Bun for blazing-fast performance, this backend handles all the heavy lifting — from API routes to audio processing — while keeping developer experience at its core.
- ⚡ Bun Runtime — Lightning-fast JavaScript/TypeScript execution
- 🐳 Docker-Ready — One-command deployment to any platform
- 🔒 Security-First — Built with best practices from the ground up
- 🎯 Developer Experience — Clean code, clear docs, quick setup
| Tool | Description | Installation |
|---|---|---|
| Bun | JavaScript runtime & toolkit | Install Bun |
| Git | Version control | Install Git |
| Docker | Container deployment | Get Docker |
| Bruno | Local-first, Git-native API client | Bruno |
# Clone the repository
git clone https://github.com/OuOSama/YAE-BACKEND.git backend
# Navigate to project folder
cd backend
# Install dependencies (it's literally that fast)
bun install
# Start development server
bun run devThat's it! Your backend is now running. We're so back. 🎯
backend/
├── docs/
│ └── systems/ # System-specific documentation
├── src/
│ ├── modules/ # API endpoints, Business logic
│ ├── types/ # Types
│ ├── app.ts # Entry point
│ └── index.ts # Cluster mode
├── Dockerfile # Container configuration
├── package.json # Bun dependencies
└── README.md # You are here!
Detailed documentation for each system is available in the docs folder:
- 🔌 API Reference — API endpoint documentation
- 💻 Systems — System architecture & README
- 📚 Resources — Shared resources & references
💡 Tip: Start with the system docs that match your use case!
Deploy to your favorite platforms with ease using our included Dockerfile.
| Platform | Guide | Best For |
|---|---|---|
| 🚂 Railway | Docker Guide | Quick deploys, auto-scaling |
| ⚡ Render | Docker Guide | Free tier, simple setup |
| 🌊 Fly.io | Deploy Guide | Edge deployment, global |
| ☁️ AWS | ECS Guide | Enterprise, scalability |
# Build the image
docker build -t yae-backend .
# Run the container
docker run -p 3001:3001 yae-backend
Create a .env file in the root directory:
# Server Configuration
PORT=3001
NODE_ENV=production
# vLLM endpoint for our LLM & EMB
VLLM_LLM_URL = http://localhost:8000/v1
VLLM_EMB_URL = http://localhost:8001/v1
# Start development server with hot reload
bun run dev
# Run tests
bun test
# Lint & Format code
bun run check
# Run all tests
bun test
- Redis caching layer
- GraphQL API option
- Rate limiting middleware
- Automated CI/CD pipelines
- Performance monitoring dashboard
- Multi-language support
- Web Dashboard management (Next.Js) YAE-Dashboard?
We'd love your contributions to make YAE Backend even more powerful!
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'feat: add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- Follow the existing code style
- Write tests for new features
- Update documentation as needed
- Keep commits atomic and meaningful
Issue: Bun installation fails
- Fix: Make sure you're on a supported platform (macOS, Linux, WSL2)
- Fix: Try the manual installation method from bun.sh
Issue: Port already in use
- Fix: Change the
PORTin your.env.local/.envfile - Fix: Kill the process using the port:
lsof -ti:3001 | xargs kill
Issue: Docker build fails
- Fix: Ensure Docker daemon is running
- Fix: Check Dockerfile syntax and build context
Built with love and powered by amazing open-source projects:
- Bun — The all-in-one JavaScript runtime
- Lavalink — Audio delivery for Discord
- n8n — Workflow automation platform
- The VTuber dev community for endless inspiration ✨
This project is licensed under the MIT License — see the LICENSE file for details.
You're free to use, modify, and distribute this project. Just don't be cringe about it. 💜
Created with 💜 by OuOSama
Part of the YAE-AI ecosystem:
- YAE-AI — Frontend AI VTuber framework
- YAE-BACKEND — You are here!
- YAE-BOT — Yae Discord Bot
Made with 💜 for the VTuber and developer community
Stay based, stay creative ✨