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

@vocoder/cli

v0.21.0

Published

CLI tool for Vocoder translation workflow

Downloads

601

Readme

@vocoder/cli

CLI for Vocoder project setup, translation sync, and project management.

Installation

npm install -D @vocoder/cli

Or run it without installing:

npx @vocoder/cli <command>

Commands

vocoder init

Set up or repair Vocoder for the current repo/app. init signs you in when needed, connects or repairs the local project setup, writes VOCODER_API_KEY, and manages the GitHub Actions workflow.

vocoder init

Typical flow:

  • Sign in in the browser when needed
  • Select or create a workspace
  • Choose app directories for monorepos
  • Choose source language, target languages, and trigger branches
  • Optionally install @vocoder/mcp
  • Write .github/workflows/vocoder-translate.yml
  • Write VOCODER_API_KEY into .env.local or .env

If the current repo/app is already configured, vocoder init switches into repair mode:

  • Reuses the existing Vocoder project
  • Verifies local VOCODER_API_KEY
  • Prompts to regenerate the key only when it is missing or rejected
  • Preserves existing workflow files and warns instead of overwriting them

Files written at the repository root:

  1. .github/workflows/vocoder-translate.yml
  2. .env.local or .env

Options:

| Flag | Description | |---|---| | --api-url <url> | Override the Vocoder API URL | | --yes | Skip the browser-open confirmation | | --ci | Print VOCODER_AUTH_URL and VOCODER_SESSION_ID instead of opening the browser | | --verbose | Log API request URLs and response statuses |

vocoder translate

Extract strings, submit them to Vocoder, poll until completion, and write the latest locale files into the git root.

vocoder translate
vocoder translate --dry-run
vocoder translate --app-dir apps/web

Reads VOCODER_API_KEY from the environment or local env files.

Options:

| Flag | Description | |---|---| | --branch <branch> | Override the detected git branch | | --commit-sha <sha> | Override the detected commit SHA | | --dry-run | Extract and summarize what would be submitted without making API calls | | --verbose | Show extra diagnostics | | --api-url <url> | Override the Vocoder API URL | | --app-dir <dir> | Single app directory to process (e.g. apps/web). Overrides vocoder.config.ts apps[]. Used in per-app workflow files. |

vocoder clean

Remove locale files in your project that are no longer in the configured target locales. Non-destructive by default — shows what would be deleted and prompts for confirmation.

vocoder clean
vocoder clean --yes
vocoder clean --app-dir apps/web

Reads VOCODER_API_KEY from the environment or local env files.

Options:

| Flag | Description | |---|---| | --yes | Skip the confirmation prompt and delete immediately | | --app-dir <dir> | Single app directory to process. Overrides vocoder.config.ts apps[]. | | --api-url <url> | Override the Vocoder API URL |

vocoder pull

Fetch the latest compiled locale files for a branch and write them into your project.

vocoder pull
vocoder pull --branch main
vocoder pull --output ./tmp/vocoder
vocoder pull --app-dirs apps/web,apps/admin

Options:

| Flag | Description | |---|---| | --app-dirs <dirs> | Comma-separated app directories for monorepos | | --output <dir> | Write locale files into this directory instead of the git root | | --api-url <url> | Override the Vocoder API URL | | --branch <branch> | Override the detected git branch |

vocoder locales

Show the configured source locale and target locales for the current project.

vocoder locales

vocoder locales add <codes...>

Add one or more target locales.

vocoder locales add fr
vocoder locales add fr de pt-BR

vocoder locales remove <codes...>

Remove one or more target locales.

vocoder locales remove fr
vocoder locales remove de pt-BR

vocoder locales supported

List all locales supported by Vocoder.

vocoder locales supported

vocoder config

Show the current project configuration.

vocoder config

vocoder create-project

Create a project without running the full init wizard. In interactive shells, the CLI signs you in automatically when needed.

vocoder create-project \
  --name "My App" \
  --source-locale en \
  --organization <org-id> \
  --target-locales fr,de \
  --target-branches main

Options:

| Flag | Description | |---|---| | --name <name> | Project display name | | --source-locale <code> | Source language BCP 47 code | | --organization <org-id> | Workspace ID | | --target-locales <codes> | Comma-separated target locale codes | | --target-branches <branches> | Comma-separated trigger branches | | --repo <canonical> | Override the detected git repo canonical, for example github:owner/repo | | --api-url <url> | Override the Vocoder API URL |

vocoder regenerate-key

Generate a new project API key for the current repository.

vocoder regenerate-key

vocoder auth login

Sign in to your Vocoder account.

vocoder auth login
vocoder auth login --ci

If you are already signed in, the command prints the current account and exits successfully.

vocoder auth status

Show whether this machine is currently signed in to Vocoder.

vocoder auth status

vocoder auth logout

Revoke stored credentials and clear ~/.vocoder/auth.json.

vocoder auth logout

Authentication

Account authentication is stored separately from the project VOCODER_API_KEY.

Use vocoder auth login to sign in. After that, credentials are stored in:

~/.vocoder/auth.json

Use vocoder auth logout to revoke and clear them.

Environment Variables

| Variable | Used by | Purpose | |---|---|---| | VOCODER_API_KEY | translate, pull, locales, config | Project API key | | VOCODER_API_URL | All commands | Override the API base URL | | VOCODER_ON_FAILURE | translate | Override onTranslationFailure with fail or proceed |

License

MIT