DevelopmentExtending
Hybrid Plugins
Hybrid Plugins
Combine Data Pod schema with remote processing
When to Use
✅ Need custom data types (requires schema)
✅ Need event sourcing (requires events)
✅ But processing should be external (AI, scaling)
Perfect for: AI features that need persistent data.
How It Works
Split responsibilities:
Data Pod provides:
- Database tables
- Typed events
- Webhook endpoints
- Event handlers
Remote Service provides:
- AI/ML processing
- Business logic
- External integrations
Architecture
Step-by-Step Tutorial
Step 1: Add to Data Pod
Add Schema
Define Events
Create Webhooks
Create Event Handlers
Step 2: Build Remote Service
Complete Flow
Real Example: Life Feed
Life Feed is the perfect hybrid plugin example:
Data Pod side:
- Schema:
inbox_itemstable - Events:
InboxItemReceivedEvent,InboxItemAnalyzedEvent - Webhooks:
/webhooks/n8n/inbox,/webhooks/intelligence/callback - Handlers: storage, intelligence, analysis
Remote Service side:
- Service:
synap-intelligence-service - Registration: Registers with Intelligence Registry
- Analysis: AI-powered inbox analysis
- Callback: Returns priority/tags/summary
Benefits
✅ Clean separation: Data in Data Pod, logic external
✅ Type safety: Full TypeScript types throughout
✅ Scalable: Scale AI service independently
✅ Event sourcing: Can rebuild state from events
✅ Flexible: Update AI logic without Data Pod changes
Next Steps
- See complete example → Unified feed (team docs)
- Understand Intelligence Registry → Registry Guide
- Learn event sourcing → Event System (coming soon)
