Sign In

@eldrex/plugin-sdk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eldrex/plugin-sdk

SDK for building DevDiff plugins

npmnpm
Version
1.8.1
Version published
Weekly downloads
416
-1.19%
Maintainers
1
Weekly downloads
 
Created
Source

@eldrex/plugin-sdk

Official Plugin Development SDK for DevDiff

Build DevDiff plugins without touching core. Stable API, semantic versioning, TypeScript-first.

npm version License: MIT

Installation

npm install @eldrex/plugin-sdk

Quick Start — Building a Plugin

import {
  DevDiffPlugin,
  PluginContext,
  ParsedDiff,
  ProjectContext,
  ChangelogResult,
} from "@eldrex/plugin-sdk";

export const myPlugin: DevDiffPlugin = {
  id: "my-custom-plugin",
  name: "My Custom Plugin",
  version: "1.0.0",
  description: "Extends DevDiff with custom notifications",
  author: {
    name: "Developer",
    url: "https://github.com/example/my-custom-plugin",
  },
  devdiffVersion: ">=1.0.0",

  async activate(context: PluginContext) {
    context.logger.info("Plugin activated!");
  },

  hooks: {
    async afterAnalysis(changelog: ChangelogResult) {
      console.log(`Changelog generated: ${changelog.summary}`);
      return changelog;
    },
  },
};

export default myPlugin;

🔒 Permissions & Security

Plugins declare permissions in their manifest:

  • network: Array of allowed domain endpoints.
  • filesystem: Paths allowed for reading/writing.
  • shell: Allowed binary operations.

Users can audit declared vs actual plugin behavior via devdiff plugin audit <plugin-name>.

License

MIT © DevDiff Contributors

Keywords

devdiff

FAQs

Package last updated on 21 Aug 2026

Related posts