Lobable is a premium developer workspace designed to build, run, and modify Next.js applications dynamically in isolated E2B sandboxes using AI agents.
Version 1.0 establishes full-stack integration for user authentication, project persistence, dynamic sandbox orchestration, and historical chat restoration.
- Provider Integration: Instantiates models via OpenAI or Groq dynamically.
- Stateless Sub-Agents: Main agent parses user inputs and spawns targeted sub-agents for writing files, reading code, or executing terminal commands.
- Isolated Containers: Each project gets a clean, sandboxed Next.js container environment.
- Lifecycle Persistence: Supports reconnecting to active container sessions dynamically via stored
sandboxIdkeys.
- User Accounts: Encrypted credentials storage with password hashing (
bcryptjs) and signed sessions (jsonwebtoken). - Workspace Archiving: Persists projects, conversations, and message logs (
USERandASSISTANTrecords) inside PostgreSQL.
- Zustand Auth Store: Manages current user profiles, session tokens, and local storage syncer hooks.
- Zustand Project Store: Manages active workspaces, scrollable project listings, historical chat restoration, and build status.
- Dashboard Sidebar: Premium glassmorphic side navigation for navigating previous workspaces, initiating new apps, and managing profile logouts.
- Schema-Validated Forms: Login and registration views validated via
react-hook-formandzodresolving.
graph TD
Client[Frontend App] -->|v1/api/auth| Auth[Auth Routes]
Client -->|v1/api/project| Project[Project Routes]
Client -->|v1/api/agent| Agent[Agent Routes]
Auth -->|Credentials Check| DB[(PostgreSQL Database)]
Project -->|Fetch Workspaces & Logs| DB
Agent -->|Record Messages & Project| DB
Agent -->|Spin-up / Reconnect| E2B[E2B Sandbox Container]
Ensure PostgreSQL is running locally, then initialize the database schema in the backend/ workspace:
bunx prisma migrate dev
bunx prisma generateConfigure .env in backend/:
DATABASE_URL="postgresql://user:pass@localhost:5432/lobable"
JWT_SECRET="your-jwt-signing-secret"
OPENAI_API_KEY="your-openai-api-key"
GROQ_API_KEY="your-groq-api-key"
E2B_API_KEY="your-e2b-api-key"Run the backend server:
cd backend
bun run devRun the frontend workspace:
cd frontend
bun run devNavigate to http://localhost:3000 to start creating workspaces.