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

multidoctranslator

v0.1.3

Published

Translate GitHub repository documentation into 40+ languages using Lingo.dev. Fast batch translation CLI tool for README, CONTRIBUTING, and docs.

Readme

MultiDocTranslator

npm version License: GPL-3.0

A CLI tool to translate GitHub repository documentation into multiple languages using Lingo.dev API. Supports README, CONTRIBUTING, and docs folders.

Features

  • Translate README, CONTRIBUTING, and docs to 40+ languages
  • Batch translation (faster than doing one language at a time)
  • Interactive mode for easy setup
  • CLI mode for scripts/automation
  • Works with public and private repos
  • Uses Lingo.dev API for translations

Install

npm install -g multidoctranslator

Quick Start

  1. Get API key from lingo.dev
  2. Set it: export LINGODOTDEV_API_KEY=your_key
  3. Run: multidoctranslator translate --repo owner/repo --languages es,fr

Usage

# Interactive mode (asks questions)
multidoctranslator

# Direct usage
multidoctranslator translate --repo owner/repo --languages es,fr,de

# More options
multidoctranslator translate --repo owner/repo --languages es,fr --include-contributing --include-docs --output ./translated

Options

  • --repo / -r: Repository (owner/repo or URL)
  • --languages / -l: Languages (es,fr,de)
  • --output / -o: Output folder (default: ./translations)
  • --include-contributing: Include CONTRIBUTING.md
  • --include-docs: Include /docs folder
  • --token / -t: GitHub token for private repos

Examples

# Basic translation
multidoctranslator translate --repo facebook/react --languages es,fr

# Include everything
multidoctranslator translate --repo owner/repo --languages es,fr,de --include-contributing --include-docs

# Private repo
multidoctranslator translate --repo owner/private-repo --token ghp_xxx --languages es,fr

Languages

Supports 40+ languages including Spanish, French, German, Japanese, Chinese, Arabic, Hindi, and many more.

Use language codes like: es,fr,de,ja,zh,ar,hi

Output Structure

Translated files are saved with locale suffix:

translations/
├── README.es.md          # Spanish
├── README.fr.md          # French
├── README.de.md          # German
├── CONTRIBUTING.es.md    # If --include-contributing used
└── ...

Pattern: {filename}.{locale}.md

Troubleshooting

API Key Issues

Repository Issues

  • Use format: owner/repo or https://github.com/owner/repo
  • For private repos, add --token ghp_your_token

Other Errors

  • Check your Lingo.dev quota if you get limit errors
  • Make sure the repo has README.md or use flags for other files

How it works

  1. Fetches markdown files from GitHub
  2. Sends them to Lingo.dev for translation
  3. Saves translated files with language suffixes

Runs locally on your machine. No server needed.

Development

git clone https://github.com/codewithevilxd/MultiDocTranslator.git
cd MultiDocTranslator
npm install
npm run cli:build
npm run cli:run translate -- --repo owner/repo

Contributing

PRs welcome! Fork, make changes, send PR.

License

GPL-3.0

Thanks

  • Lingo.dev for translations
  • Commander.js & Inquirer.js for CLI