How tdavidson/portfolio works
Portfolio is a self-hosted venture-capital operating platform. The main workflow runs from inbound deal screening through diligence and memo creation, then investment and portfolio monitoring, fund accounting, and LP reporting. The graph preserves the documented AI analyst, CRM, compliance, and configurable integrations as parallel capabilities. Some backend stages are represented by their exact enclosing directories because only their routes or documentation were supplied; unsampled relationships are not asserted.
Main entry points: page.tsx Fund accounting · server.ts Supabase data · route.ts Inbound intake · page-view.tsx Portfolio dashboard
Components 24
Deal workflow
- Inbound intake
app/api/inbound-email/route.ts - Deal pipeline
app/(app)/deals - Diligence workspace
app/(app)/diligence - Document ingestion
lib/memo-agent/stages/ingest.ts - Memo drafting
lib/memo-agent
Portfolio intelligence
- Portfolio dashboard
app/(app)/dashboard/page-view.tsx - Company records
app/(app)/companies/[id]/page-view.tsx - Update processing
lib/pipeline/processEmail.ts - Extraction review
components/email-review-modal.tsx - AI analyst
lib/ai/analyst/orchestrator.ts - CRM interactions
app/(app)/interactions
Fund operations
- Fund accounting
app/(app)/accounting/[[...rest]]/page.tsx - Fund construction
lib/accounting/construction-service.ts - Double-entry ledger
app/api/accounting/journal/route.ts - Capital accounts
lib/accounting/capital-account.ts - Statements and tax
app/api/accounting/statements/route.ts
LP experience
- LP reporting
app/(app)/lps - LP portal
app/portal/overview/page.tsx
Platform services
- Supabase data
lib/supabase/server.ts - Firm settings
app/api/settings/route.ts - Compliance tracking
app/(app)/compliance - Fund access
lib/access/effective.ts
Other components
- Investment team
- Google Drive
Connections 26
- Investment team → Inbound intake: submits opportunities
README.md - Inbound intake → Deal pipeline: screens deals
README.md - Deal pipeline → Diligence workspace: advances deal
README.md - Diligence workspace → Document ingestion: analyzes data room
README.md - Document ingestion → Memo drafting: informs drafting
README.md - Investment team → Portfolio dashboard: monitors portfolio
README.md - Portfolio dashboard → Company records: opens company
app/(app)/dashboard/page-view.tsx - Inbound intake → Update processing: runs email pipeline
app/api/inbound-email/route.ts - Update processing → Extraction review: queues uncertain results
README.md - Extraction review → Portfolio dashboard: updates reporting data
README.md - Investment team → AI analyst: asks fund questions
README.md - Investment team → CRM interactions: logs interactions
README.md - Investment team → Fund accounting: operates funds
README.md - Fund accounting → Double-entry ledger: posts journal entries
- Fund accounting → Fund construction: models fund economics
- Fund accounting → Capital accounts: tracks partner capital
README.md - Fund accounting → Statements and tax: generates reports
README.md - Investment team → LP reporting: prepares investor reports
README.md - LP reporting → LP portal: delivers documents
README.md - LP portal → Investment team: records engagement
README.md - Company records → Supabase data: loads records
- Fund accounting → Supabase data: stores books
- Firm settings → Google Drive: configures storage
- Firm settings → Supabase data: persists settings
app/api/settings/route.ts - Investment team → Compliance tracking: tracks obligations
README.md - Fund access → Supabase data: validates sessions
lib/supabase/server.ts