How tgmstudios/orgflow works
OrgFlow is an institutional-memory platform for nonprofits. The main workflow connects consented Google content, discovers recurring processes, drafts playbooks for human approval, and makes approved knowledge searchable, runnable, and transferable when staff leave. Web and iOS clients access organization workspaces and backend capabilities; PostgreSQL-backed storage persists organizational records. The graph preserves the documented Connect, Capture, Ask, and Transfer branches. Some links are based on README descriptions because the corresponding implementation excerpts were not provided.
Main entry points: app.ts HTTP application · app.tsx Web workspace · operations.ts Knowledge operations · OrgFlowAPI.swift iOS API client
Components 29
Web experience
- Web workspace
frontend/app.tsx - Web API client
frontend/api.ts - Discover UI
frontend/discover.tsx - Indexing UI
frontend/indexing.tsx - People UI
frontend/people.tsx - Knowledge map
frontend/knowledge-map.tsx - Cluster view
frontend/cluster-view.tsx - Web motion layer
frontend/motion.tsx
iOS experience
- Ask and Capture
app/iOS/OrgFlow/Ask/AskViewController.swift - iOS API client
app/iOS/OrgFlow/Services/OrgFlowAPI.swift - Playbook library
app/iOS/OrgFlow/Library/ArticleViewController.swift - Checklist runs
app/iOS/OrgFlow/Library/ChecklistViewController.swift - iOS knowledge map
app/iOS/OrgFlow/Library/KnowledgeMapViewController.swift - iOS people
app/iOS/OrgFlow/Library/PersonViewController.swift - Voice capture
app/iOS/OrgFlow/Audio/MicrophoneCaptureController.swift - iOS design system
app/iOS/OrgFlow/Theme/ContinuityTheme.swift
Backend services
- HTTP application
backend/app.ts - Google connector
backend/google.ts
Knowledge lifecycle
- Knowledge operations
backend/operations.ts - Ask agent
backend/agent.ts - Evidence retrieval
backend/retrieval.ts - Knowledge health
backend/health.ts
Platform foundation
- Authentication
backend/auth.ts - Workspace isolation
backend/workspace.ts - Record store
backend/store.ts - Usage and billing
backend/monetization.ts
Other components
- Org staff
- Luminal AI
- Google Drive and Gmail
Connections 38
- Org staff → Web workspace: uses workspace
README.md - Org staff → Ask and Capture: uses app
README.md - Web workspace → Web API client: calls API
frontend/app.tsx - Web workspace → Discover UI: renders
frontend/app.tsx - Web workspace → Indexing UI: renders
frontend/app.tsx - Web workspace → People UI: renders
frontend/app.tsx - Web workspace → Knowledge map: renders
frontend/app.tsx - Cluster view → Web API client: loads data
frontend/cluster-view.tsx - Web API client → HTTP application: sends requests
README.md - Ask and Capture → iOS API client: requests answers
app/iOS/OrgFlow/Ask/AskViewController.swift - Voice capture → Ask and Capture: provides voice input
- iOS API client → HTTP application: sends requests
README.md - Playbook library → iOS API client: loads and publishes
app/iOS/OrgFlow/Library/ArticleViewController.swift - Playbook library → Checklist runs: starts runs
app/iOS/OrgFlow/Library/ArticleViewController.swift - iOS knowledge map → iOS API client: updates ownership
app/iOS/OrgFlow/Library/KnowledgeMapViewController.swift - iOS people → iOS API client: requests handoff
app/iOS/OrgFlow/Services/OrgFlowAPI.swift - Ask and Capture → iOS design system: uses styles
app/iOS/OrgFlow/Ask/AskViewController.swift - Web workspace → Web motion layer: uses animation
frontend/app.tsx - HTTP application → Authentication: authenticates
backend/app.ts - HTTP application → Workspace isolation: routes workspace
backend/app.ts - HTTP application → Knowledge operations: delegates operations
backend/app.ts - HTTP application → Ask agent: creates handler
backend/app.ts - HTTP application → Google connector: routes connector
backend/app.ts - HTTP application → Usage and billing: checks and meters
backend/app.ts - Authentication → Record store: reads and writes
backend/auth.ts - Workspace isolation → Record store: reads and writes
backend/workspace.ts - Knowledge operations → Record store: persists records
backend/operations.ts - Knowledge operations → Evidence retrieval: searches evidence
backend/operations.ts - Knowledge operations → Luminal AI: drafts and transfers
backend/operations.ts - Ask agent → Knowledge operations: searches and saves drafts
backend/app.ts - Ask agent → Evidence retrieval: grounds answers
README.md - Google connector → Google Drive and Gmail: reads consented content
README.md - Google connector → Record store: indexes sources
- Knowledge health → Record store: assesses knowledge
- Discover UI → Knowledge operations: requests discovery
README.md - Indexing UI → Google connector: starts indexing
README.md - People UI → Knowledge operations: requests handoff
README.md - Knowledge map → Cluster view: offers clusters