Skip to content

Plugin SDK v1 ​

The public protocol helper files for plugin development are maintained in docs/public/plugin-sdk/ and published unchanged during the build, shared by all documentation languages. They provide editor assistance and external tool integration; they are not used for runtime plugin loading or CLI validation.

Files ​

In an editor supporting JSON Schema, associate plugin.json with this schema URL:

text
https://res.putyy.com/plugin-sdk/plugin-v1.schema.json

For a JavaScript project, download plugin-v1.d.ts into your development directory and enable type hints through editor configuration or /// <reference path="./plugin-v1.d.ts" />. The runtime still executes plain JavaScript; no TypeScript build is required.

Plugin validation follows the Go backend's protocol models and validation logic. Before submitting, run from the res-downloader source root:

text
go run main.go plugin lint <plugin-directory>
go run main.go plugin replay <plugin-directory> <fixture-file>

When adding or changing the plugin protocol, update the Schema, type declarations, examples, fixtures, and developer guide together.

See Plugin Development and the operation contract for full interface documentation, and Plugin sources and reserved IDs for installation sources and reserved prefixes.

Make sure you have the rights to the resources you process and comply with local laws, platform terms, and copyright requirements.