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

sundial-lp

v0.1.0

Published

GPU linear-programming solver (restarted PDHG) running as WebGPU compute shaders — in the browser, no CUDA, no server. Every Optimal is CPU-f64-verified.

Readme

sundial-lp

GPU linear programming in the browser. Restarted PDHG, the PDLP family, running as WebGPU compute shaders on whatever GPU the visitor already has. No CUDA, no server, and the data never leaves the tab.

Every Optimal is re-verified on the CPU in f64 before the word appears. The GPU never grades its own homework.

npm install sundial-lp
import init, { solveMps, webgpuAvailable } from "sundial-lp";

await init();
if (!webgpuAvailable()) {
  throw new Error("WebGPU required: Chrome/Edge 113+, Firefox 141+, Safari 26+");
}

// solveMps(mpsText, tolerance, onProgress) resolves once the answer has been
// re-verified in f64 on the CPU. The callback fires on every convergence check.
const result = await solveMps(mpsText, 1e-4, (p) => {
  console.log(p.iter, p.rel_primal, p.rel_dual, p.rel_gap, p.ms_per_iter);
});

console.log(result.status, result.objective);  // "Optimal (CPU f64 verified)"

Honest limits

Iterate arithmetic is f32, so the tier is 1e-4 relative KKT and tighter tiers are experimental. There's no presolve. CPU simplex beats this on small LPs, because the GPU only pays off at scale: the demo solves 1,048,576-variable optimal transport in about 9 seconds on an Apple M4 Pro, at 0.547 ms per iteration in the tab against 0.59 ms native.

Part of Sundial. The crate directory is crates/sundial-web, and the crate and npm package are both sundial-lp.

License

MIT OR Apache-2.0, at your option.