Skip to content

wangdiandao/widget-workshop

v0.1.0MIT

Develop components for Widget Workshop.

Widget Workshop Component Development

简体中文 · English

Develop components for Widget Workshop with HTML, CSS and JavaScript. This repository provides developer guides, current host API references, examples and a Codex/Claude Code plugin.

Documentation · Quickstart · Examples and solutions · API reference · Report an issue

Run the documentation locally

Use Node.js 22 or newer:

npm ci
npm run check
npm run docs:dev

Build with npm run docs:build and preview with npm run docs:preview. Chinese documentation is at the site root; English documentation is under /en/.

Install the development plugin

The repository root is the plugin. It bundles documentation, SDK type references and two English Skills:

  • widget-workshop-dev — development, API lookup, debugging and review.
  • widget-workshop-examples — examples, solutions and local-development lessons, loaded as needed.

Codex CLI:

codex plugin marketplace add wangdiandao/widget-workshop-dev --ref main
codex plugin add widget-workshop@widget-workshop-dev

Claude Code:

/plugin marketplace add wangdiandao/widget-workshop-dev
/plugin install widget-workshop@widget-workshop-dev

For local use, run claude --plugin-dir ., or register the repository with codex plugin marketplace add . and install the same plugin name. See the plugin guide for usage.

Repository contents

DirectoryContents
docs/guide, docs/en/guideComponent development guides
docs/recipes, docs/en/recipesExamples and solutions
docs/reference, docs/en/referenceHost API and protocol references
docs/public/sdkDevelopment-only declarations and machine protocol
examplesExample component source
skillsShared Codex / Claude Code Skills
toolsRepository tooling

The host provides SDK 0.1.0 with hostApiMajor and protocolVersion set to 1. Use the declarations for development, but do not bundle SDK files into a component. See the reference and third-party notices.

Feedback

External contributions and pull requests are not accepted. Report problems or suggest features through Issues. See Contribution Policy.