GrowthOS is a complete runnable TypeScript starter implementation for a reusable growth operating layer.
It handles:
- Lead capture and lifecycle management
- Lead scoring
- Dynamic segments
- Campaigns and marketing metrics
- Funnel stages and funnel memberships
- Touchpoint capture
- Conversion tracking and attribution
- Landing pages and form submissions
- A/B experiments
- Nurture sequences and enrollments
- Growth analytics
- Event logs
- Audit logs
- Role-based permissions
- JSON file persistence for development
- PostgreSQL schema for production migration
npm run build
npm startDefault server:
http://localhost:5000Health:
GET /healthDocs:
GET /docsPORT=5000
DEFAULT_TENANT_ID=demo-tenant
GROWTHOS_DB_FILE=data/growthos.db.jsonGrowthOS uses simple header-based demo auth.
x-tenant-id: demo-tenant
x-user-id: admin-user
x-role: growth_adminRoles:
viewer
growth_rep
marketer
campaign_manager
growth_manager
growth_admin
admin
owner
auditorlead_demo_asha
lead_demo_rahul
lead_demo_neha
seg_high_intent
seg_retail
camp_demo_ai_launch
camp_demo_webinar
funnel_demo_growth
lp_demo_ai
exp_demo_headline
seq_demo_high_intentcurl -X POST http://localhost:5000/growthos/leads \
-H "Content-Type: application/json" \
-H "x-role: growth_admin" \
-d '{"firstName":"Maya","email":"maya@example.com","company":"CloudlyUp","source":"linkedin","tags":["saas"],"consent":"opted_in"}'curl -X POST http://localhost:5000/growthos/touchpoints \
-H "Content-Type: application/json" \
-H "x-role: growth_admin" \
-d '{"leadId":"lead_demo_asha","campaignId":"camp_demo_ai_launch","eventType":"demo_request","channel":"email","source":"AI Launch"}'curl -X POST http://localhost:5000/growthos/conversions \
-H "Content-Type: application/json" \
-H "x-role: growth_admin" \
-d '{"leadId":"lead_demo_asha","campaignId":"camp_demo_ai_launch","type":"revenue","amount":25000,"source":"AI Launch"}'curl http://localhost:5000/growthos/analytics -H "x-role: growth_admin"src/
core/ data store, security, HTTP router, errors, utilities
engines/ scoring, segmentation, attribution, funnel metrics
services/ GrowthService business logic
modules/ HTTP routes
seed-state.ts demo data
main.ts server entry
database/
schema.sql PostgreSQL schema example
tests/
growthos.test.cjs Node test suiteThis starter uses JSON file persistence so it can run with zero external dependencies. For production:
- Replace
DataStorewith PostgreSQL repositories. - Replace header auth with SecurityOS / JWT / SSO.
- Use a queue for campaign event ingestion.
- Connect AutomationOS for nurture execution.
- Connect AnalyticsOS for cross-platform dashboards.
- Connect ClientOS/SalesOS for CRM and pipeline sync.
- Add rate limiting, PII controls, consent enforcement, and data retention policies.
npm test- Official package:
@appneurox/growthos - Manifest:
manifest.json - Domain API namespace:
/v1/growth - Modes: standalone and PlatformOS integrated
- Related systems: AnalyticsOS, BrandOS
See docs/planning.md for the planning contract applied from APPNEURAL Plannings/OSs.