Build production-ready applications visually in minutes, not weeks.
Getting Started β’ Documentation β’ Examples β’ Contributing
Capsulas is an open-source visual development framework that lets you build complete applications by connecting pre-built, type-safe modulesβjust like WordPress plugins, but for any type of app.
Building modern apps requires:
- β Weeks of boilerplate code
- β Complex API integrations
- β Repetitive authentication logic
- β Database setup and migrations
- β Deployment configuration
- β Type safety across services
Result: 2-4 weeks just to build an MVP.
# Clone and build (npm package coming soon)
git clone https://github.com/hublabdev/capsulas-framework.git
cd capsulas-framework
npm install && npm run build
# Use a template
cd examples/saas-starter
npm install
node index.jsResult: Production app running in 5 minutes. β‘
|
Drag, drop, and connect modules in our n8n-style editor. No more boilerplate. |
Full TypeScript support. Connections are validated at compile-time. |
Generates clean TypeScript you own. No vendor lock-in. Deploy anywhere. |
|
Auth, databases, AI, payments, email, and more. Batteries included. |
Deploy to Vercel, Railway, AWS, or anywhere with a single command. |
MIT licensed. Built by the community, for the community. |
| Feature | Capsulas | n8n | Zapier | Bubble | Retool |
|---|---|---|---|---|---|
| Visual Builder | β | β | β | β | β |
| Generates Code | β | β | β | β | β |
| Type Safety | β | β | β | β | |
| Self-Hosted | β | β | β | β | |
| Own the Code | β | β | β | β | β |
| Open Source | β | β | β | β | |
| Pricing | Free | Free/Paid | Paid | Paid | Paid |
# Clone the repository
git clone https://github.com/hublabdev/capsulas-framework.git
cd capsulas-framework
# Install dependencies
npm install
# Build all packages
npm run build
# Run tests (500 tests passing)
npm testChoose a template to get started:
cd examples/saas-starter
npm install
node index.jsFeatures:
- β JWT Authentication (register/login)
- β PostgreSQL Database
- β Stripe Subscriptions ($29/$99/$299 plans)
- β Email Notifications
- β Redis Cache
- β Complete demo included
cd examples/ecommerce-store
npm install
node index.jsFeatures:
- β Product Catalog with Search
- β Shopping Cart Management
- β Stripe Checkout Integration
- β Order Processing
- β Email Confirmations
- β File Uploads
- jwt-auth - JWT token-based authentication
- oauth - OAuth 2.0 (Google, GitHub, Facebook, Twitter, Microsoft, LinkedIn)
- database - SQL/NoSQL databases (PostgreSQL, MongoDB, MySQL, SQLite)
- cache - Caching (Redis, Memory)
- storage - File storage (S3, Google Cloud Storage, Azure, Cloudflare R2)
- ai-chat - Chat completions (OpenAI, Anthropic, Llama)
- email - Email sending (SendGrid, Resend, Nodemailer)
- notifications - Multi-channel notifications (Email, Push, SMS, Slack)
- websocket - Real-time WebSocket connections
- payments - Payment processing (Stripe, PayPal, Square, Braintree)
- queue - Job queues with retry logic
- http - HTTP client with retries
- form-builder - Dynamic form generation
- theme - Theme management (light/dark/system)
- router - Client-side routing (Hash, History, Memory)
- state - State management (Redux-style)
- validator - Input validation (Zod, Yup, Joi)
- logger - Structured logging (Winston, Pino, Bunyan)
- encryption - Data encryption (AES, RSA)
- file-upload - File upload handling
- geolocation - Geolocation services
- i18n - Internationalization
- analytics - Analytics (Google Analytics, Mixpanel, Segment)
Complete SaaS application with authentication, billing, and database.
const { initialize, registerUser, subscribeToPlan } = require('./examples/saas-starter');
await initialize();
// Register new user with 14-day trial
const user = await registerUser({
email: 'user@example.com',
password: 'SecurePass123!',
name: 'John Doe',
company: 'Acme Inc'
});
// Subscribe to Pro plan ($99/month)
await subscribeToPlan(user.id, 'pro');Use Cases:
- SaaS products
- Subscription services
- B2B platforms
- Member portals
Complete online store with products, cart, and checkout.
const { initialize, createProduct, addToCart, createCheckout } = require('./examples/ecommerce-store');
await initialize();
// Create a product
const product = await createProduct({
name: 'Wireless Headphones',
price: 99.99,
stock: 50
});
// Add to cart and checkout
await addToCart('session-123', product.id, 2);
const checkout = await createCheckout('session-123', 'customer@example.com');Use Cases:
- Online stores
- Marketplaces
- Digital products
- Physical goods
This is a monorepo containing:
- @capsulas/core - Core types, validators, and execution engine
- @capsulas/cli - Command-line interface
- @capsulas/web - Visual flow editor
- @capsulas/capsules - Official capsules library (23 capsules)
- @capsulas/desktop - Electron desktop app
- tools/ - Migration and development tools
- Node.js >= 18.0.0
- npm >= 9.0.0
# Clone repository
git clone https://github.com/hublabdev/capsulas-framework.git
cd capsulas-framework
# Install dependencies
npm install
# Build all packages
npm run build
# Run tests
npm test
# Start visual editor
cd packages/web
node server.cjs
# Open http://localhost:3050# Run all tests (500 tests)
npm test
# Run specific test file
npm test -- packages/capsules/src/database/__tests__/service.test.ts
# Watch mode
npm test -- --watchcd examples/saas-starter
npm install -g vercel
vercelFROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
CMD ["node", "index.js"]See our Deployment Guide for platform-specific instructions.
- Getting Started - Build your first app in 10 minutes
- Documentation Home - Complete documentation
- Deployment Guide - Deploy to any platform
- AI Assistant Guide - For AI-powered development
- FAQ - Frequently asked questions
We love contributions! Capsulas is built by the community.
- π Report bugs
- π‘ Request features
- π Improve docs
- π§© Create new capsules
- π» Submit PRs
- 23 Capsules - Production-ready modules
- 500 Tests - 100% passing
- 290 Files - Clean, organized codebase
- TypeScript - Full type safety
- MIT License - Free forever
- π¬ Discord (coming soon)
- π§ Email: info@hublab.dev
- π GitHub Issues
- π Documentation
MIT Β© hublab.dev
See LICENSE for more information.
Built with:
- TypeScript
- Node.js
- Vitest
- And the amazing open-source community
Made with β€οΈ by the Capsulas community
Get Started β’ View Examples β’ Read Docs