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

@giduru/plugin-api

v0.1.0

Published

Public TypeScript contracts for Giduru plugins.

Downloads

78

Readme

@giduru/plugin-api

Public TypeScript contracts for Giduru plugins.

This package intentionally exposes only the plugin-facing surface: manifest types, install config types, theme contributions, command contributions, view registration, and the browser host API available as window.giduru.

Install

npm install --save-dev @giduru/plugin-api

Manifest

import { defineGiduruPluginManifest } from '@giduru/plugin-api';

export default defineGiduruPluginManifest({
  id: 'dev.giduru.demo',
  name: 'Giduru Demo Plugin',
  version: '0.1.0',
  giduruApiVersion: 1,
  permissions: ['ledger.read', 'navigation.openView'],
  platforms: ['web', 'ios', 'android'],
  contributes: {
    views: [
      {
        path: 'giduru-plugin://dev.giduru.demo/view/overview',
        label: 'Demo Overview',
        viewPath: 'Plugins/Demo/Overview',
        entry: 'view.js',
      },
    ],
    commands: [
      {
        id: 'open-overview',
        title: 'Open Demo Plugin Overview',
        category: 'Plugins',
        action: {
          type: 'open-view',
          path: 'giduru-plugin://dev.giduru.demo/view/overview',
        },
      },
    ],
    themes: [
      {
        id: 'demo-dark',
        label: 'Demo Dark',
        kind: 'dark',
        colors: {
          border: '#293241',
          borderStrong: '#3d5a80',
          editor: '#0b1020',
          foreground: '#eef2ff',
          foregroundMuted: '#a8b3cf',
          green: '#72efdd',
          panel: '#111827',
          panelAlt: '#182235',
          panelSoft: '#1f2a44',
          primary: '#98c1d9',
          primaryText: '#08111f',
          red: '#ee6c4d',
          redSoft: '#3d1f22',
          slate: '#7b879f',
          warning: '#ffd166',
        },
      },
    ],
  },
});

View Entry

import type { GiduruPluginViewContext } from '@giduru/plugin-api';

window.giduru?.registerView({
  path: 'giduru-plugin://dev.giduru.demo/view/overview',
  render(container: HTMLElement, context: GiduruPluginViewContext) {
    let latestSnapshot = context.snapshot;

    function paint() {
      container.textContent = `Vault: ${latestSnapshot.vault?.name ?? 'None'}`;
    }

    paint();
    return context.subscribe((snapshot) => {
      latestSnapshot = snapshot;
      paint();
    });
  },
});

Vault Config

External plugins are listed in .giduru/plugins.json:

{
  "plugins": [
    {
      "id": "dev.giduru.demo",
      "name": "Giduru Demo Plugin",
      "path": "dev.giduru.demo",
      "manifestUrl": "http://localhost:4173/giduru-plugin.json",
      "version": "0.1.0"
    }
  ]
}

Giduru installs missing remote plugins into .giduru/plugins/<id>/ and then loads the installed manifest and entry files from the vault. During local development, you can edit files directly in .giduru/plugins/<id>/ and omit manifestUrl.