How firebase/genkit works
High-Level Architecture Components
a) Core Runtime Environments (2 parallel stacks):
• Node.js Runtime
• Go Runtime (Alpha)
b) Framework Core Components:
• Generation Engine
• Flow Management System
• Plugin System
• Telemetry & Tracing
• Developer Tools
Key Architectural Layers
┌─ Application Layer ─────────────────────┐
• User Applications │
• Sample Apps (Coffee Shop, Chatbot) │
• ┘
• ↕
┌─ Framework Layer ──────────────────────┐
• ┌─ AI Features ─┐ ┌─ Core Services ─┐ │
• Generation │ │ - Flow Engine │ │
• RAG │ │ - Prompt System │ │
• Embeddings │ │ - Tracing │ │
• ┘ └───────────────────┘ │
• ┘
• ↕
┌─ Plugin Layer ────────────────────────┐
• Model Providers (Vertex AI, Ollama) │
• Vector Stores (Pinecone, Firestore) │
• Platform Integration (Firebase) │
• ┘
• ↕
┌─ Infrastructure Layer ───────────────┐
• Cloud Providers │
• Vector Databases │
• Model APIs │
• ┘
Development Tools Section
┌─ Developer Tools ──────────────────────┐
• ┌─ CLI ─────┐ ┌─ Dev UI ────────┐ │
• Commands │ │ - Flow Testing │ │
• Telemetry │ │ - Trace Viewer │ │
• Eval Tools│ │ - Debugging │ │
• ┘ └────────────────┘ │
• ┘
Data Flow Indicators
• Request flow through the system
• Plugin interactions
• Data streaming paths
• Telemetry collection routes
Component Details
For each major component, include:
• Component name
• Key responsibilities
• Interface points
• Supported features
Integration Points
Highlight:
• API endpoints
• Plugin interfaces
• External service connections
• Client integration points
Dual Runtime Support
• Parallel implementations for Node.js and Go
• Shared components and differences
Plugin Architecture
• Demonstrate extensibility points
• Standard plugin interfaces
• Example plugin integrations
Development Workflow
• Tooling integration
• Debugging and monitoring paths
• Evaluation flows
Streaming Capabilities
• Streaming data paths
• Real-time processing components
• Nested components
• Text annotations
• Grouping of related components