Examples
This page is an index only. The single source of truth (SoT) is the repository examples/ directory. Large copied code blocks are intentionally removed.
Examples
This page is an index only. The single source of truth (SoT) is the repository examples/ directory. Large copied code blocks are intentionally removed.
Rules
- Update source files in
examples/first, then update this index. - Keep this page as a file map + purpose notes only.
- If files are renamed/removed, update this index in the same change.
Plugin Basics & Lifecycle
examples/basic-usage.js: basic SDK message flow (search/translate/notify).examples/complete-example.js: full plugin init + storage + notification + clipboard flow.examples/index.js: lightweight SDK wrapper (sendMessage/communicateWithPlugin).examples/plugin-index-example.js:IFeatureLifeCycleentry and message dispatch sample.examples/plugin-receiver-example.js: receiver-side plugin message handlers.
Plugin Communication / Channel
examples/communicate-example.js: basiccommunicateWithPluginusage.examples/complete-communication-example.js: batch messaging, error handling, status probing.
Messaging & Notifications
examples/message-system-example.js: unified message sending examples.examples/notification-example.js: notification show/update/hide flow.
Power / Degradation Strategy
examples/power-sdk-example.js: low-power degrade and recovery pattern.
DivisionBox
examples/division-box/README.mdexamples/division-box/basic-usage.tsexamples/division-box/keepalive-mode.tsexamples/division-box/custom-header.tsexamples/division-box/flow-integration.tsexamples/division-box/flow-usage-example.tsexamples/division-box/manifest-example.json
Utility Packages
examples/util-pkg/tuff-helpexamples/util-pkg/tuff-testexamples/util-pkg/tuff-utils
Maintenance Notes
- Review behavior from source files in
examples/. - Use
packages/utils/as the authority for runtime contracts and types.
Was this helpful?