Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 1.26 KB

CONTRIBUTING.md

File metadata and controls

13 lines (9 loc) · 1.26 KB

Contributing a tool

  1. Give the tool a unique lowercase kebab-case filename in tools/, such as word-counter.html.
  2. Keep the tool in one UTF-8 HTML file up to 256 KiB. Put the name, description, category, and schema version in one <script type="application/masscode-tool+json"> element. Use the metadata schema as a reference.
  3. Use inline JavaScript and CSS. Keep input, computation, and output local to the widget. Use window.massCode.copy(text) to propose a value for confirmation by the user in massCode.
  4. Use keyboard-accessible controls with labels. Check the layout in light and dark themes before submitting a pull request.
  5. Include the license and attribution for any code or assets you redistribute. The starter tools use the repository's MIT license.

Run node scripts/build-registry.mjs --check in the standalone registry checkout. The validator parses the file and metadata. Maintainers review JavaScript behavior and bundled assets separately.

Removing or blocking a tool

Removing a file delists the tool. To prevent execution of a specific revision, record its full SHA-256 in blocked.json with a UTC ISO timestamp and optional reason. Keep known hashes in the manifest so older clients can retain the block when offline.