npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pre-mortem

v0.2.3

Published

The Exit Simulator: A satirical startup physics game

Downloads

1,025

Readme

Project Pre-Mortem: Enterprise Risk Visualization

Pre-Mortem Icon

"Optimism is a bug. Physics is the feature."

Pre-Mortem Demonstration

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-mortem
import { 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 dev

Chaos 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.