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

@bitakit/next-intl

v0.1.0

Published

next-intl translation plugin for SaaS Foundation.

Readme

@bitakit/next-intl

Optional next-intl integration. Call useNextIntlPlugin() inside the configured NextIntlClientProvider and register the returned plugin with Foundation. The adapter updates the existing translation service; it does not maintain a second locale store. The host configures request locale, supported languages and message composition.

Source responsibilities

  • src/index.ts: reactive translator and raw getCatalog(namespace?) integration.
  • src/preferences.ts (./preferences): optional languagePreferences composition of standard App Preferences definitions, catalog section and host persistence callbacks.
  • locales/en.json, locales/de.json: this integration's own language-setting labels.

languagePreferences({ locales, defaultLocale, category }) returns the setting, a normal Foundation plugin and storage(base, { load, save, reset }). Register the plugin beside App Preferences and use that storage when creating its instance. Only language.locale is routed to the supplied persistence; other preferences retain their original storage. Use a base storage with reset support to remove the locale override on reset. Configured locales become standard Select options; labels may include flags. No separate language buttons, locale state store or custom control are needed.

Content Demo persists through server actions and its validated HTTP-only locale cookie. Next updates the existing provider tree after cookie mutation. Adding a language means adding a configured option and an app catalog; missing plugin keys use the fallback catalog.

Catalog ownership and overrides

Import each installed package's ./locales/en.json and ./locales/de.json in request configuration. Compose them with the existing mergePluginMessages, then pass host catalogs as app. For the same locale and key, the app wins. Plugin text stays in its own package; the host contains only product text or deliberate overrides. Better Auth uses its published upstream locale bundles through the existing native provider.

The translation service exposes getCatalog(namespace?) alongside translate. It returns the current nested group, the full catalog without a namespace, or undefined for missing/non-object groups. Updates notify the existing subscribers.