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

@crisgfx/kirbyup-plugin-i18n-updater

v1.0.0

Published

For kirby panel plugin devs: See instant updates of Your locale files edits.

Readme

i18nUpdater for kirbyup

A very basic Vite / kirbyup plugin for panel plugin devs (😱 Pluginception) to instantly show changes in the current view, whenever You edit Your plugin's locale files.

Installation

npm i -D @crisgfx/kirbyup-i18nUpdater

Usage

Register the plugin in Your kirbyup config file.
Add a source path to the folder that contains all language files (they must be .json files, i.e. en.json, de.json, etc...).

// `kirbyup.config.js`
import i18nUpdater from '@crisgfx/kirbyup-i18n-updater'

export default defineConfig({
  vite: {
    // ...
    plugins: [
      i18nUpdater({
        source: 'src/i18n/'
      })
    ],
    // ...
  }
});

Then, in Your plugin's main entry point add the callback, that takes care of refreshing the current panel view:

// `index.js`
import { updateLocale } from '@crisgfx/kirbyup-i18n-updater/updateLocale'

// Listen for locale file changes in dev mode.
if (import.meta.env.DEV && import.meta.hot) {
  import.meta.hot.on('i18n-update', updateLocale)
}

panel.plugin("florian-silberrücken/kirby-monkeyboy", {
  // Plugin magic.
});

[!TIP]
You probably already know how to do this, but I wanted to use Github's fancy alerts – so, here's a quick and dirty example on how to load json files into Your translations array – though it might be better to write the code a bit more readable and outsource it to a dedicated file, in order to keep Your plugin structure clean and tidy.

<?php
// index.php
use Kirby\Cms\App;
use Kirby\Filesystem\Dir;
use Kirby\Toolkit\A;
use Kirby\Data\Json;

$sourceDir = __DIR__ . '/src/i18n';

App::plugin(
  'florian-silberrücken/kirby-monkeyboy',
  extends: [
    // ...
    'translations' => array_merge(
			...A::map(Dir::files($sourceDir),
			function ($file) use($sourceDir) {
				if ($translations = Json::read($sourceDir . '/' . $file)) {
					// Store translations in corresponding locale array.
					return [basename($file, '.json') => $translations];
				} 
			})
		)
  ]
);

NOTES

Thanks to @johannschopplich and @jonaskuske for creating kirbyup! ❤︎

License

MIT © 2025 Cris