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

@api18n/cli

v0.1.5

Published

Command-line interface for the api18n translation manager. Pull translations to local JSON files and push edits back as reviewable proposals.

Readme

@api18n/cli

Command-line interface for the api18n translation manager. Pull translation keys from the dashboard (https://www.api18n.com) to local JSON files, and push edits back as reviewable proposals.

Install

npm install --save-dev @api18n/cli
# or
bun add -d @api18n/cli

Setup

npx api18n init           # creates api18n.config.ts
npx api18n login          # paste a Personal Access Token from the dashboard
npx api18n pull           # writes messages/{locale}.json

Configuration

api18n.config.ts at the root of your repo:

import { defineConfig } from "@api18n/cli";

export default defineConfig({
  // Path pattern with {locale} placeholder. Default: messages/{locale}.json
  locales: "messages/{locale}.json",

  // Optional — only pull/push these locales. Defaults to all enabled
  // on the dashboard.
  // include: ['en', 'pt', 'fr'],

  // Required if your account belongs to more than one company.
  // companyId: process.env.API18N_COMPANY_ID,
});

Authentication

api18n login walks you through generating a Personal Access Token at Dashboard → Settings → API Keys. For CI, pass the token directly:

api18n login --token "$API18N_PAT"
api18n pull

Commands

| Command | What it does | | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | api18n init | Create api18n.config.ts | | api18n login | Store a Personal Access Token | | api18n logout | Delete the stored token | | api18n whoami | Print the signed-in user and company | | api18n pull | Fetch translations and write local files | | api18n pull --dry-run | Show what would change without writing | | api18n pull --locale en pt | Only pull specific locales | | api18n push | Submit local changes as a proposal for dashboard approval (https://www.api18n.com/dashboard/translation) | | api18n push -m "..." | Attach a summary to the proposal | | api18n push --dry-run | Show the diff without submitting | | api18n status | Show pending proposals and local-vs-server drift | | api18n proposals list | List recent proposals | | api18n proposals show <id> | Print a single proposal's full diff |

File format

Pulled files are JSON, one per locale, nested by dot-segments of the key:

// messages/en.json
{
  "button": {
    "cancel": "Cancel",
    "save": "Save"
  },
  "createCompany": {
    "metadata": {
      "title": "Create company"
    }
  }
}

This matches the conventions used by next-intl, i18next, and most JavaScript i18n libraries. Empty (null) translations are omitted from the output so missing keys don't show up as JSON nulls.