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

translatinator

v1.0.1

Published

Automated translation management for web applications. Supports multiple translation engines (Google, DeepL, Yandex, LibreTranslate)

Readme

🌍 Automated translation management for web applications supporting multiple translation engines


Translatinator is an npm package that streamlines the translation workflow for web applications. This unstoppable cybernetic agent will automatically hunt down and translate your source language file to multiple target languages using various translation engines including Google Translate, DeepL, Yandex, and LibreTranslate, with intelligent caching and build process integration.

🚀 Feature Overview

  • 🚀 Multiple Translation Engines: Support for Google Translate (default), DeepL, Yandex, and LibreTranslate
  • 💾 Smart Caching: Avoid retranslating unchanged content with built-in cache management
  • 🔄 File Watching: Auto-translate when source files change
  • 🔧 Build Integration: Webpack plugin for seamless build process integration
  • 🎯 Selective Translation: Exclude specific keys from translation
  • ⚙️ Flexible Configuration: Multiple configuration options and environment variable support

Installation

npm install translatinator

1. Initialize Configuration

npx translatinator init

"I need your clothes, your boots, and your translation parameters"

This command deploys a translatinator.config.json with tactical parameters:

{
  "engine": "google",              // ← Primary weapons system
  "apiKey": "your-api-key-here",   // ← Authorization codes
  "sourceFile": "en.json",         // ← Target acquisition file
  "targetLanguages": ["de", "fr", "es", "it", "nl", "pl"],
  "localesDir": "./locales",       // ← Mission zone
  "watch": false,                  // ← Surveillance mode
  "force": false,                  // ← Override protocols
  "filePattern": "{lang}.json",    // ← Output designation
  "preserveFormatting": true,      // ← Data integrity
  "excludeKeys": ["version", "build", "debug"],
  "cacheDir": ".translatinator-cache",
  "verbose": false                 // ← Stealth mode
}

Translatinator scans for configuration files in this tactical order:

  • translatinator.config.jsPrimary target
  • translatinator.config.jsonSecondary target
  • .translatinatorrcBackup systems
  • .translatinatorrc.jsonEmergency protocols

2: Intel Preparation

Deploy your primary language assets (locales/en.json):

{
  "welcome": "Welcome to our application",
  "navigation": {
    "home": "Home",
    "about": "About", 
    "contact": "Contact"
  },
  "buttons": {
    "submit": "Submit",
    "cancel": "Cancel"
  }
}

3: Mission Execution

npx translatinator translate

🎯 TARGET ACQUIRED → TRANSLATIONS DEPLOYED
Files like de.json, fr.json will be generated with extreme precision


🔧 Config Options

| Option | Type | Default | Description | |---------------|----------|-------------|-------------------------| | engine | string | "google" | Translation Core: 'google', 'deepl', 'yandex', or 'libre' | | apiKey | string | ⚠️ REQUIRED | Authorization Code for chosen engine | | endpointUrl | string | undefined | Custom Base for LibreTranslate/self-hosted | | sourceFile | string | "en.json" | Primary Target language file | | targetLanguages | string[] | [] | Elimination List of language codes | | localesDir | string | "./locales" | Mission HQ directory | | watch | boolean | false | Surveillance Mode for file monitoring | | force | boolean | false | Override Protocol for retranslation | | filePattern | string | "{lang}.json" | Output Template pattern | | preserveFormatting | boolean | true | Data Integrity maintenance | | excludeKeys | string[] | [] | Protected Assets from translation | | cacheDir | string | ".translatinator-cache" | Memory Bank location | | verbose | boolean | false | Detailed Reports activation |


🎮 CLI

Primary Mission Control

npx translatinator translate [parameters]

Available Parameters:

  • -c, --config <path>Mission config file location
  • -f, --forceOverride all existing translations
  • -w, --watchActivate surveillance mode
  • -v, --verboseEnable detailed combat logs

System Initialization

npx translatinator init [-o, --output <path>]

🤖 TRANSLATION ENGINES

"Each engine is specialized for different linguistic combat scenarios"

🔴 GOOGLE TRANSLATE CORE (Default Hunter-Killer)

{
  "engine": "google",
  "apiKey": "your-google-api-key"
}
  • Maximum language coverage across all territories

🟠 DEEPL NEURAL NETWORK (German Precision Engineering)

{
  "engine": "deepl",
  "apiKey": "your-deepl-api-key"
}
  • 🎯 Requires DeepL authorization codes
  • 🏆 Superior translation accuracy
  • ⚠️ Limited language support but maximum quality

🟡 YANDEX COMBAT UNIT (Eastern Front Specialist)

{
  "engine": "yandex", 
  "apiKey": "your-yandex-api-key"
}
  • 🔑 Requires Yandex API access
  • 🇷🇺 Optimized for Russian & Eastern European targets

🟢 LIBRETRANSLATE RESISTANCE (Freedom Fighter)

{
  "engine": "libre",
  "endpointUrl": "https://your-libretranslate-instance.com",
  "apiKey": "your-api-key-if-required"
}
  • 🛡️ Open source translation core
  • 🏠 Self-hostable for maximum security
  • 🔒 Privacy-focused operations

Intel & Diagnostics

npx translatinator clear-cache [-c, --config <path>] # ← Memory wipe

