pre-mortem 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +86 -0
- package/dist/control-freak.png +0 -0
- package/dist/logo.png +0 -0
- package/dist/pre-mortem-icon.png +0 -0
- package/dist/pre-mortem.mjs +1005 -0
- package/dist/pre-mortem.mp4 +0 -0
- package/dist/pre-mortem.umd.js +382 -0
- package/dist/prima-donna.png +0 -0
- package/dist/quet-quitter.png +0 -0
- package/dist/slack-spammer.png +0 -0
- package/dist/slacker.png +0 -0
- package/index.html +39 -0
- package/package.json +30 -0
- package/public/control-freak.png +0 -0
- package/public/logo.png +0 -0
- package/public/pre-mortem-icon.png +0 -0
- package/public/pre-mortem.mp4 +0 -0
- package/public/prima-donna.png +0 -0
- package/public/quet-quitter.png +0 -0
- package/public/slack-spammer.png +0 -0
- package/public/slacker.png +0 -0
- package/src/blocks.ts +182 -0
- package/src/game.ts +366 -0
- package/src/gamestate.ts +176 -0
- package/src/index.ts +30 -0
- package/src/ui.ts +634 -0
- package/tsconfig.json +21 -0
- package/vite.config.ts +20 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Boobs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Project Pre-Mortem: Enterprise Risk Visualization
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
> *"Optimism is a bug. Physics is the feature."*
|
|
6
|
+
|
|
7
|
+
<video src="./public/pre-mortem.mp4" controls width="100%"></video>
|
|
8
|
+
|
|
9
|
+
**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.
|
|
10
|
+
|
|
11
|
+
## Use Case (Operational Objectives)
|
|
12
|
+
|
|
13
|
+
* **For Engineers:** Empirically visualize why adding "Generative AI" to a fragile foundation results in immediate structural collapse.
|
|
14
|
+
* **For Product Managers:** A tactical demonstration of how feature creep scales linearly with institutional gravity.
|
|
15
|
+
* **For Founders:** A high-stakes anxiety simulator to optimize exit timing before the runway reaches terminal velocity.
|
|
16
|
+
|
|
17
|
+
## Architecture (The Metaphors)
|
|
18
|
+
|
|
19
|
+
The simulation utilizes three core primitives to model corporate reality:
|
|
20
|
+
|
|
21
|
+
### 1. The Foundation (Legacy & Infrastructure)
|
|
22
|
+
|
|
23
|
+
* **Attributes:** High Density, High Friction, Zero Restitution.
|
|
24
|
+
* **Components:** Refactoring, Unit Testing, Compliance, Infrastructure.
|
|
25
|
+
* **Dynamics:** Essential yet heavy. Without a stable base, capitalization metrics are irrelevant.
|
|
26
|
+
|
|
27
|
+
### 2. The Growth Factors (Capital & Hype)
|
|
28
|
+
|
|
29
|
+
* **Attributes:** Low Density, High Elasticity, Asymmetric Geometry.
|
|
30
|
+
* **Components:** Strategic Pivots, Thought Leadership, Market Noise.
|
|
31
|
+
* **Dynamics:** Rapidly inflates vertical valuation while introducing catastrophic center-of-gravity shifts.
|
|
32
|
+
|
|
33
|
+
### 3. Organizational Friction (Culture)
|
|
34
|
+
|
|
35
|
+
* **Dead Wood:** Inert hulls that consume space and runway without contributing to structural support.
|
|
36
|
+
* **Toxic Agents:** The Slacker (Zero friction), The Prima Donna (Hostile geometry), The Control Freak (Unpredictable impulse vectors).
|
|
37
|
+
|
|
38
|
+
## Quick Start
|
|
39
|
+
|
|
40
|
+
### Library Integration
|
|
41
|
+
|
|
42
|
+
Integrate the simulation into your corporate dashboard for "educational" purposes.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install pre-mortem
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
import { PreMortem } from 'pre-mortem';
|
|
50
|
+
|
|
51
|
+
const simulation = new PreMortem(document.body, {
|
|
52
|
+
logoUrl: "/api/assets/corporate-logo.png",
|
|
53
|
+
initialRunway: 5000000,
|
|
54
|
+
stages: [
|
|
55
|
+
{ name: 'Seed Phase', threshold: 0, burnRate: 2000 },
|
|
56
|
+
{ name: 'Terminal Growth', threshold: 1000000000, burnRate: 500000 }
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
simulation.start();
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Standalone Deployment
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
git clone https://github.com/your-org/pre-mortem.git
|
|
67
|
+
cd pre-mortem
|
|
68
|
+
npm install
|
|
69
|
+
npm run dev
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Chaos Events (Stochastic Crises)
|
|
73
|
+
|
|
74
|
+
The engine monitors valuation thresholds to trigger real-world market stressors:
|
|
75
|
+
|
|
76
|
+
* **Strategic Pivot**: CEO intervention causes a temporary localized gravity shift.
|
|
77
|
+
* **The Big Reorg**: Friction is zeroed across all human capital assets.
|
|
78
|
+
* **Market Shockwave**: High-impulse forces applied to specialized structural nodes.
|
|
79
|
+
|
|
80
|
+
## Contributing
|
|
81
|
+
|
|
82
|
+
Technical contributions are welcome. Please ensure all new hype-based blocks have a density less than 0.001 to maintain institutional realism.
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
ISC. Implement at your own career risk.
|
|
Binary file
|
package/dist/logo.png
ADDED
|
Binary file
|
|
Binary file
|