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

bread-calc

v3.2.0

Published

Hydration and loaf-weight calculator for the Zojirushi BB-PDC20 (and similar 2-lb bread machines), with an LLM-agent-friendly API.

Downloads

435

Readme

bread-calc

Hydration and loaf-weight calculator for the Zojirushi BB-PDC20 (and similar 2-lb bread machines). Live at https://breadmachine.io/ — also a Node CLI (npm i -g bread-calc) and a library.

Use the website

Open https://breadmachine.io/, edit the recipe, copy the share-URL, or click "Export PDF".

Use the CLI

npm i -g bread-calc
bread-calc compute   my-recipe.bread.json
bread-calc compute   my-recipe.bread.json --slim --json | jq '.payload.hydration.effective_pct'
# (--slim drops the derivation tree from JSON output. Without it, large compute
#  outputs (~70KB+) can exceed the 64KB POSIX pipe buffer on macOS and truncate.
#  Drop --slim if you need the tree for verification/audit; pipe to a file in
#  that case (`--json > c.json`) rather than `| jq`.)
bread-calc solve     my-recipe.bread.json --target-g=900
bread-calc validate  my-recipe.bread.json
bread-calc plot      my-recipe.bread.json --out=plot.svg
bread-calc describe  --section=warnings
bread-calc examples  --course=White
bread-calc parse     my-recipe.txt
bread-calc convert   2 cups bread_flour
bread-calc lookup    "olive oil"
bread-calc apply     my-recipe.bread.json --fix-id=salt_too_high.0
bread-calc verify    my-claim.json

Use the library

import { computeRecipe, validateRecipe, type Recipe } from "bread-calc";
import { parseText, applyFix, verifyClaims } from "bread-calc/agent";

const { recipe } = parseText("500 g bread_flour\n300 g water_tap\n9 g salt_table\n4 g yeast_instant");
const v = validateRecipe(recipe);
if (!v.valid) throw new Error(JSON.stringify(v.issues));
const computed = computeRecipe(recipe);
console.log(computed.hydration.effective_pct);

See docs/agents.md for LLM-agent usage (parse/apply/verify loop, exit codes, density bias), docs/recipe-format.md for the JSON schema (Schema 2.0, uid requirement), docs/mcp-design.md for the Wave 2 MCP server design, and docs/privacy.md for the privacy-first stance.

License

MIT