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

@wrkspace-co/interceptor

v0.1.5

Published

On-demand translation compiler for i18n message files

Readme

Interceptor

Interceptor is an on-demand translation compiler that scans your code for translation calls, translates missing strings via an LLM, and writes them into your i18n message files. It keeps translation management aligned with how teams actually ship software: by extracting from source, preserving manual edits, and generating only what’s missing.

Docs: https://wrkspace-co.github.io/Interceptor/

Benefits

  • Eliminate manual file edits. As you code, Interceptor finds t("...") calls and fills in missing translations for each locale. You only review and refine the output, not copy‑paste strings across files.
  • Add languages without rework. Have 300+ existing strings? Just add a new locale in the config. Interceptor will generate the new language from your source code and existing base locale.
  • Keep locale files clean. Enable unused‑key cleanup to remove stale translations and avoid bloated message catalogs.

Features

  • Auto scan and translate missing keys with LLMs
  • Works with popular i18n libraries (react-intl, i18next, vue-i18n) and custom t() calls
  • Never overwrites existing translations
  • Watch mode and batching
  • TypeScript-first

Install

pnpm add -D @wrkspace-co/interceptor

Quick start

  1. Create interceptor.config.ts:
import type { InterceptorConfig } from "@wrkspace-co/interceptor";

const config: InterceptorConfig = {
  locales: ["en", "fr"],
  defaultLocale: "en",
  llm: {
    provider: "openai",
    model: "gpt-4o-mini",
    apiKeyEnv: "OPENAI_API_KEY"
  },
  i18n: {
    messagesPath: "src/locales/{locale}.json"
  }
};

export default config;
  1. Add .env:
OPENAI_API_KEY=sk-your-real-key
  1. Run:
pnpm interceptor

Examples

Vite:

import { defineConfig } from "vite";
import { interceptorVitePlugin } from "@wrkspace-co/interceptor/vite";

export default defineConfig({
  plugins: [interceptorVitePlugin({ configPath: "interceptor.config.ts" })]
});

Webpack:

const { InterceptorWebpackPlugin } = require("@wrkspace-co/interceptor/webpack");

module.exports = {
  plugins: [new InterceptorWebpackPlugin({ configPath: "interceptor.config.ts" })]
};

LLMs

Supports OpenAI, Gemini, Claude, Mistral, Cohere, Groq, DeepSeek, and OpenAI-compatible providers. See docs for configuration examples.

Learn more

Full documentation

Credits Interceptor is a part of Wrkspace Co. © group.