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

@atriniumsoft/tm-sync

v0.2.0

Published

CLI and library to sync Lingui .po translations with Translation Manager

Readme

🔄 @atriniumsoft/tm-sync

CLI and library to sync Lingui .po translation files with Translation Manager.

  • ⬆️ push — Upload local .po files to Translation Manager
  • ⬇️ pull — Download translated .po files from Translation Manager

📦 Installation

npm install @atriniumsoft/tm-sync

Requirements: Node.js >= 18, a Translation Manager instance with API access, and a Lingui project with .po catalogs.

⚙️ Configuration

Set the following environment variables (via .env, .env.local, or system environment):

| Variable | Required | Description | |---|---|---| | TM_API_URL | ✅ | Translation Manager API URL | | TM_API_TOKEN | ✅ | Personal access token (create at Translation Manager > API Tokens) | | TM_PROJECT_SLUG | ✅ | Project slug to sync with | | TM_CATALOGS_DIR | ❌ | Path to Lingui catalogs (default: ./src/locales) |

The CLI automatically loads .env and .env.local files from the current working directory.

🚀 CLI Usage

tm-sync push          # Push all locales
tm-sync push es       # Push a specific locale
tm-sync pull          # Pull all locales
tm-sync pull en       # Pull a specific locale
tm-sync help          # Show help

📝 Recommended npm scripts

{
  "scripts": {
    "tm:push": "tm-sync push",
    "tm:pull": "tm-sync pull && lingui compile --typescript",
    "tm:sync": "lingui extract --overwrite && tm-sync push && tm-sync pull && lingui compile --typescript"
  }
}

Pass a locale as argument: npm run tm:push -- es

🧩 Programmatic API

import { loadConfig, push, pull, createLogger } from "@atriniumsoft/tm-sync";

const config = loadConfig({
  apiUrl: "https://tm.example.com",
  apiToken: "your-token",
  projectSlug: "my-project",
  catalogsDir: "./src/locales",
});

const logger = createLogger(); // or createLogger({ silent: true })

await push(config, logger);           // Push all locales
await pull(config, logger, "es");     // Pull a specific locale

🏷️ Exported types

import type {
  TmSyncConfig,
  TmSyncConfigOverrides,
  PushResult,
  PullResult,
  LocalePushResult,
  LocalePullResult,
  Logger,
  LoggerOptions,
} from "@atriniumsoft/tm-sync";

📄 License

MIT — Atrinium Software