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

sium-core

v1.0.0

Published

The Universal Coefficient of Systemic Friction.

Downloads

84

Readme

sium-core ( $\mathbb{S}$ )The Universal Coefficient of Systemic Friction.The Problem with Perfect MathCurrent computational and economic models rely on a fundamental flaw: the assumption of frictionless environments. In theoretical mathematics, $1 + 1$ always equals $2$. But in the real world, transferring capital, data, or energy always incurs a leak—due to transaction fees, network latency, or physical entropy.Historically, developers and economists have patched this by hardcoding arbitrary "margins of error."The Solution: The Akinloye Principle of Systemic LossSium ($\mathbb{S}$) is the formal mathematical recognition of this leakage. It transitions system architecture from theoretical estimates to empirical reality. By calculating the exact delta between theoretical yield and actual yield, $\mathbb{S}$ provides a unified framework to predict real-world friction.$$\mathbb{S} = \frac{V_{theoretical} - V_{actual}}{V_{theoretical}}$$(Where $V$ represents the unit of Value: Capital, Joules, Bytes, or Milliseconds).🚀 InstallationBashnpm install sium-core

or

yarn add sium-core 💻 Cross-Field Usage Examplessium-core is domain-agnostic. It can be extended to calculate friction in any system. Here are three real-world implementations:1. Enterprise Fintech (Payment Gateway Drop-off)When processing millions of dollars through Stripe or PayPal, theoretical revenue never matches settled revenue due to fraud, expired cards, and gateway timeouts. Sium calculates this exact financial friction.JavaScriptimport { Sium } from 'sium-core';

class FintechSium extends Sium {}

// Theoretical processing: $1,000,000 // Actual settled funds: $975,000 const paymentFriction = FintechSium.calculate(1000000, 975000); // Output: 0.025 (2.5% Friction)

// Forecast Q4 Revenue based on Q3's reality: const q4Target = 5000000; const realisticSettlement = Sium.forecastReality(q4Target, paymentFriction);

console.log(Expected Q4 Settled Revenue: $${realisticSettlement}); // Outputs: $4,875,000 2. Cloud Architecture (AWS Network Latency)Data packets traveling through fiber optic cables face routing delays and physical resistance. Use Sium to calculate the computational drag and trigger load balancers automatically.JavaScriptimport { Sium } from 'sium-core';

class CloudSium extends Sium {}

// Expected ping to AWS us-east-1: 40ms // Actual recorded ping: 52ms const networkDrag = CloudSium.calculate(40, 52);

if (networkDrag > 0.20) { console.warn(High Systemic Friction detected (${(networkDrag * 100).toFixed(2)}%). Rerouting traffic...); } 3. Physics & Energy (Power Grid Entropy)A national power grid transmitting megawatts of electricity will always lose power as heat dissipates from the copper lines.JavaScriptimport { Sium } from 'sium-core';

class GridSium extends Sium {}

// Megawatts generated at the plant: 500 MW // Megawatts received at the city substation: 460 MW const gridEntropy = GridSium.calculate(500, 460); // Output: 0.08 (8% Energy Loss) 📖 API ReferenceSium.calculate(theoretical, actual)theoretical : The perfect, projected value. Must be greater than 0.actual : The real-world value achieved.Returns: The Sium coefficient (a value between 0 and 1).Sium.forecastReality(theoreticalYield, siumCoefficient)theoreticalYield : The projected future target.siumCoefficient : Your previously calculated $\mathbb{S}$ factor.Returns: The empirically accurate yield.⚖️ LicenseMIT License - Created by Abdulsamad Opeyemi Akinloye (Mr. Ola).