How forgemind-git/openforge-ai works
OpenForge AI is a self-hosted, multi-user assistant that brings tasks, calendar, mail, and WhatsApp/Telegram chats into an office dashboard. Users connect their own credentials, ask Forge by text or live voice to inspect data or prepare actions, then review and confirm drafts before anything is sent or changed. The graph separates the browser experience, server request and assistant flow, external integrations, and persistent state. Evidence is limited to the supplied excerpts, source index references, and README; unsampled implementation details are not inferred.
Main entry points: index.js HTTP entry · google.js Google services · Office.jsx Office dashboard · App.jsx App shell
Components 31
Browser experience
- App shell
web/src/App.jsx - Office dashboard
web/src/pages/Office.jsx - Work cards
web/src/pages/Sheets.jsx - Settings page
web/src/pages/Settings.jsx - Sign-in page
web/src/pages/AuthPage.jsx - API client
web/src/api.js - API context
web/src/lib/apiContext.js - Demo data
web/src/lib/demo.js - Morning brief
web/src/components/MorningBrief.jsx - Brief builder
web/src/lib/brief.js - Voice narration
web/src/lib/narration.js - Live voice client
web/src/lib/geminiLive.js
Server workflow
- HTTP entry
server/src/index.js - Credential settings
server/src/routes/settings.js - OAuth and webhooks
server/src/routes/public.js - Assistant endpoint
server/src/routes/assistant.js - Assistant runtime
server/src/assistant/live.js - Assistant tools
server/src/assistant/tools.js - Draft actions
server/src/assistant/actions.js - Work data routes
server/src/routes/data.js
External integrations
- Model adapter
server/src/integrations/llm.js - Google services
server/src/integrations/google.js - Chat services
server/src/integrations/messaging.js
Identity and state
- Authentication
server/src/auth.js - Credential store
server/src/store.js - Secret encryption
server/src/crypto.js - SQLite state
server/src/db.js
Other components
- User
- OpenAI or Anthropic
- Google APIs
- WhatsApp and Telegram
Connections 42
- User → App shell: uses
README.md - App shell → Sign-in page: shows when signed out
web/src/App.jsx - App shell → Office dashboard: shows office
web/src/App.jsx - App shell → Settings page: routes settings
web/src/App.jsx - Office dashboard → API context: reads API context
web/src/pages/Office.jsx - API context → API client: provides
web/src/lib/apiContext.js - Office dashboard → Work cards: opens work cards
web/src/pages/Office.jsx - Office dashboard → Demo data: uses sample data
web/src/pages/Office.jsx - Office dashboard → Morning brief: shows brief
web/src/pages/Office.jsx - Morning brief → Brief builder: builds script
web/src/components/MorningBrief.jsx - Morning brief → Voice narration: narrates
web/src/components/MorningBrief.jsx - Voice narration → Live voice client: uses live voice
web/src/lib/narration.js - API client → HTTP entry: requests API
web/src/api.js - HTTP entry → Authentication: mounts auth routes
server/src/index.js - HTTP entry → OAuth and webhooks: mounts public routes
server/src/index.js - HTTP entry → Credential settings: mounts settings routes
server/src/index.js - HTTP entry → Assistant endpoint: mounts assistant routes
server/src/index.js - HTTP entry → Work data routes: mounts data routes
server/src/index.js - Assistant endpoint → Model adapter: calls model
server/src/routes/assistant.js - Assistant endpoint → Assistant tools: uses tools
server/src/routes/assistant.js - HTTP entry → Assistant runtime: attaches voice runtime
server/src/index.js - Assistant runtime → Assistant tools: dispatches tools
server/src/assistant/live.js - Assistant runtime → SQLite state: reads and writes
server/src/assistant/live.js - Assistant runtime → Credential store: loads credentials
server/src/assistant/live.js - Assistant tools → Google services: reads Google data
server/src/assistant/tools.js - Assistant tools → SQLite state: reads and drafts
server/src/assistant/tools.js - Work data routes → Draft actions: confirms actions
server/src/routes/data.js - Work data routes → Google services: handles work data
server/src/routes/data.js - Work data routes → Chat services: handles chat data
server/src/routes/data.js - Draft actions → Google services: executes confirmed work
server/src/assistant/actions.js - Draft actions → Chat services: sends confirmed replies
server/src/assistant/actions.js - Credential settings → Credential store: saves credentials
server/src/routes/settings.js - Credential settings → Model adapter: checks model key
server/src/routes/settings.js - Credential settings → Google services: starts OAuth
server/src/routes/settings.js - OAuth and webhooks → Google services: handles OAuth return
server/src/routes/public.js - OAuth and webhooks → Chat services: receives webhooks
server/src/routes/public.js - Credential store → SQLite state: persists settings
server/src/store.js - Credential store → Secret encryption: encrypts secrets
server/src/store.js - Authentication → SQLite state: reads user state
server/src/auth.js - Model adapter → OpenAI or Anthropic: calls model API
README.md - Google services → Google APIs: calls Google APIs
server/src/integrations/google.js - Chat services → WhatsApp and Telegram: calls chat APIs
server/src/integrations/messaging.js