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

dicta-nakdan

v1.0.0

Published

Typed, zero-dependency client for Dicta's free Nakdan API — automatic Hebrew vocalization (niqqud) with per-word alternatives. Add nikud to unpointed Hebrew text.

Readme

dicta-nakdan

Typed, zero-dependency client for Dicta's free Nakdan API — automatic Hebrew vocalization (adding niqqud / nikud to unpointed text), with per-word alternatives and confidence.

npm install dicta-nakdan

Why

Adding niqqud (vowel points) to Hebrew text is genuinely hard — it's a context-dependent NLP problem, not a lookup. Dicta, a nonprofit, offers a remarkably good vocalizer for free, but its raw API returns a terse word-array format with no types and no documented contract. This wraps it in a clean, typed TypeScript API and normalizes the response — so you can add nikud in one call.

import { vocalize, nakdan } from "dicta-nakdan";

await vocalize("שלום עולם");  // "שָׁלוֹם עוֹלָם"

const r = await nakdan("בראשית ברא אלהים", { genre: "rabbinic" });
r.text;                        // the fully pointed string
r.words[0].vocalized;          // "בְּרֵאשִׁית"
r.words[0].options;            // alternative vocalizations Dicta considered
r.words[0].confident;          // whether Dicta was sure

API

  • vocalize(text, opts?) → the pointed string (the common case).
  • nakdan(text, opts?){ text, words }, where each word is { word, vocalized, isSeparator, options, confident } — separators (spaces, punctuation) are preserved in order so you can reconstruct or re-render the text.

opts: genre ("modern" default, "rabbinic", or "poetry"), fetch (inject for tests/proxies), endpoint (override the pinned API URL), timeoutMs (default 30000). Empty or non-Hebrew input, HTTP failures, timeouts, and unexpected responses all throw NakdanError.

The mocked test suite runs offline against a captured real response; npm run smoke calls the live API.

A note on the upstream service

Dicta is a nonprofit and the Nakdan API is offered free with no formal published contract; its endpoints are version-numbered. This package pins a working endpoint and lets you override it via opts.endpoint if Dicta rolls a new version. Please use the service considerately.

Related

By the same author: mispar (Hebrew gematria, 13 classical methods) and Gamatria, a gematria search engine over the Tanakh and Mishnah.

Author

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

MIT © Moshe Malka