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

mapeo-config-translator

v1.1.1

Published

Translate configuration files for Mapeo based on a CSV file or a Google Spreadsheet

Readme

Mapeo Config Translator

Overview

This script is a Node.js application designed to translate JSON files using data from a CSV file or a public Google Sheet. It uses string similarity to find the best match for each term in the JSON files and writes the translations to new JSON files.

Features

  • CSV and Google Sheets Support: The script can use either a CSV file or a public Google Sheet as the source of translations.
  • String Similarity Matching: The script uses string similarity to find the best match for each term in the JSON files.
  • JSON File Generation: The script writes the translations to new JSON files, preserving the original structure of the JSON files.
  • Language Support: The script supports multiple languages for translation. The main language for translation can be specified as a command line argument.

Usage

The script is run from the command line with the following arguments:

  • csvFilePath: The path to the CSV file or the url or id of the public Google Sheet containing the translations (must be according with template).
  • projectFolderPath: The path to the folder containing the configuration files to translate (optional, defaults to current folder).

Easiest way is to use it from inside a Mapeo config project.

Run directly with npx: npx mapeo-config-translator https://docs.google.com/spreadsheets/d/1S7mdKPfT_3AaWS9mxn1qy5mj1aszuRNuncC7GlDSz_8/edit#gid=0

Or install globally: npm i -g mapeo-config-translator

And run with mapeo-config-translator 1S7mdKPfT_3AaWS9mxn1qy5mj1aszuRNuncC7GlDSz_8 /path/to/config

Example template for translations is available here: https://docs.google.com/spreadsheets/d/1S7mdKPfT_3AaWS9mxn1qy5mj1aszuRNuncC7GlDSz_8/edit#gid=0

To-Dos

  • Error Handling: Improve error handling for cases where the CSV file or Google Sheet cannot be read, or the JSON files cannot be written.
  • Performance Optimization: Optimize the script for large numbers of JSON files or large CSV files/Google Sheets.
  • Testing:
    • [x] Google Sheets url
    • [x] Google Sheets id
    • [ ] CSV
  • Documentation: Improve documentation for the script, including more detailed usage instructions and examples.