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

@greenfieldoverride/runway-calculator

v1.0.1

Published

Transform financial anxiety into clarity - calculate your runway to freedom

Readme

Runway Calculator 🚀

Transform financial anxiety into clarity - calculate your runway to freedom

npm version License

Stop wondering "How long could I survive without my job?" and start knowing. The Runway Calculator turns your financial anxiety into actionable clarity, showing exactly how long your savings will last and what you need to achieve freedom.

🌟 Features

  • 🎯 Crystal Clear Results: "6 months, 2 weeks" instead of vague numbers
  • 🔒 100% Private: All calculations happen in your browser
  • ⚡ Lightning Fast: Instant results as you type
  • 📱 Works Everywhere: React, vanilla JS, or pure logic
  • 🧠 Smart Categories: Essential vs. nice-to-have expense tracking
  • 📊 Liberation Insights: How reducing expenses extends your runway

🚀 Quick Start

Installation

npm install @greenfieldoverride/runway-calculator

React Component

import { RunwayCalculator } from '@greenfieldoverride/runway-calculator/react';

function MyApp() {
  return (
    <div>
      <h1>Calculate Your Runway to Freedom</h1>
      <RunwayCalculator />
    </div>
  );
}

Vanilla JavaScript

<div id="runway-calculator"></div>
<script src="https://unpkg.com/@greenfieldoverride/runway-calculator/vanilla"></script>
<script>
  new VanillaRunwayCalculator({
    containerId: 'runway-calculator'
  });
</script>

Core Logic Only

import { calculateRunway } from '@greenfieldoverride/runway-calculator/core';

const result = calculateRunway({
  savings: 50000,
  expenses: [
    { id: '1', name: 'Rent', amount: 2000, isEssential: true },
    { id: '2', name: 'Food', amount: 600, isEssential: true },
    { id: '3', name: 'Subscriptions', amount: 200, isEssential: false }
  ]
});

console.log(result.runwayDisplay); // "17 months, 3 weeks"
console.log(result.monthsTotal); // 17.86
console.log(result.essentialOnlyRunway); // "25 months" (cutting non-essentials)

🔧 API Reference

calculateRunway(params)

Parameters:

  • savings (number): Total savings amount
  • expenses (array): List of expense objects
    • id (string): Unique identifier
    • name (string): Expense name
    • amount (number): Monthly amount
    • isEssential (boolean): Whether it's essential

Returns:

  • runwayDisplay (string): Human-readable runway (e.g., "6 months, 2 weeks")
  • monthsTotal (number): Total months as decimal
  • essentialOnlyRunway (string): Runway if cutting non-essentials
  • monthlyTotal (number): Total monthly expenses
  • essentialTotal (number): Essential monthly expenses only

🎯 Use Cases

  • Job Transition Planning: Know exactly how long you can job hunt
  • Sabbatical Planning: Calculate extended break feasibility
  • Emergency Preparedness: Understand your financial cushion
  • Liberation Timeline: Plan your escape from corporate burnout
  • Expense Optimization: See which cuts extend your runway most

🤝 Contributing

This tool helps people escape financial anxiety. Every improvement matters:

  1. Fork the repository
  2. Create a feature branch
  3. Test thoroughly (this affects real financial decisions)
  4. Submit a pull request

📄 License

Licensed under Liberation License v1.0 - ensuring these tools serve human liberation, not corporate exploitation.


"Clarity is the first step to freedom."