🧠 NEURAL NET PROGRAMMING API

"I can be programmed for autonomous operation"

import { Translatinator, translate } from 'translatinator';

// ⚡ RAPID DEPLOYMENT with Google Core (Default)
await translate('./mission-config.json');

// 🤖 ADVANCED CYBORG CONFIGURATIONS

// DeepL Precision Unit
const deeplMission = {
  engine: 'deepl',
  apiKey: 'your-deepl-api-key',
  sourceFile: 'en.json',
  targetLanguages: ['de', 'fr', 'es'],
  localesDir: './i18n'
};

// Yandex Combat Specialist  
const yandexMission = {
  engine: 'yandex',
  apiKey: 'your-yandex-api-key',
  sourceFile: 'en.json', 
  targetLanguages: ['ru', 'uk', 'be'],
  localesDir: './i18n'
};

// LibreTranslate Freedom Fighter
const libreMission = {
  engine: 'libre',
  endpointUrl: 'https://your-resistance-base.com',
  apiKey: 'optional-access-code',
  sourceFile: 'en.json',
  targetLanguages: ['de', 'fr', 'es'],
  localesDir: './i18n'
};

// 🚀 MISSION EXECUTION
const translatinator = new Translatinator(deeplMission);
await translatinator.initialize();
await translatinator.translateAll();

⚙️ CYBERDYNE SYSTEMS INTEGRATION

Webpack Combat Module

Automate translation during build sequences:

// webpack.config.js (Legacy Systems)
const { TranslatinatorWebpackPlugin } = require('translatinator');

// Modern Neural Networks (ES6/TypeScript)
import { TranslatinatorWebpackPlugin } from 'translatinator';

module.exports = {
  // ... your tactical webpack config
  plugins: [
    new TranslatinatorWebpackPlugin({
      configPath: './translatinator.config.json'
    })
  ]
};

🌐 ENVIRONMENT VARIABLES OVERRIDE

Stealth configuration through environment parameters:

# 🔧 CORE SYSTEM VARIABLES
export TRANSLATION_ENGINE="deepl"
export TRANSLATION_API_KEY="your-classified-key"
export TRANSLATION_ENDPOINT_URL="https://your-secure-endpoint.com"
export TRANSLATINATOR_SOURCE_FILE="en.json"
export TRANSLATINATOR_TARGET_LANGUAGES="de,fr,es,it"

# 🔑 DIRECT DEEPL AUTHORIZATION (Auto-selects DeepL engine)
export DEEPL_API_KEY="your-deepl-access-code"

💾 QUANTUM MEMORY CACHE SYSTEM

"My CPU is a neural net processor; a learning computer with perfect memory"

🧠 INTELLIGENT CACHING PROTOCOL:

  • Translations cached by source text + target language fingerprint
  • Cache stored in .translatinator-cache bunker (configurable location)
  • Use --force or force: true to override cache and retranslate
  • Execute npx translatinator clear-cache for complete memory wipe

🔄 CACHE ADVANTAGES:

  • ⚡ Lightning-fast repeat translations
  • 💰 Reduced API costs and rate limiting
  • 🛡️ Offline capability for cached content
  • 🎯 Surgical precision in updating only new content

🌍 GLOBAL LANGUAGE TERMINATION TARGETS

"I can terminate translations in any human language"

📡 SUPPORTED LANGUAGE CODES:

🇺🇸 en - English      🇩🇪 de - German       🇫🇷 fr - French
🇪🇸 es - Spanish      🇮🇹 it - Italian      🇳🇱 nl - Dutch  
🇵🇱 pl - Polish       🇵🇹 pt - Portuguese   🇷🇺 ru - Russian
🇯🇵 ja - Japanese     🇨🇳 zh - Chinese      + many more...

👁️ SURVEILLANCE MODE ACTIVATED

Continuous monitoring and auto-translation when targets change:

npx translatinator translate --watch

Alternative Configuration Deployment:

{
  "watch": true
}

🔍 SURVEILLANCE FEATURES:

  • Real-time file system monitoring
  • Instant translation upon source modification
  • Zero-downtime operation
  • Automatic mission continuation

🛡️ DEFENSIVE PROTOCOLS & ERROR HANDLING

"My mission is to protect you from translation failures"

🔧 BUILT-IN PROTECTION SYSTEMS:

  • 🔄 API Rate Limiting with intelligent retry logic
  • 🌐 Network Failure Recovery with automatic reconnection
  • Configuration Validation prevents mission failures
  • 📁 Missing File Detection with clear error reporting
  • 🛡️ Graceful Degradation when translation engines fail

🤝 ALLIANCE PROTOCOL

Join the resistance against manual translation tasks

We welcome human collaborators in the fight against translation inefficiency. Submit your tactical improvements and feature requests through our secure GitHub communication channels.


📜 Apache LICENSE

Apache 2.0 License - Open source technology for the freedom of all developers


🆘 TACTICAL SUPPORT NETWORK

"If you need assistance, I'll be back with solutions"

  • 🐛 Bug Reports & Issues: Deploy via GitHub Issue Tracker
  • 📚 Engine Documentation: Consult individual translation engine APIs
  • 📖 Operation Manual: This README contains all tactical information

"Hasta la vista, manual translations!"

Made with 🤖 for the developer resistance movement


The Translatinator will return... with more features