LocalToolBox

@add-ideas/toolbox-contract (0.2.3)

Published 2026-07-27 15:37:02 +02:00 by zemion

Installation

@add-ideas:registry=
npm install @add-ideas/toolbox-contract@0.2.3
"@add-ideas/toolbox-contract": "0.2.3"

About this package

@add-ideas/toolbox-contract

Typed, runtime-validated toolbox application manifests and catalogs, plus safe same-origin context discovery and URL resolution.

import {
  loadToolboxContext,
  parseToolboxApp,
} from "@add-ideas/toolbox-contract";

const app = parseToolboxApp(await response.json());
const result = await loadToolboxContext();

The package also owns the versioned same-origin browser preference contract. Use readToolboxPreferences() and writeToolboxPreferences() to share pinned apps, ordering, visibility, and light/dark/system mode with the Toolbox portal.

See the workspace README for the v1 document formats and full API.

The canonical schemas are also published at @add-ideas/toolbox-contract/schemas/toolbox-app.v1.schema.json and @add-ideas/toolbox-contract/schemas/toolbox-catalog.v1.schema.json.

Keywords

toolbox manifest catalog typescript
Details
npm
2026-07-27 15:37:02 +02:00
0
Apache-2.0
latest
22 KiB
Assets (1)
Versions (1) View all
0.2.3 2026-07-27