Libra AI: Build Web Applications Using Natural Language
An open-source platform that transforms your words into production-ready applications
What is Libra AI?
Imagine describing your next web application in plain English and watching it come to life within minutes. That’s the revolutionary promise of Libra AI – an open-source platform that turns natural language into fully functional web applications.
Built for production environments, Libra AI manages the entire application lifecycle through conversational interactions. Whether you’re building a simple landing page or a complex SaaS platform, this AI-native development environment handles everything from prototyping to enterprise deployment.
Core Capabilities
🧠 AI-Powered Development
-
Multi-model support: Choose from Claude, OpenAI, Gemini, DeepSeek and other AI engines -
Context-aware coding: Generates code that fits seamlessly into your project -
Best practices enforcement: Produces clean, maintainable code following industry standards -
Cross-platform testing: Supports multiple sandbox providers including E2B and Daytona
🛠️ Integrated Development Experience
-
Cloud-based IDE with syntax highlighting and custom plugins -
Real-time preview with hot module replacement -
Automatic dependency analysis and installation -
Version control with GitHub integration
🔗 Full-Stack Solution
-
Enterprise-grade authentication (OAuth 2.0) -
Stripe subscription management -
Cloudflare edge deployment -
End-to-end type safety with tRPC
🚀 Production Deployment
-
Serverless architecture on Cloudflare Workers -
Automatic TLS/SSL certificate management -
One-click rollbacks and version control -
Global content delivery network
Why Open Source?
Libra AI embraces open-source principles to provide:
-
Technology independence: Avoid vendor lock-in -
Architectural flexibility: Customize and extend the platform -
Community collaboration: Build collectively with global developers
Technical Architecture
Libra AI is built entirely on Cloudflare’s infrastructure. Here’s how the components work together:
Core Architecture Components
graph TD
A[User Interface] --> B(Request Dispatcher)
B --> C[AI Generation Service]
C --> D{Execution Environment}
D -->|E2B| E[Code Testing]
D -->|Daytona| E
E --> F[Build Service]
F --> G[Edge Deployment]
G --> H[Cloudflare Workers]
Technology Stack
Category | Technologies | Application |
---|---|---|
Frontend | Next.js 15, React 19, Tailwind CSS 4 | Responsive UI components |
Backend | Hono, tRPC, Zod | Edge API services |
AI Layer | AI SDK, Claude, Gemini, DeepSeek | Natural language processing |
Storage | PostgreSQL, Cloudflare D1, Hyperdrive | Data management |
Deployment | Cloudflare Workers, OpenNext | Global distribution |
Key Services
-
Authentication Hub (
apps/auth-studio
)
Manages users, organizations, permissions, and subscriptions using PostgreSQL with Neon + Hyperdrive -
Build Service (
apps/builder
)
Compiles code with Vite’s high-performance engine -
Content Delivery (
apps/cdn
)
Serves static assets through Cloudflare’s global network -
Deployment System (
apps/deploy
)
Processes deployment tasks via Cloudflare Queues -
Request Routing (
apps/dispatcher
)
Directs traffic to appropriate Worker instances
Getting Started
Choose Your Approach
🌐 Cloud-Hosted Solution (Recommended)
-
Visit libra.dev -
Register via GitHub OAuth or email -
Describe your application in natural language -
Deploy with one click
Benefits:
-
Zero configuration -
Automatic scaling -
Pre-integrated AI models -
Enterprise support
💻 Self-Hosted Solution (Developers)
# Verify system requirements
git --version # >= 2.30.0
node --version # >= 20.0.0 (recommended 24)
bun --version # >= 1.0.0
Local Setup Guide
Step 1: Clone Repository
git clone https://github.com/nextify-limited/libra.git
cd libra
bun install
Step 2: Configure Environment
cp .env.example .env
# Edit the .env file with your configuration
Step 3: Initialize Databases
# Initialize main database (PostgreSQL)
cd packages/db
bun db:generate
bun db:migrate
# Initialize auth database (D1/SQLite)
cd packages/auth
bun db:generate
bun db:migrate
Step 4: Start Services
bun dev # Start all services
# OR start individually
cd apps/web && bun dev
Step 5: Configure Stripe
stripe listen --forward-to localhost:3000/api/auth/stripe/webhook
Local Access Points
Service | URL | Function |
---|---|---|
Main Application | http://localhost:3000 | Primary interface |
Email Preview | http://localhost:3001 | Transaction notifications |
Auth Studio | http://localhost:3002 | User management |
Documentation | http://localhost:3003 | Technical reference |
CDN Service | http://localhost:3004 | Static assets |
Deployment Strategies
Self-Hosting Libra
Deploy services to Cloudflare Workers:
# Reference deployment workflows:
# .github/workflows/web.yml - Main application
# .github/workflows/cdn.yml - CDN service
# .github/workflows/deploy.yml - Deployment system
# .github/workflows/dispatcher.yml - Request router
User Project Deployment
Libra uses Cloudflare Workers for Platforms to deploy user projects:
-
Worker Isolation: Each project runs in separate Workers -
Deployment Architectures: -
Queue-based (V2): Uses Cloudflare Queues for asynchronous processing -
Workflow-based (V1): Uses Cloudflare Workflows for step orchestration
-
-
Deployment Process: -
Verify user permissions -
Create secure sandbox environment -
Synchronize project files -
Execute build commands -
Deploy via Wrangler API -
Update routing configurations
-
Hosted Platform vs. Open Source Edition
Feature | Hosted Platform | Open Source Edition |
---|---|---|
Setup Time | Minutes | Requires configuration |
AI Capabilities | Pre-configured | Requires API keys |
Customization | Limited | Full access to source |
Data Control | Managed by platform | Fully self-controlled |
Cost Model | Usage-based | Infrastructure costs |
Choosing the Right Version
Select Hosted Platform if you:
-
Need immediate productivity -
Prefer managed infrastructure -
Require enterprise support -
Value automatic updates
Choose Open Source Edition if you:
-
Require complete data control -
Need deep customization -
Have technical resources -
Operate in regulated environments
Frequently Asked Questions
Technical Implementation
How does Libra ensure code quality?
Through multiple verification layers:
-
TypeScript static type checking -
React development pattern enforcement -
Automated testing in sandbox environments -
Best practice validation
Can I add custom AI models?
Yes, the open-source version supports custom integrations:
// Example: Custom model integration
const customProvider = {
id: "my-ai",
name: "Custom AI Service",
setup: (apiKey) => { /* Connection logic */ },
generate: (prompt) => { /* Generation logic */ }
}
Commercial Use
Can I use Libra commercially?
Yes, under AGPL-3.0 license:
-
✅ Commercial use permitted -
✅ Code modifications allowed -
❌ Derivative works must be open-sourced -
💼 Commercial licenses available for proprietary use
What enterprise support is available?
We offer:
-
Private cloud deployments -
Custom feature development -
Dedicated technical support -
Service Level Agreements (SLAs) -
Security compliance consulting
Contributing to Libra
How to Participate
-
Code Contributions
git checkout -b feature/your-idea # Develop your feature git commit -m "feat: add [feature description]" git push origin feature/your-idea
-
Documentation Improvements
-
Fix documentation errors -
Add usage examples -
Translate content (files in apps/web/messages/
)
-
-
Community Support
-
Answer questions in the forum -
Report issues on GitHub -
Share your project implementations
-
Contribution Guidelines
-
Follow our Code of Conduct -
Adhere to Technical Guidelines -
Use conventional commit messages -
Provide tests for new features -
Update relevant documentation
License and Acknowledgments
Open Source License
Libra uses the AGPL-3.0 license:
-
Your Rights: -
Free use for personal and commercial projects -
Freedom to modify and distribute
-
-
Your Obligations: -
Preserve original copyright notices -
Open-source derivative works -
Share source code for network services
-
Commercial Licensing
Available for proprietary implementations. Contact: contact@libra.dev
Special Thanks
Libra AI is made possible by our technology partners:
-
Clerk – User authentication -
E2B – Secure sandbox environments -
PostHog – Application analytics -
Daytona – Development infrastructure -
Cloudflare – Edge computing platform
Experience Libra: libra.dev
Source Code: GitHub Repository
Documentation: Technical Docs
Community: Join Discussion