@apinteract/plugin-sdk
v1.1.0
Published
Optional authoring helpers for developing APInteract plugins.
Readme
@apinteract/plugin-sdk
Optional authoring helpers for APInteract plugins.
pnpm add --save-dev @apinteract/plugin-api @apinteract/plugin-sdkHelpers are grouped by target and purpose:
import { parseJsonObject } from "@apinteract/plugin-sdk/backend/import";
import { localize } from "@apinteract/plugin-sdk/frontend/localization";The frontend localization helper performs cached, script-safe BCP 47 matching.
It accepts compatible region forms such as zh-CN for an active zh-Hans
locale and falls back to the supplied default when no compatible translation
exists. Keep translation maps immutable after registration.
The SDK is independently versioned from the plugin contract. Plugin builds
must bundle SDK runtime helpers into their own dist/ output; an installed
plugin must not require this package at runtime.
See the plugin development guide for packaging and compatibility details.
License
MIT
