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

@dsi18n/airtable-sync

v0.1.0

Published

Build-time Airtable → dsi18n locale JSON (manifest + per-locale dictionaries).

Readme

@dsi18n/airtable-sync

Build-time tool: pull translation rows from Airtable and write dsi18n locale files (manifest.json, en.json, es.json, …).

Use with @dsi18n/dsi18n at runtime (no Airtable calls in production).

Install

npm install -D @dsi18n/airtable-sync

Requires Node.js 18+.

CLI

Create a .env in your project root:

AIRTABLE_API_KEY=pat_...
AIRTABLE_BASE_ID=app...
AIRTABLE_TABLE=Translations
I18N_OUT_DIR=./locales

Run:

npx dsi18n-sync

dsi18n-sync loads .env from the current directory and parent folders (nested overrides win), then runs the build.

Common env vars

| Variable | Description | |----------|-------------| | AIRTABLE_API_KEY | Personal access token | | AIRTABLE_BASE_ID | Base id (app…) | | AIRTABLE_TABLE | Table name (or use I18N_TABLES comma-separated) | | I18N_OUT_DIR | Output directory (default: ./locales) | | I18N_KEY_FIELD | Key column name (default: key) | | I18N_DEFAULT_LOCALE | Default locale tag (default: en) | | I18N_LOCALES | Force locale list, e.g. en,es | | I18N_TYPES_OUT_FILE | Optional path to generate TranslationKey TypeScript | | I18N_VERSION | Bundle version string in manifest | | I18N_DEBUG | 1 or true for verbose logs |

Programmatic API

import {
  loadBuildConfigFromEnv,
  loadProjectEnv,
  runBuild,
} from "@dsi18n/airtable-sync";

loadProjectEnv();
process.env.I18N_OUT_DIR ??= "./locales";

await runBuild(loadBuildConfigFromEnv());

package.json script

{
  "scripts": {
    "i18n:sync": "dsi18n-sync"
  },
  "devDependencies": {
    "@dsi18n/airtable-sync": "^0.1.0"
  }
}

Commit the generated locales/ folder (or generate in CI before deploy), then load them with @dsi18n/dsi18n.

Output layout

locales/
  manifest.json
  en.json
  es.json

Related

  • Runtime: @dsi18n/dsi18ncreateI18n, t(), loadLocalesFromDirectory.

License

MIT