pre-mortem
v0.2.3
Published
The Exit Simulator: A satirical startup physics game
Downloads
1,025
Maintainers
Readme
Project Pre-Mortem: Enterprise Risk Visualization
![]()
"Optimism is a bug. Physics is the feature."

Pre-Mortem is a deterministic simulation engine designed to quantify the structural integrity of high-growth organizations. By mapping technical debt, venture capital hype, and organizational friction to Matter.js physics bodies, we provide stakeholders with a high-fidelity forecast of institutional entropy.
Use Case (Operational Objectives)
- For Engineers: Empirically visualize why adding "Generative AI" to a fragile foundation results in immediate structural collapse.
- For Product Managers: A tactical demonstration of how feature creep scales linearly with institutional gravity.
- For Founders: A high-stakes anxiety simulator to optimize exit timing before the runway reaches terminal velocity.
Architecture (The Metaphors)
The simulation utilizes three core primitives to model corporate reality:
1. The Foundation (Legacy & Infrastructure)
- Attributes: High Density, High Friction, Zero Restitution.
- Components: Refactoring, Unit Testing, Compliance, Infrastructure.
- Dynamics: Essential yet heavy. Without a stable base, capitalization metrics are irrelevant.
2. The Growth Factors (Capital & Hype)
- Attributes: Low Density, High Elasticity, Asymmetric Geometry.
- Components: Strategic Pivots, Thought Leadership, Market Noise.
- Dynamics: Rapidly inflates vertical valuation while introducing catastrophic center-of-gravity shifts.
3. Organizational Friction (Culture)
- Dead Wood: Inert hulls that consume space and runway without contributing to structural support.
- Toxic Agents: The Slacker (Zero friction), The Prima Donna (Hostile geometry), The Control Freak (Unpredictable impulse vectors).
Quick Start
Library Integration
Integrate the simulation into your corporate dashboard for "educational" purposes.
npm install pre-mortemimport { PreMortem } from 'pre-mortem';
const simulation = new PreMortem(document.body, {
logoUrl: "/api/assets/corporate-logo.png",
initialRunway: 200000,
stages: [
{ name: 'Seed Phase', threshold: 0, burnRate: 2000 },
{ name: 'Series A', threshold: 100000000, burnRate: 10000, fundingBonus: 250000 },
{ name: 'Series B', threshold: 250000000, burnRate: 25000, fundingBonus: 500000 },
{ name: 'Series C', threshold: 500000000, burnRate: 50000, fundingBonus: 1000000 },
{ name: 'Series D', threshold: 700000000, burnRate: 75000, fundingBonus: 2000000 },
{ name: 'Series E', threshold: 850000000, burnRate: 100000, fundingBonus: 5000000 },
{ name: 'Unicorn Status', threshold: 1000000000, burnRate: 150000, fundingBonus: 10000000 }
]
});
simulation.start();Standalone Deployment
git clone https://github.com/your-org/pre-mortem.git
cd pre-mortem
npm install
npm run devChaos Events (Stochastic Crises)
The engine monitors valuation thresholds to trigger real-world market stressors:
- Strategic Pivot: CEO intervention causes a temporary localized gravity shift.
- The Big Reorg: Friction is zeroed across all human capital assets.
- Market Shockwave: High-impulse forces applied to specialized structural nodes.
Contributing
Technical contributions are welcome. Please ensure all new hype-based blocks have a density less than 0.001 to maintain institutional realism.
License
ISC. Implement at your own career risk.
