PreMortem analyzes startup ideas using real external market signals before founders invest time and capital.
Instead of relying on optimism or vague AI opinions, PreMortem gathers live data from:
- GitHub (competition density)
- Web search results (market saturation)
- Reddit & forums (organic demand signals)
It then computes an evidence‑based failure probability using deterministic scoring logic.
Startups don’t fail because founders lack intelligence.
They fail because:
- Demand was assumed, not validated
- Competition was underestimated
- Market saturation was ignored
- Optimism replaced evidence
PreMortem provides an external reality check at Day Zero.
flowchart TD A[Startup Idea Input] --> B[Keyword Extraction] B --> C[GitHub Search] B --> D[Web Search] B --> E[Reddit Signal Search] C --> F[Signal Aggregation] D --> F E --> F F --> G[Deterministic Risk Scoring] G --> H[Failure Probability Output]
- Next.js (App Router)
- TailwindCSS
- Recharts (risk visualization)
- Mermaid.js (flowchart rendering)
- Next.js API routes
- OpenAI API (keyword extraction only)
- Bing Web Search API (market signals)
- GitHub REST Search API (competition signals)
No database. No authentication. No persistent storage.
- Textarea for startup concept
- “Run PreMortem” button
OpenAI extracts:
- Main problem
- Target market
- Core keywords
AI does not score the idea.
Measures:
- Repository count
- Similar tools
Purpose: Competition density indicator.
Measures:
- Market saturation
- Existing companies
- Product mentions
Purpose: Market maturity signal.
Measures:
- Complaint threads
- Pain discussions
- Organic demand signals
Purpose: Real-world unmet need indicator.
PreMortem uses deterministic logic derived from real counts.
No hallucinated AI scores.
Based on GitHub repository count.
Based on number of existing products in search results.
Based on number of Reddit/forum pain discussions.
Triggered by keywords like:
- AI
- Hardware
- Blockchain
- Infrastructure-heavy systems
Example deterministic formula:
final_failure_probability =
(0.4 × competition_risk)
+ (0.3 × market_saturation_risk)
+ (0.2 × execution_complexity_risk)
- (0.3 × demand_strength)
Normalized to 0–100.
Higher demand reduces risk. Higher competition increases risk.
- Dark theme
- Clean card-based sections
- Centered analytics container
Large headline number with color logic:
- 0–40 → Green
- 40–70 → Yellow
- 70+ → Red
Bar chart displaying:
- Competition Risk
- Market Saturation Risk
- Demand Strength
- Execution Complexity Risk
Built using Recharts.
Displays:
- GitHub Repo Count
- Web Result Count
- Reddit Signal Count
Each with large numeric emphasis.
Rendered with Mermaid.js to illustrate how the engine works.
git clone
cd premortem
npm install
If not already included:
npm install recharts mermaid
Create .env.local
OPENAI_API_KEY=your_key_here
BING_API_KEY=your_key_here
GITHUB_TOKEN=your_token_here
npm run dev
Open:
http://localhost:3000
- Paste weak idea.
- Show:
- High GitHub competition
- Low Reddit demand
- Reveal high failure probability.
Then paste strong niche idea:
- Lower competition
- Clear pain threads
- Lower failure probability.
Demonstrate contrast through evidence.
- No historical tracking
- No portfolio dashboard
- No defense mode
- No user accounts
- No predictive ML training
- No scraping private incubator data
This is a Day-Zero external signal engine.
- Idea history tracking
- Drift detection
- Founder commitment mode
- Portfolio analysis for VCs
- Trend evolution tracking
- Market heatmaps
- Evidence > Opinion
- Structure > Chat
- Deterministic logic > AI hallucination
- Clean analytics UI > Chat bubbles
PreMortem is not an idea validator. It is an external market reality mirror.
If you'd like, I can now:
- Tighten this into a 1-page investor-ready product brief
- Or refine the scoring math to be more defensible and less arbitrary
- Or rewrite this README in a sharper YC-style tone