Bubble Lab is an AI-native workflow automation platform built for developers who need full control, transparency, and type safety. Unlike traditional workflow builders that lock you into proprietary JSON nodes, Bubble Lab compiles everything into clean, production-ready TypeScript that you can own, debug, and deploy anywhere.
Key Features:
- Prompt to Workflow: Describe what you want in natural language, and Pearl (our AI Assistant) instantly generates working workflows using our composable bubble system (integrations, tools, and logic nodes)
- Full Observability: Built-in execution tracing with detailed logs, token usage tracking, and performance metrics. Debug with complete visibility into every step
- Import from n8n: Migrate existing workflows seamlessly. We automatically translate n8n JSON into our bubble architecture
- Export as TypeScript: Own your workflows completely. Export clean, production-ready code that runs anywhere—integrate with your codebase, CI/CD pipelines, and existing infrastructure
The quickest way to get started with BubbleLab is through our hosted Bubble Studio:
Benefits:
- No setup required - start building immediately
- Visual flow builder with drag-and-drop interface
- Export your flows to run on your own backend
- Free AI credits
In addition, you can try Bubble Studio in two command, locally (not suited for production):
Get started with BubbleLab in seconds using our CLI tool:
This will scaffold a new BubbleLab project with:
- Pre-configured TypeScript setup with core packages and run time installed
- Sample templates (basic, reddit-scraper, etc.) you can choose
- All necessary dependencies
- Ready-to-run example workflows you fully control, customize
Next steps after creation:
Let's look at what BubbleFlow code actually looks like using the reddit-scraper template:
The Flow (reddit-news-flow.ts) - Just ~50 lines of clean TypeScript:
What happens when you run it:
What's happening under the hood:
- RedditScrapeTool scrapes 10 hot posts from r/worldnews
- AIAgentBubble (using Google Gemini) analyzes the posts
- Returns structured JSON with summary, themes, and metadata
- Detailed execution stats show performance and token usage
Key Features:
- Type-safe - Full TypeScript support with proper interfaces
- Simple - Just chain "Bubbles" (tools/nodes) together with .action()
- Observable - Built-in logging shows exactly what's executing
- Production-ready - Error handling, metrics, and performance tracking included
Learn how to use each bubble node and build powerful workflows:
👉 Visit BubbleLab Documentation
The documentation includes:
- Detailed guides for each node type
- Workflow building tutorials
- API references
- Best practices and examples
BubbleLab is built on a modular architecture with the following core packages:
- @bubblelab/bubble-core - Core AI workflow engine
- @bubblelab/bubble-runtime - Runtime execution environment
- @bubblelab/shared-schemas - Common type definitions and schemas
- @bubblelab/ts-scope-manager - TypeScript scope analysis utilities
- create-bubblelab-app - Quick start with bubble lab runtime
- bubble-studio - Visual workflow builder (React + Vite)
- bubblelab-api - Backend API for flow storage and execution (Bun + Hono)
- Bun - Required for running the backend API server
- pnpm - Package manager for monorepo management
- Node.js - v18 or higher
Run Bubble Studio locally in 2 commands:
That's it! The setup script automatically:
- ✅ Creates .env files from examples
- ✅ Configures dev mode (no auth required)
- ✅ Sets up SQLite database
- ✅ Builds core packages
- ✅ Starts both frontend and backend
Open http://localhost:3000 and start building workflows!
- Frontend: http://localhost:3000 (Bubble Studio)
- Backend: http://localhost:3001 (API Server)
By default, the app runs in development mode with:
- 🔓 No authentication required - Uses mock user [email protected]
- 💾 SQLite database - Auto-created at apps/bubblelab-api/dev.db
- 🎯 Auto-seeded dev user - Backend creates the user automatically
To run with real authentication:
- Get your Clerk keys at clerk.com
- Update .env files:
Frontend (apps/bubble-studio/.env):
Backend (apps/bubblelab-api/.env):
- Restart with pnpm run dev
The setup script creates these files with sensible defaults:
apps/bubble-studio/.env:
apps/bubblelab-api/.env:
The following API keys are optional but enable specific features. Add them to apps/bubblelab-api/.env:
Note: AI-powered flow generation requires both GOOGLE_API_KEY and OPENROUTER_API_KEY to be configured. Without these, you can still use Bubble Studio to manually build workflows, but the AI assistant features will be unavailable.
Documentation for contributing to BubbleLab and self-hosting the platform is coming soon!
In the meantime, feel free to:
- Explore the source code
- Open issues for bugs or feature requests about Bubble Studio or add more bubbles
- Submit pull requests
- Join our Discord community for discussions and support
Apache 2.0
.png)



