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

next-loco

v1.2.2

Published

A powerful, npx-ready CLI tool to translate Next.js locale JSON files using MyMemory or DeepL. It handles nested JSON structures, supports batch folder translation, uses efficient batching for large files, and features an interactive wizard for a seamless

Readme

Next-Loco Translator v1.2.2

A powerful, npx-ready CLI tool to translate Next.js locale JSON files using MyMemory or DeepL. It handles nested JSON structures, supports batch folder translation, uses efficient batching for large files, and features an interactive wizard for a seamless experience.

Features

  • Nested JSON Support: Flattens nested keys for translation and reconstructs the structure back.
  • Batch Folder Translation: Translate an entire directory of locale files while preserving the folder hierarchy.
  • Interactive CLI Wizard: Run without parameters to be guided through the setup with a user-friendly wizard.
  • Dynamic API Key Validation: Prompts for and validates DeepL API keys at runtime if not found in environment.
  • Efficient Batching: Translates many strings in batches to optimize API usage and handle large files efficiently.
  • Service Options: Choose between MyMemory (free) and DeepL (requires API key).

Installation & Quick Start

You can run it directly using npx:

npx next-loco

Just run the command, and the Next-Loco Wizard will guide you through the process! ✨

CLI Usage (Advanced)

npx next-loco [options]

Options:
  -v, --version           output the version number
  -i, --input <path>      Source locale file or directory (e.g., locales/en)
  -o, --output <path>     Destination locale file or directory (e.g., locales/bn)
  -s, --service <service> Translation service: mymemory or deepl
  -f, --from <lang>       Source language code (e.g., en)
  -t, --to <lang>         Target language code (e.g., bn)
  -h, --help              display help for command

Folder Translation

Next-Loco now supports translating entire directories. This is perfect for Next.js projects with multiple locale files:

npx next-loco -i ./locales/en -o ./locales/bn

The tool will find all .json files recursively and reproduce the structure in the destination folder.

Configuration

Service-specific configurations can be pre-configured via environment variables to skip prompts:

  • DEEPL_API_KEY: Your DeepL API key.
  • MYMEMORY_EMAIL: Optional for MyMemory to increase rate limits.

You can create a .env file in your root:

DEEPL_API_KEY=your_key_here
[email protected]

Credits

In collaboration with innoline.tech.

[!TIP] Your support keeps this project alive and free for everyone!