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

@ai-localizer/cli

v0.1.1

Published

ai-localize CLI — extract / replace / sync / translate / cleanup i18n for Vue, React, Next, and Laravel. Designed to be driven by Claude or Codex skills with near-zero AI token spend.

Readme

@ai-localizer/cli

ai-localize — extract / replace / sync / translate / cleanup i18n for Vue 3, React/Next, and Laravel projects. Designed to be driven by Claude or Codex skills with near-zero AI token spend.

Why

Deterministic i18n work (scanning files, rewriting code, diffing locale trees) should cost zero AI tokens. Only the actual translation of source strings needs an LLM. This CLI does all the deterministic parts in pure Node, then emits a compact JSON of only-missing pairs the AI fills in a single turn per locale. A persistent on-disk cache dedupes repeat source→target pairs across runs.

Install

npm install -g @ai-localizer/cli
# or
npx @ai-localizer/cli <command>

Requires Node >= 18.

Quick start

cd path/to/your/project
ai-localize init --source-locale=en --locales=en,fr,de
ai-localize extract
ai-localize replace
ai-localize sync
ai-localize translate plan
# AI agent fills .i18n-queue/<locale>.answers.json per locale
ai-localize translate apply
ai-localize cleanup
ai-localize status

Commands

| Command | What it does | |---|---| | init | Write package.json#aiI18n, update .gitignore | | extract | Scan source tree, seed base locale from literal strings | | replace | Rewrite source files to use i18n calls ($t(...), useTranslations(...), trans(...)) | | sync | Propagate keys from source locale to every other locale | | translate plan | Emit .i18n-queue/<locale>.pending.json (cache-prefiltered untranslated pairs) | | translate apply | Ingest .i18n-queue/<locale>.answers.json, merge, update cache, delete queue files | | cleanup | Remove keys no longer referenced in source | | status | Per-locale counts: translated / untranslated | | run | extract → replace → sync → cleanup in one call (skips translate — needs AI turn) |

Flags: --dry-run, --destructive, --targets=fr,de, --project-root=..., --source-locale=..., --locales=....

AI agent skills

Designed to be driven by a Claude or Codex skill that:

  1. Scaffolds the framework's i18n library (install vue-i18n / next-intl, wire app.use(i18n)).
  2. Runs the CLI phases above.
  3. Reads each .i18n-queue/<locale>.pending.json once per locale and writes the matching .answers.json.
  4. Runs translate apply + cleanup.

Tokens spent: one Read + one Write per target locale, minus cache hits. For a 500-key project with 2 targets, cold cache ≈ 70 KB total AI I/O; re-runs after adding components ≈ <3 KB.

Project config

The CLI reads package.json#aiI18n (or composer.json#extra.aiI18n for Laravel):

{
  "aiI18n": {
    "sourceLocale": "en",
    "locales": ["en", "fr", "de"],
    "localesDir": "src/locales",
    "layout": "single"
  }
}

layout: "single" means <localesDir>/<locale>.json. layout: "grouped" means <localesDir>/<locale>/<namespace>.json.

License

Apache-2.0 © Chibueze Opata