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-i18n-tools

v1.8.3

Published

Unified internationalization toolkit for Node.js apps and documentation with AI translation

Readme

ai-i18n-tools

English (UK) · Deutsch · Español · Français · हिन्दी · 日本語 · 한국어 · Português (Brasil) · 简体中文 · 繁體中文

npm version npm downloads Node.js License: MIT CI

Translate your app and documentation with the AI model of your choice — no lock-in, no rewrites.

CLI and toolkit for internationalizing JavaScript/TypeScript apps and documentation sites (VitePress, Starlight, Docusaurus, Nextra, Fumadocs, Astro, plain Markdown/MDX). Use built-in presets for OpenAI, Anthropic, Gemini, OpenRouter, Ollama, and more — or any OpenAI-compatible API. Switch provider or model per project or per locale without changing your codebase.

Features

| | | | --- | --- | | UI strings | Extract t("…") from JS/TS/Astro (and data-i18n* in HTML) → flat per-locale JSON | | Documents | Translate Markdown, MDX, and .astro pages for major doc frameworks | | JSON | Translate nested locale bundles when copy lives outside t() calls | | SVG | Translate illustrated SVG labels via translate-svg | | Smart cache | Shared SQLite cache — only new or changed segments hit the model | | One sync | Runs extract → UI → SVG → docs → JSON in the right order from one config |

Which pipeline?

| Your content | Command | | --- | --- | | Source uses t() or HTML markers | UI stringsextract / translate-ui | | Localized pages or docs sites | Documentstranslate-docs | | Standalone nested JSON locale files | JSONtranslate-json |

See What is ai-i18n-tools? for a full comparison.

Install

ESM-only. Requires Node.js >=22.16.0.

pnpm add ai-i18n-tools
# or: npm install ai-i18n-tools

Set an API key for your provider (default init uses OpenRouter; Ollama needs none):

export OPENROUTER_API_KEY=sk-or-v1-your-key-here

Configure the bare ai-i18n-tools command (direnv, PATH, package.json scripts, or npx) — see Installation.

Quick start

ai-i18n-tools init [-P <provider>]   # scaffold config (default: UI strings)
ai-i18n-tools sync                   # extract + translate per features

Docs-oriented scaffolds: -t ui-docusaurus, ui-starlight, ui-vitepress, ui-nextra, ui-fumadocs, ui-astro-website, or ui-json-bundles.

Prefer sync over chaining individual translate commands. Full walkthrough: Quick start.

Documentation

Contributing

Issues and pull requests are welcome. Maintainer workflows for this repository: AGENTS.md and dev/DEVEL.md.

License

MIT — see LICENSE.

Copyright © 2026 Waldemar Scudeller Jr.