English | 简体中文
- ⚡️ Tuff plugin template with a runnable dev UI (Vite + Vue).
- 🧩 Latest plugin baseline:
sdkapi: 260428, explicit permissions, andsearchProviders. - 🧪 Minimal CoreBox starter feature:
template-echowith a copy action. - 🦾 TypeScript types for plugin development.
- ⚙️ Typecheck with
vue-tsc, unit tests with Vitest.
Requires Node >=22
Create a repo from this template on GitHub.
If you prefer to do it manually with the cleaner git history
npx degit talex-touch/tuff-plugin-template my-tuff-plugin
cd my-tuff-plugin
pnpm i # If you don't have pnpm installed, run: npm install -g pnpmWhen you use this template, update these fields first:
- Update plugin metadata in
manifest.json(id,name,version,icon,description) - Keep
manifest.json#namealigned with the installed plugin directory name - Update features/commands,
permissions,permissionReasons, andsearchProvidersinmanifest.json - Implement your logic in
index.js(onFeatureTriggered) - Update
LICENSEauthor (if needed) - Clean up the demo pages/routes if you don't need the dev UI
And, enjoy :)
See docs/PLAN_PRD.zh-CN.md.
- ✅
template-echo: implemented inindex.js; returns a CoreBox item and copies the result text.
Run and visit http://localhost:3333
For Tuff dev mode, check manifest.json#dev (default: http://localhost:3333/#/).
pnpm devTo build the App, run
pnpm buildAnd you will see the generated file in dist that ready to be served.
pnpm typecheck
pnpm test