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

@0xlimao/traduora-cli

v0.2.1

Published

Modern Traduora CLI with TypeScript and client_credentials support

Downloads

40

Readme

@0xlimao/traduora-cli

A modern CLI and JavaScript SDK for Traduora with first-class client_credentials support.

  • CLI commands for project status, terms, translations, and exports
  • Interactive init flow to bootstrap credentials and default state
  • SDK package for scripting with both ESM and CommonJS
  • Docusaurus documentation with English, Traditional Chinese, Simplified Chinese, and Japanese

Table of Contents

Highlights

  • Uses term value as the user-facing key (instead of UUIDs)
  • Supports client_credentials as the default auth model
  • Supports interactive account login to create a project client automatically
  • Supports config file logic (json/js/ts) and environment variable fallback

Installation

From npm

pnpm add @0xlimao/traduora-cli

Global CLI install

pnpm add -g @0xlimao/traduora-cli

From source

git clone https://github.com/flyinglimao/traduora-cli.git
cd traduora-cli
pnpm install
pnpm build

Quick Start

Initialize interactively:

traduora init

Show help:

traduora --help
traduora project --help
traduora term --help
traduora translation --help
traduora export --help

Typical flow:

traduora project status
traduora translation use en_GB
traduora term add form.email.required
traduora translation add --term form.email.required --value "E-mail input is required"
traduora export --format jsonnested --output ./i18n/en_GB.json

CLI Usage

Init

traduora init --help

init supports:

  • Input API credentials directly (client_credentials), then prompt for project ID
  • Login with account/password, select a project, then create a project client (--role admin|editor|viewer)

Project

traduora project --help
traduora project status --help

project only provides status. It always uses the current project from state/config.

For term/translation/export commands, project is resolved from currentProjectId in state.

Term

traduora term --help
traduora term add --help
traduora term list --help
traduora term update --help
traduora term delete --help

Translation

traduora translation --help
traduora translation use --help
traduora translation add --help
traduora translation list --help
traduora translation update --help
traduora translation delete --help

Export

traduora export --help

Configuration

Priority order:

  1. Environment variables
  2. Config file
  3. CLI options

Supported config files:

  • traduora.config.json
  • traduora.config.ts
  • traduora.config.js
  • traduora.config.mjs
  • traduora.config.cjs

Supported environment variables:

  • TRADUORA_BASE_URL
  • TRADUORA_GRANT_TYPE
  • TRADUORA_CLIENT_ID
  • TRADUORA_CLIENT_SECRET
  • TRADUORA_USERNAME
  • TRADUORA_PASSWORD
  • TRADUORA_ACCESS_TOKEN

State (currentProjectId, currentLocale) is stored in .traduora.state.json.

JavaScript SDK

ESM

import { createApi } from "@0xlimao/traduora-cli";

const { api } = await createApi();
const terms = await api.listTerms("<projectId>");
console.log(terms);

CommonJS

const { createApi } = require("@0xlimao/traduora-cli");

(async () => {
  const { api } = await createApi();
  const terms = await api.listTerms("<projectId>");
  console.log(terms);
})();

For full method details, see the SDK TypeScript Reference in the docs site.

Documentation Site

Run locally:

cd docs
pnpm install
pnpm start

Development

pnpm install
pnpm build
pnpm typecheck
pnpm dev -- --help

Testing

Local Docker integration test (CLI + SDK against real Traduora instance):

pnpm test:e2e:local

See test instructions in test/README.md.

Release

  • npm publish is handled by GitHub Actions with npm Trusted Publishing (OIDC)
  • Docs are deployed to GitHub Pages by GitHub Actions

Contributing

Issues and pull requests are welcome:

License

MIT. See LICENSE.