Project 13 of ~34
π Due Diligence Lite β Architecture
Technical specification for Due Diligence Lite β investor research service. SvelteKit dashboard + Deno backend + Supabase + Ollama (Mac Mini) for research agents.
SvelteKit
Deno
Mac-native AI
Research Pipeline
Due Diligence Lite is primarily a research pipeline with a web dashboard. The core intelligence is the research agent that aggregates data from multiple sources, synthesizes findings, and compiles a PDF report. The Mac Mini serves as theζ°ΈθΏ-on research server for nightly data refreshes and async report generation.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β USER INTERFACE β
β ββββββββββββββββ βββββββββββββββ ββββββββββββ β
β β Web Dashboard β β Order Form β β Report Viewerβ β
β β (SvelteKit) β β (pitch deck β β (PDF embed) β β
β ββββββββ¬ββββββββ ββββββββ¬βββββββ ββββββ¬ββββββ β
ββββββββββββΌβββββββββββββββββββΌββββββββββββββΌβββββββββββ
β β β
βΌ βΌ βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β APPLICATION LAYER (Deno) β
β ββββββββββββββ ββββββββββββββ ββββββββββββββββ β
β β Order Mgmt β β Research β β Report Gen β β
β β Service β β Orchestratorβ β (PDF output) β β
β ββββββββββββββ ββββββββββββββ ββββββββββββββββ β
β ββββββββββββββ ββββββββββββββ ββββββββββββββββ β
β β Customer β β Financial β β Notification β β
β β Outreach β β Sanity β β Service β β
β β Agent β β Checker β β (Resend) β β
β ββββββββββββββ ββββββββββββββ ββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
βΌ βΌ
βββββββββββββββββββββββ ββββββββββββββββββββββββββββ
β DATA SOURCES β β DATA STORES β
β βββββββββββββββββ β β ββββββββββββββββββββββββ β
β β LinkedIn API β β β β Supabase (Postgres) β β
β β Crunchbase β βββββββ β Orders, Reports, β β
β β IBISWorld β β β β Research Cache, β β
β β News API β β β β Customer Outreach β β
β β PitchDeck (PDF)β β β ββββββββββββββββββββββββ β
β βββββββββββββββββ β β ββββββββββββββββββββββββ β
βββββββββββββββββββββββ β β Cloudflare R2 β β
β β Pitch decks, PDFs β β
β ββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β AI RUNTIME β
β ββββββββββββββββββ β
β β Ollama (Mac Mini)β β
β β Mistral 7B β β
β β Research agent β β
β β synthesis β β
β ββββββββββββββββββ β
β ββββββββββββββββββ β
β β MiniMax API β β
β β (report polish)β β
β ββββββββββββββββββ β
Orders
POST /api/ordersCreate new deal research order. Body: {company_name, founder_names[], industry, stage, tier, pitch_deck_base64?}. Creates Stripe checkout session. Returns order ID.
GET /api/orders/:idGet order status and details.
GET /api/orders/:id/reportGet generated report (PDF URL + section previews).
Research (Internal)
POST /internal/research/deal/:idTrigger full research pipeline for a deal. Async via QStash. Returns job ID.
GET /internal/research/deal/:id/statusCheck research pipeline status per section.
POST /internal/outreach/start/:dealIdStart customer outreach for deep-dive orders. Triggers email sequence to 5 customers.
Portfolio Monitoring
GET /api/portfolioList monitored companies for subscriber.
POST /api/portfolio/companyAdd company to portfolio monitoring.
GET /api/portfolio/:companyId/alertsGet recent news alerts and signals for a monitored company.
Step 1: Founder Background Check
Agent takes founder names β searches LinkedIn (via PhantomBuster/Airtable), Crunchbase, Twitter/X, Google News. Compiles: employment timeline, education, funding history, news mentions. Identifies red flags: timeline gaps, credential discrepancies, negative news. Drafts 1-page founder bio. Runs on Ollama Mistral 7B on Mac Mini.
Step 2: Market Size Analysis
Agent queries IBISWorld/Statista for industry data. Builds TAM/SAM/SOM model. Calculates 3-year projections using CAGR from public comps. MiniMax API for final narrative polish.
Step 3: Competitive Landscape
Agent searches G2, Capterra, LinkedIn for direct/indirect competitors. Maps positioning matrix. Extracts pricing from public sources. MiniMax API for competitive narrative.
Step 4: Customer Interview Synthesis (Deep-Dive)
For each of 5 customers: agent sends outreach email via Hunter.io β schedules call β takes notes (manual or transcribed via Whisper) β Ollama synthesizes patterns across all 5 calls. Highlights: what users love, what they wish was different, why they chose this over alternatives.
Step 5: Financial Projection Sanity Check
Agent parses pitch deck numbers (or uploaded financial model). Benchmarks against public SaaS comparables at similar stage (from MicroCapCampbell, OpenView reports). Generates 3 scenarios: bear/base/bull. Identifies top 3 most aggressive assumptions.
Step 6: Report Assembly + PDF
All sections compiled into report HTML template. Puppeteer renders HTML β PDF. Uploaded to R2. Link shared with investor via email. MiniMax API writes executive summary and red flags sections.