System Overview
PlaybookOS is built as a 6-layer modular architecture where each phase depends on the previous phase's foundation but extends without requiring rework. The complete system is designed upfront (100% architecture) but built incrementally (phased deployment) to prevent technical debt and enable rapid iteration.
Traditional Approach: Build Phase 1 β discover Phase 3 needs different schema β migrate database β rework integrations β technical debt compounds
PlaybookOS Approach: Design complete schema β build Phase 1 with Phase 6 in mind β each phase extends cleanly β zero migrations β zero rework
Complete Architecture Diagram
βββββββββββββββββββββββββββββββββββββββ
β PLAYBOOK CREATION LAYER β
β (Phase 1 - Build First) β
βββββββββββββββββββββββββββββββββββββββ€
β β’ Expert research & extraction β
β β’ Paint-by-numbers framework β
β β’ GOLDEN+SHARP validation β
β β’ PDF/HTML/Workbook generation β
β β’ Version control & templates β
ββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β DISTRIBUTION LAYER β
β (Phase 2 - Build Second) β
βββββββββββββββββββββββββββββββββββββββ€
β β’ Permission funnel automation β
β β’ Multi-channel publishing β
β β’ UTM tracking & attribution β
β β’ SEO optimization β
β β’ Community engagement tracking β
ββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β CAPTURE LAYER β
β (Phase 3 - Build Third) β
βββββββββββββββββββββββββββββββββββββββ€
β β’ Email gate at Step 3-4 β
β β’ Qualification question logic β
β β’ Multi-purpose segmentation β
β β’ CRM integration β
β β’ Lead scoring by intent β
ββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β TRIAL/HAND-RAISE LAYER β
β (Phase 4 - Build Fourth) β
βββββββββββββββββββββββββββββββββββββββ€
β β’ Freemium expert clone embed β
β β’ Usage tracking & analytics β
β β’ Trigger: trial β Loom delivery β
β β’ Trial-to-conversion measurement β
ββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β CONVERSION LAYER β
β (Phase 5 - Build Fifth) β
βββββββββββββββββββββββββββββββββββββββ€
β β’ 5-min Loom generation system β
β β’ Payment processing β
β β’ Fulfillment automation β
β β’ Customer onboarding β
ββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β ATTRIBUTION & ANALYTICS LAYER β
β (Phase 6 - Build Sixth) β
βββββββββββββββββββββββββββββββββββββββ€
β β’ Purpose-specific ROI tracking β
β β’ Expert partnership metrics β
β β’ Niche list value measurement β
β β’ Playbook performance dashboards β
β β’ A/B testing infrastructure β
βββββββββββββββββββββββββββββββββββββββ
CROSS-CUTTING CONCERNS (Design Now, Build Incrementally):
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β’ Database schema (supports all 6 layers from day 1)
β’ API contracts between layers
β’ Authentication & user management
β’ Multi-tenancy (expert separation)
β’ Webhook integrations
β’ Email deliverability infrastructure
β’ Error handling & logging
β’ Performance monitoring & optimization
Layer-by-Layer Breakdown
Each layer represents both a technical component and a business capability. Layers build sequentially but integrate horizontally through well-defined APIs and data contracts.
- Expert methodology extraction framework
- Paint-by-numbers step builder
- GOLDEN+SHARP validation engine
- Multi-format output (PDF, HTML, interactive)
- Template system for rapid iteration
- Version control & change tracking
- Permission funnel state machine
- Reddit, HN, IndieHackers schedulers
- UTM generation & click tracking
- SEO metadata optimization
- Expert engagement dashboards
- Community sentiment monitoring
- Dynamic email gates (Step 3-4 injection)
- Qualification question engine
- Multi-purpose segmentation logic
- CRM bi-directional sync
- Lead scoring algorithms
- Nurture sequence triggers
- Expert clone embed system (Step 7)
- Usage event tracking & analytics
- Hand-raise signal detection
- Loom delivery trigger engine
- Trial-to-conversion scoring
- A/B testing for trial placements
- 5-min Loom template system
- Personalization data injection
- Payment processing (Stripe)
- Fulfillment automation workflows
- Customer onboarding sequences
- Post-purchase upsell logic
- Purpose-specific conversion funnels
- Expert partnership performance metrics
- Niche list valuation models
- Playbook ROI calculators
- A/B testing infrastructure
- Predictive analytics & optimization
Dependency Mapping
Understanding what each phase needs from previous phases prevents rework and enables clean integration.
Playbook Creation MUST include:
- Standardized step numbering (for email gate placement)
- Metadata fields: expert_name, methodology_type, target_audience
- UTM parameter schema (for tracking back to playbook)
- Segment identifiers (which purpose this serves)
- Version control (to track playbook iterations)
β οΈ If Phase 1 omits these: Phase 3 requires database migration and playbook regeneration
Email Capture MUST include:
- Trial eligibility flag (did they qualify for freemium?)
- Hand-raise timestamp (when did they request trial?)
- Usage data pipeline (connects to Phase 4 analytics)
- Loom trigger conditions (what activates Loom delivery?)
- Segmentation that Phase 4 can read (no re-segmentation)
β οΈ If Phase 3 omits these: Phase 4 can't add trials cleanly, requires lead data re-processing
Trial System MUST include:
- Conversion readiness score (when to show buy button?)
- Payment intent tracking (did they try to buy?)
- Loom personalization data (what goes in their custom demo?)
- Fulfillment trigger events (automate onboarding)
- Trial-to-paid conversion funnel (no manual handoff)
β οΈ If Phase 4 omits these: Phase 5 payment flow is bolted-on awkwardly, poor UX
Conversion System MUST include:
- Revenue attribution by playbook and purpose
- Customer lifetime value tracking
- Conversion timestamp and path data
- A/B test variant assignments
- Cohort analysis preparation
β οΈ If Phase 5 omits these: Phase 6 can't track attribution retroactively, data loss
Cross-Cutting Concerns
Infrastructure components that span all 6 layers. Designed now, built incrementally as each phase needs them.
Technology Stack
Recommended technologies for each layer, balancing speed, cost, and scalability:
| Layer | MasteryMade Stack | Purpose | Why This Choice |
|---|---|---|---|
| Database | Supabase (PostgreSQL + Vector DB) | Relational + vector storage | Built-in auth, real-time subs, pgvector for AI embeddings, excellent DX |
| Backend API | FastAPI (Python) | RESTful endpoints + async | Fast, async-native, automatic OpenAPI docs, perfect for AI integrations |
| Frontend | React (Next.js or Vite) | Interactive UI + playbooks | Component reusability, huge ecosystem, SEO-friendly with Next.js |
| File Storage | Supabase Storage + AWS S3 | Playbook PDFs, media assets | Supabase for small files, S3 for scale, presigned URLs for security |
| Email Marketing | Vbout or Beehiiv | Capture, nurture, segment | Vbout: automation + CRM. Beehiiv: creator-first, great deliverability |
| Payments | Stripe | Subscriptions + one-time | Best developer experience, subscription management, invoicing, webhooks |
| Main Hosting | Hostinger | Primary domain + assets | Affordable, reliable, good for static sites and primary web presence |
| Interactive Apps | AWS (EC2/ECS) or Railway | FastAPI backend hosting | AWS for control, Railway for zero-config deploys and auto-scaling |
| Standalone Frontends | Vercel | React apps, landing pages | Zero-config deploys, edge functions, git integration, preview URLs |
| Analytics | PostHog + Plausible | Event tracking + privacy | PostHog for product analytics, Plausible for privacy-friendly web stats |
Critical Design Decisions
Decision: All 6 phases use one PostgreSQL database with different tables populated as phases roll out.
Why: Simplifies queries across layers (e.g., "show me all leads who tried trials and converted"). No cross-database joins. Easier to maintain.
Alternative Rejected: Separate databases per phase (microservices style). Would require complex data synchronization and distributed transactions.
Decision: All layers communicate through RESTful APIs with JSON payloads. Frontend is decoupled from backend.
Why: Enables multiple frontends (web, mobile, expert dashboards). Can swap backend tech without frontend changes. Easier to add integrations.
Alternative Rejected: Monolithic server-rendered app. Would tightly couple UI and business logic, making iteration slower.
Decision: Layers publish events (e.g., "lead_captured", "trial_started", "payment_completed") that other layers subscribe to.
Why: Loose coupling between phases. Phase 4 doesn't need to know Phase 5's internal logicβjust subscribes to relevant events. Easier to add Phase 7 later.
Alternative Rejected: Direct function calls between phases. Creates tight coupling and makes testing harder.
Avoid: Building for 10,000 concurrent users when you have 10. Over-engineering slows down validation.
Instead: Start with simple Vercel + Supabase + ConvertKit stack. Scales to 1,000+ users easily. Optimize when metrics show bottlenecks.
Rule: Don't add complexity until pain is felt. "We might need this later" is not a reason to build now.