Skip to content

The manifest

The manifest is the plugin field inside your plugin's package.json. There is no separate manifest file. It carries three fields: main, renderer, and access.

Full annotated shape

{
  "name": "@acme/my-plugin",
  "version": "0.1.0",
  "engines": { "lore": ">=0.9.0-0 <1.0.0" },
  "dependencies": {
    // Resolved from the workspace while the SDK is not on npm.
    "@lore-vcs/desktop-plugins-sdk": "workspace:^"
  },
  "plugin": {
    // Backend entry: CJS, must default-export a definePluginMain() result.
    "main": "dist/main.js",

    // Renderer entry: ESM, must default-export a definePluginRenderer() result.
    // Optional: omit if your plugin has no UI contributions.
    "renderer": "dist/renderer.js",

    // Opt-in grants for bridge surfaces. See access-grants.md.
    "access": [
      "data:repository.current",
      "events:branches.updated",
      "call:repository.users"
    ]
  }
}

Field notes

  • main must point to a file that exists after build. The host calls require(main) and expects a default export produced by definePluginMain().
  • renderer is loaded by the host's renderer process via dynamic import. It must default-export a definePluginRenderer() result. Omit it if your plugin has no slot contributions or pages.
  • access is checked at every bridge call. A surface you didn't grant throws GrantDenied on first use. Malformed grants fail the plugin at load time. See Access grants.
  • engines.lore is a required semver constraint on the host version. The host compares it against the app version using semver.satisfies with includePrerelease: true. A missing engines.lore fails manifest parsing. A valid range that does not match the host version records the plugin with an error and skips activation. lore-plugin build and lore-plugin pack refuse a value that is not a valid semver range before writing anything, and the Plugins screen refuses a zip whose range does not match the running app, showing the reason on the file's row.
  • peerDependencies lists anything the host supplies rather than your bundle, notably @epicgames/eds-react. The renderer build externalizes a fixed set of packages (react, react/jsx-runtime, react-dom, react-dom/client, the SDK entry points, and @epicgames/eds-react), and the host resolves them through its import map at runtime. Listing them under dependencies would wrongly imply your plugin ships its own copy. Pair each one with a devDependency at the same range so your package still typechecks and tests standalone.
  • Output paths. lore-plugin build writes the main tier to dist/main.js and the renderer entry to dist/renderer.js. It refuses to build when plugin.main or plugin.renderer point anywhere else, or when renderer is declared and there is no src/renderer.ts or src/renderer.tsx. See Build, pack, and install a plugin.
  • Unknown fields. The host rejects any other key under plugin. The old contributes and activationEvents fields are not supported; use reg.provide() in the renderer and reg.activateEagerly() in the backend instead.

Contributions are registered at runtime

Contributions (slot components and pages) are registered imperatively in your renderer's register() function via reg.provide(). The manifest carries main, renderer, and access, and nothing else.

This gives you two properties:

  1. Type-checked at registration. reg.provide(tag, component) checks the component's props against the slot's declared prop interface at compile time.
  2. Static until disposal. There is no dynamic contribution API. A contribution whose visibility depends on runtime state should always be registered and render conditionally from data it subscribes to. Renderer slots and pages covers the data-plane pattern in detail.
// renderer.ts
export default definePluginRenderer<MyContract>(() => ({
  register(reg) {
    // Type-safe: BranchActionChip's props must match the slot's declared interface.
    reg.provide("branch-row.actions", BranchActionChip, { mode: "append" });
  },
}));

Example: @lore/branch-explorer

@lore/branch-explorer is the plugin that ships with Lore Desktop as the default Branches tab view. This is its manifest, with build-only dependencies omitted:

{
  "name": "@lore/branch-explorer",
  "version": "0.1.0",
  "engines": {
    "lore": ">=0.9.0-0 <1.0.0"
  },
  "peerDependencies": {
    "@epicgames/eds-react": "^3.12.0"
  },
  "devDependencies": {
    "@epicgames/eds-react": "^3.12.0"
  },
  "plugin": {
    "main": "dist/main.js",
    "renderer": "dist/renderer.js",
    "access": [
      "data:app.language",
      "data:repository.branches",
      "data:repository.archivedBranches",
      "data:repository.currentRevision",
      "data:repository.revisions",
      "call:repository.create",
      "call:repository.users",
      "call:repository.refreshBranches",
      "call:repository.switch",
      "call:repository.archive",
      "call:repository.restore",
      "call:repository.merge",
      "call:repository.syncToRevision",
      "call:repository.fetchRevisions",
      "call:repository.revisionHistory"
    ]
  }
}

It declares fifteen grants across two surface types: five data: grants for read-only subscriptions (host UI language, branches, archived branches, current revision, revisions) and ten call: grants for mutating operations (create, switch, archive, restore, merge, sync) and queries (refresh, fetch revisions, revision history). This is typical for a full-featured tab that both reads and writes repository state.

data:app.language is the one non-repository.* read. It is the host's UI language and locale.

The manifest declares what your plugin needs. The next page explains how the host enforces those declarations at runtime.

Access grants →