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

@fatagnus/dink-ui-plugins

v2.32.0

Published

Plugin host system for Dink UI — trust-class isolation, bridge API, micro-frontend loader

Readme

@fatagnus/dink-ui-plugins

Plugin host system for Dink UI -- trust-class isolation, bridge API, manifest validation, and micro-frontend loader.

Install

npm install @fatagnus/dink-ui-plugins

Peer dependencies: @fatagnus/dink-semantic, @fatagnus/dink-web, react.

Quick Start

import { PluginHost, PluginSlot, PluginRegistry } from '@fatagnus/dink-ui-plugins';

const registry = new PluginRegistry();

function Dashboard() {
  return (
    <PluginHost registry={registry}>
      <PluginSlot slotId="sidebar-widget" />
    </PluginHost>
  );
}

Plugin Manifest (dink-plugin.json)

{
  "id": "siem-alert-map",
  "name": "Alert Map",
  "version": "1.0.0",
  "entry": "./dist/index.js",
  "surfaces": ["desktop", "tablet"],
  "trustClass": "verified",
  "permissions": {
    "scopes": ["read", "subscribe"],
    "resources": ["dink://alerts/**"]
  },
  "semantic": {
    "role": "widget",
    "intent": "Display alert geo-map",
    "actions": { "refresh": { "description": "Reload alert data" } }
  }
}

Validate with validateManifest(json) which uses Zod under the hood.

Trust-Class Isolation Tiers

| Trust Class | Isolation | Use Case | |---|---|---| | privileged | Same React tree, full API | First-party modules | | verified | Same React tree, scoped bridge | Audited third-party plugins | | untrusted | Sandboxed iframe, message-passing | Unknown/community plugins |

Key Exports

Host Components

| Export | Description | |---|---| | PluginHost | Top-level provider -- manages plugin lifecycle and bridge instances | | PluginSlot | Mounting point that renders a plugin by slot ID | | PluginLoader | Low-level loader for dynamic import of plugin entry modules |

Bridge API

| Export | Description | |---|---| | createPluginBridge(config) | Create a bridge instance for plugin-host communication | | IframeBridgeHost | Host-side bridge for untrusted iframe plugins | | PluginBridge | Type: read state, invoke actions, subscribe to semantic tree changes |

Manifest (./manifest)

| Export | Description | |---|---| | validateManifest(json) | Validate and parse a dink-plugin.json manifest | | PluginManifest | Type: full manifest schema | | TrustClass | 'privileged' \| 'verified' \| 'untrusted' |

Registry

| Export | Description | |---|---| | PluginRegistry | In-memory registry of available plugins | | PluginRegistryEntry | Type: registered plugin metadata |

Elevation

| Export | Description | |---|---| | handleElevationRequest(request) | Process a plugin's request for elevated permissions |

Testing (./testing)

| Export | Description | |---|---| | MockPluginBridge | Fake bridge for unit testing plugin components | | MockPluginRegistry | Fake registry for testing host components |

Subpath Exports

  • . -- Everything
  • ./manifest -- Manifest types and validation only
  • ./testing -- Test mocks

Design Spec

docs/superpowers/specs/2026-03-16-dink-frontend-framework-design.md