GrowQR System Architecture

Durable Agent-centric architecture with RivetKit actors, OpenCode runtime & Git-backed memory

Frontend / BFF
Control Plane (Actors)
Runtime / Execution
Memory / Storage
Database
External Services
Frontend

โ—ˆReact UI

  • Conversational interface
  • Real-time updates

โ—‡Next.js BFF

  • Auth & session management
  • Payments webhooks
  • Actor management proxy
Vercel / OpenNext BFF Layer
๐Ÿ” Clerk Auth
๐Ÿ’ณ Stripe

โšกActor Backend โ€” RivetKit

Actor Runner
Actor Engine
Actor Storage
Durable control plane โ€” manages lifecycle, routing & state
Sandboxed Runtime

โ–ฃAgent Runtime

  • Sub-agent orchestration
  • Skills loading
  • Tool execution
  • Dockerized isolation
OpenCode / Container Per-user sandbox
Git Memory

โ—Users Repos

  • Profile & goals
  • Quest history
  • Channel memory
  • Artifact storage
Git worktrees Source of truth

๐ŸงตThreads API

  • Session tracking
  • Message logs

๐Ÿง Memory API

  • Tracking memory
  • 3-layer memory model
๐Ÿ—„

PostgreSQL / AWS RDS

Account metadata ยท Recovery pointers ยท Operational indexes