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

gworky-engine

v1.0.0

Published

Groundwork Decision Engine — Evidence-based computational models and financial, health, and energy calculators for smarter life decisions.

Readme

Groundwork Decision Engine (@gworkycom/engine)

npm version License: MIT Verified Publisher

Groundwork Decision Engine is an open-source, zero-dependency suite of evidence-based computational models for personal finance, preventive health, and home energy decisions.

Developed by the Groundwork Research Desk, this library powers the interactive calculators available on gworky.com/tools.


Key Modules

  • Solar Panel Payback & ROI: Calculates 20-year net savings, federal ITC tax credits, utility escalation, and break-even periods.
  • Mortgage Refinance Break-Even: Computes monthly payment differentials, closing cost amortization, and net lifetime interest savings.
  • TDEE & Macronutrient Allocation: Implements the Mifflin-St Jeor equation with validated activity multi-tiers.
  • Zone 2 Cardiovascular Physiology: Calculates lactate threshold training heart rate zones for mitochondrial density.
  • HVAC Psychrometric Sizing: Simplified Manual J heating/cooling load and CFM airflow estimator.

Installation

npm install @gworkycom/engine

or with yarn / pnpm:

pnpm add @gworkycom/engine

Quickstart

1. Solar Payback & 20-Year Net Savings

import { calculateSolarPayback } from "@gworkycom/engine";

const result = calculateSolarPayback({
  systemCost: 20000,
  annualOutputKwh: 9000,
  electricityRatePerKwh: 0.16,
  federalCreditRate: 0.30, // 30% Residential Clean Energy Credit
  annualUtilityIncreaseRate: 0.03, // 3% annual escalation
});

console.log(result);
// {
//   netCost: 14000,
//   firstYearSavings: 1440,
//   paybackYears: 8.4,
//   twentyYearNetSavings: 24890.12
// }

2. Mortgage Refinance Break-Even

import { calculateMortgageRefinance } from "@gworkycom/engine";

const refinance = calculateMortgageRefinance({
  currentBalance: 350000,
  currentRate: 0.06875, // 6.875%
  newRate: 0.0575,      // 5.750%
  closingCosts: 4500,
  remainingTermMonths: 320,
  newTermMonths: 360,
});

console.log(`Monthly Savings: $${refinance.monthlySavings}`);
console.log(`Break-even: ${refinance.breakEvenMonths} months`);

Interactive Web Demos & Documentation

All mathematical formulas, underlying peer-reviewed literature, and interactive web calculators are maintained at:


License

MIT © Groundwork Media