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

mispar

v1.0.0

Published

Hebrew gematria with all the classical methods — hechrachi, gadol, katan, siduri, katan mispari, perati, meshulash, kidmi, bone'eh, ha'akhor, milui, atbash, albam. Zero dependencies.

Readme

mispar

Hebrew gematria with all the classical counting methods — not just the standard count. מספר, "number." Zero dependencies.

npm install mispar

Why

Every gematria package on npm does one thing: the standard count (and the venerable gematriya converts numerals ↔ Hebrew letters, which is a different job entirely). But the tradition has many counting methods — final letters as 500–900, ordinal values, digit reduction, squares, spelled-out letter names, the atbash and albam ciphers — and they're exactly what gematria tooling needs.

import { gematria, letterValues, atbash } from "mispar";

gematria("חי");                    // 18
gematria("שלום");                  // 376
gematria("שָׁלוֹם");                 // 376 — niqqud stripped automatically

gematria("אלהים");                 // 86
gematria("אלהים", "gadol");        // 646 — final ם counts as 600
gematria("אמת", "katan");          // 9   — per-letter digit reduction
gematria("אמת", "katan-mispari");  // 9   — digital root of 441
gematria("א", "milui");            // 111 — אלף, the letter spelled out

atbash("בראשית");                  // the cipher as a string transform
letterValues("שלום");              // [{letter:"ש",value:300}, …] — build a calculator

The 13 methods

| Method | What it counts | | --- | --- | | hechrachi (default) | standard absolute values, א=1 … ת=400 | | gadol | finals ך ם ן ף ץ count 500–900 | | katan | each letter reduced to one digit (י=1, ק=1) | | siduri | ordinal position, א=1 … ת=22 | | katan-mispari | digital root of the standard total | | perati | each letter's value squared | | meshulash | each letter's value cubed | | kidmi | cumulative: each letter = sum of all values up to it (י=55) | | boneeh | building: the running total re-added at every letter | | haakhor | positional: value × position in the word | | milui | each letter's spelled-out name (א→אלף=111); spellings overridable | | atbash | standard value after the א↔ת cipher | | albam | standard value after the א↔ל cipher |

Also exported: atbash(text) / albam(text) as string transforms, letterValues(text, method?) for per-letter breakdowns, METHODS, and MILUI_SPELLINGS (the default naming tradition — variants like הי/ואו/פא/תיו can be passed via options.spellings).

Niqqud and cantillation are stripped automatically; maqaf (־) separates words; non-Hebrew characters are ignored unless { strict: true }.

Related

By the same author: Gamatria — a gematria search engine over the Tanakh and Mishnah — and a fixed-income toolkit if your numerology runs to bonds instead.

Author

Built by Moshe Malka — engineering leader in New York City. Studio work at Quentin.Code.

MIT © Moshe Malka