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

@ethisyscore/plugin-sdk

v1.0.0-alpha.12

Published

EthisysCore Plugin SDK for Node.js — build container-hosted plugins with TypeScript/JavaScript

Downloads

315

Readme

EthisysCore Node.js Plugin SDK

@ethisyscore/plugin-sdk — Build container-mode plugins with TypeScript/JavaScript.

Container plugins run as isolated Docker containers with Dapr sidecars, communicating with the EthisysCore platform via HTTP.

Installation

npm install @ethisyscore/plugin-sdk

Quick Start

import { PluginBase, PluginHost } from '@ethisyscore/plugin-sdk';
import type { PluginManifest, PluginContext, ToolResult } from '@ethisyscore/plugin-sdk';

class GreeterPlugin extends PluginBase {
  get manifest(): PluginManifest {
    return {
      id: 'greeter',
      name: 'Greeter Plugin',
      version: '1.0.0',
      type: 'TenantPlugin',
      owner: 'acme-corp',
      compatibleCoreVersion: '>=1.0.0',
      mcpVersion: '1.0',
      executionMode: 'Container',
      mcpTools: [{
        name: 'greet',
        description: 'Say hello',
        inputSchemaJson: JSON.stringify({
          type: 'object',
          properties: { name: { type: 'string' } },
          required: ['name']
        })
      }]
    };
  }

  async onInvokeTool(toolName: string, args: unknown, context: PluginContext): Promise<ToolResult> {
    if (toolName === 'greet') {
      const { name } = args as { name: string };
      return { success: true, resultJson: JSON.stringify({ greeting: `Hello, ${name}!` }) };
    }
    return { success: false, error: `Unknown tool: ${toolName}` };
  }
}

new PluginHost(new GreeterPlugin()).start();

Lifecycle Hooks

All hooks are optional — override only what you need:

async onInitialize(context: PluginContext): Promise<void>    // After platform connects
async onEnable(context: PluginContext): Promise<void>        // Extension enabled for tenant
async onDisable(context: PluginContext): Promise<void>       // Extension disabled
async onGetResource(uri: string, context: PluginContext): Promise<ResourceResult>
async onCheckHealth(): Promise<HealthResult>                 // Health probe

Platform Services

Available through PluginContext:

// Key-value persistence (per plugin per tenant)
const count = await context.dataStore.get<number>('counter') ?? 0;
await context.dataStore.set('counter', count + 1);

// Structured logging
context.logger.info('Processing request');
context.logger.error('Failed to process', new Error('...'));

// Invoke tools from other plugins
const result = await context.mcpClient.invokeTool('other-tool', '{"key":"value"}');

// Publish domain events
await context.publishEvent('ItemCreated', { id: '123' });

HTTP Endpoints

PluginHost starts an Express server (port: DAPR_APP_PORT or 8080):

| Endpoint | Method | Purpose | |----------|--------|---------| | /plugin/initialize | POST | Platform connects, provides context | | /plugin/enable | POST | Extension enabled for tenant | | /plugin/disable | POST | Extension disabled | | /plugin/invoke-tool | POST | MCP tool invocation | | /plugin/get-resource | POST | MCP resource read | | /plugin/health | GET | Health probe | | /plugin/heartbeat | GET | Liveness check |

Environment Variables

| Variable | Purpose | Default | |----------|---------|---------| | DAPR_APP_PORT | Port the plugin listens on | 8080 | | DAPR_HTTP_PORT | Dapr sidecar HTTP port | 3500 | | DAPR_API_TOKEN | Dapr sidecar auth token | — |

v1 Limitations

Compared to the .NET SDK:

  • Monolithic dispatch — all tools route through onInvokeTool() (no handler-per-tool classes)
  • No middleware pipeline — no built-in error handling, logging, or validation middleware
  • No DI container — plugins manage their own dependencies

Handler-per-tool, middleware, and DI are planned for v2.

Build & Test

npm ci
npm run build
npm test