Quick Start β Build Your First Module
Create, configure, and run an Insolitum Universe module in under 5 minutes. Step-by-step guide from zero to working module.
Quick Start
Build your first Insolitum Universe module in 5 minutes.
Prerequisites
Before you begin, make sure you have:
- Node.js >= 18.0
- pnpm >= 8.0 (recommended) or npm
- Access to a Supabase instance (shared with Universe Shell)
- A running Universe Shell instance (for testing iframe integration)
Create a New Module
Scaffold with CLI
The fastest way to create a new module:
The CLI will ask for:
- Module name β slug format (lowercase, hyphens)
- Display name β human-readable name
- Description β short description for the marketplace
- Category β hr, iot, production, finance, analytics, ai, or other
- Supabase URL β your shared Supabase project URL
- Supabase anon key β public anonymous key
If you prefer manual setup, copy the template from templates/module-starter/ in the monorepo.
Test Health Endpoint
Verify your module is properly configured:
Expected response:
The health endpoint at /api/health is mandatory. Universe Shell uses it to monitor module status, and the marketplace validation will check it during review.
Test in Universe Shell
- Start Universe Shell on its default port
- Log in as an admin
- Go to Admin Panel β Modules
- Add a new module with URL:
http://localhost:3010 - Your module loads in the Shell's iframe with automatic authentication
The Shell sends your module an auth session via postMessage. The ShellAuthProvider in your module handles this automatically β no configuration needed.
Project Structure
After scaffolding, your module has this structure:
Adding a New Page
Create pages using Next.js App Router conventions:
Access it at http://localhost:3010/reports.
Deploy to Vercel
Push your module to a Git repository.
Create a new project on Vercel and connect the repository.
Add environment variables in Vercel project settings:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYNEXT_PUBLIC_MODULE_IDNEXT_PUBLIC_MODULE_VERSION
Deploy. Your module is now available at https://my-analytics.vercel.app.
What's Next?
- Architecture β Understand how modules work in Universe
- Authentication β Deep dive into Shell auth integration
- Database β Supabase queries with multi-tenant isolation
- Real-time Events β Subscribe to NATS events
- Marketplace β Publish your module and earn revenue
- Module Validator β Test your module before submission