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

i18n-agent-nest

v0.1.15

Published

Serve i18n-agent bundles from your own NestJS backend — self-hosted translation delivery with ETag caching. No third-party cloud.

Readme

i18n-agent-nest

Serve i18n-agent translation bundles from your own NestJS backend — self-hosted delivery with ETag caching. No third-party cloud, no per-request fees: the bundle is static files in your deploy, your server is the only server involved.

npm i i18n-agent-nest
import { I18nAgentModule } from 'i18n-agent-nest';

@Module({
  imports: [
    I18nAgentModule.forRoot({
      bundleDir: join(__dirname, '..', 'i18n-bundle'), // produced by `i18n-agent export --bundle`
      route: 'i18n',                                   // default
      // cacheControl: 'public, max-age=60, stale-while-revalidate=600',
    }),
  ],
})
export class AppModule {}

Regenerate the bundle on deploy (or whenever translations change):

i18n-agent translate && i18n-agent export --bundle

What gets served

| Route | Content | |---|---| | GET /i18n/manifest.json | bundle etag, languages, per-file sha256 | | GET /i18n/web/<lang>/<ns>.json | web locales (runtime fetch) | | GET /i18n/android/res/values-<lang>/strings.xml | Android resources (CI fetch at build) | | GET /i18n/ios/Localizable.xcstrings | iOS String Catalog (CI fetch at build) | | GET /i18n/ts/i18n-keys.d.ts | generated key types |

  • Every response carries an ETag (content hash from the manifest); If-None-Match304.
  • Only manifest-listed paths are served — path traversal is structurally impossible.
  • Regenerating the bundle in place is picked up automatically (manifest mtime watch).
  • Works on both Nest HTTP adapters — Express and Fastify. Routes are registered directly on the adapter (the two routers share no wildcard syntax), so the bundle mounts at the app root: global prefixes, guards, and interceptors do not apply to it.
  • Not on Nest? The bundle is plain static files — express.static, nginx root, or an S3 bucket work just as well; this module only adds correct ETags and a manifest route on top.

MIT