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

@ablogcms/plugins

v3.2.28-beta.0

Published

管理画面 JS 拡張基盤のプラグイン登録レジストリ

Readme

@ablogcms/plugins

管理画面 JS 拡張基盤のプラグイン登録レジストリ(ACMS.plugins)を提供するパッケージ。 イベント購読・機能登録(unitEditor/dataview)・UI 差し込み(Slot/Fill)・設定参照を 1 つの setup(ctx) に束ねる。

拡張ポイントの一覧(イベント・Slot・レジストリの対応表)は HOOKS.md を参照。

使い方

import { register } from '@ablogcms/plugins';

register('acms-plugin-sample', {
  version: '1.0.0',
  setup(ctx) {
    // ゲート: アップロード前の確認
    ctx.events.on('media.upload.before', async (event) => {
      const ok = await ACMS.Library.dialog.confirm('確認…');
      return ok ? event : false;
    });

    // 通知: アップロード完了後の処理
    ctx.events.on('media.upload.success', (event) => notifyExternal(event.items));

    // レジストリ: カスタムユニットタイプ
    ctx.unitEditor.registerUnitDefinition('myUnit', myUnitDef);

    // UI: ユニットツールバーへのボタン追加
    ctx.ui.fill('unit-editor.unit-toolbar', MyToolbarButton);
  },
});
  • register(name, definition): プラグインを登録する。同名の重複登録は throw する。
  • unregister(name): setup(ctx) 内で行ったイベント購読・レジストリ登録・Fill をすべて自動解除する。
  • get(name) / getAll(): 登録済みプラグインを取得する(デバッグ用)。
  • setup() が同期的に throw した場合、途中まで行われた登録は自動でロールバックされる。