Plugin source code and developer tooling for ZTools
English | 简体中文
Website · Download ZTools · Client Source · Plugin Issues
This repository hosts:
- Source code for ZTools plugins (with built-in English & Simplified Chinese localization support)
- The SDK, scaffolding, build, and security verification scripts for developing plugins
Plugins declare their UI with List, Detail, Form, ActionPanel, and related primitives, while the ZTools desktop client handles rendering, theming, and system capabilities.
Just want to install plugins?
Download the desktop client from ZTools Releases and install plugins directly from the in-app marketplace.
Presence of plugin source code in this repository does not mean it is published in the marketplace yet; the in-app marketplace catalog is the source of truth.
With Node.js 24 and Git installed:
git clone https://github.com/ZToolsTeam/ZTools-extensions.git
cd ZTools-extensions
npm ci --ignore-scripts
# Scaffold extensions/my-tool/ (a runnable starter plugin)
npm run create-plugin -- my-tool "My Tool" "One-line description of what the plugin does" --author "your-github-handle"
# Build, scan, and test
node scripts/build-declarative.mjs my-tool
node scripts/scan-plugin-security.mjs extensions/my-tool
node --test extensions/my-tool/tests/*.test.mjsNext, implement your logic in extensions/my-tool/src/, try it inside the ZTools client, and open a Pull Request. See Getting Started for the full walkthrough.
| Document | When to Read |
|---|---|
| Getting Started | First plugin: scaffold, build, test, try in ZTools, submit a PR |
| UI Guidelines | Before designing UI: three standard layouts, keyboard model, pre-submit checklist |
| API Reference | While coding: components, props, hooks, host APIs, allowed modules, permissions |
| Review Standards | Before submitting: what maintainers review and what CI enforces |
| Publishing Guide | Updating manifests or releasing: versioning, targets, drafts, revocation |
| Contributing Guide | Pre-submit checklist and local verification commands |
| Directory | Contents |
|---|---|
extensions/ |
One directory per plugin: manifest, source, icon, and tests |
extensions/shared/ |
Shared source and test harness; copies inside plugins must match verbatim |
packages/declarative-ui/ |
SDK types and runtime for compilation and testing (at runtime, the client provides the runtime) |
packages/ztools-plugins-spec/ |
plugin.json JSON Schema and validator |
scripts/ |
Scaffolding, build, security scanner, pre-merge verification, and release scripts |
Report plugin or tooling issues in this repository's Issues and include:
- Plugin ID, plugin version, and ZTools client version
- OS and CPU architecture
- Steps to reproduce and error output
- For build issues: Node.js version and exact command run
Remove personal details and credentials from logs or screenshots before posting. For desktop client bugs, report them in ZTools Issues.
This repository is licensed under the MIT License.
