A CLI tool for developing, packaging, and hosting plugins for the Ito application.
cargo install --path .Scaffold a new plugin project. Supported types are manga, anime, and novel.
ito-pkg new <plugin-name> --type <type>
# Or use the short flag
ito-pkg new <plugin-name> -t <type>Example:
ito-pkg new my-manga-source -t mangaThis creates a new directory with:
Cargo.toml: Configured forcdylibcompilation.manifest.json: Plugin metadata.src/lib.rs: Starter code implementing the provider trait.
Navigate to your plugin directory and implement the required trait methods in src/lib.rs.
Add an icon to your plugin by placing an icon.png file in the project root.
Compile your plugin to WebAssembly and bundle it into an .ito file.
ito-pkg packOutput:
target/wasm32-unknown-unknown/release/<name>.wasm: The compiled binary.<name>.ito: The final distributable package containing the Wasm binary, manifest, and icon.
Check the contents and validity of an .ito file.
ito-pkg verify <path-to-ito-file>Organize multiple .ito files into a static repository structure that the Ito app can consume.
# Create a folder for your built plugins
mkdir plugins
mv *.ito plugins/
# Build the repository
ito-pkg repo --input plugins --output public --url "http://localhost:8080"This generates:
public/index.json: Repository index.public/index.min.json: Minified index.public/packages/: Directory containing.itofiles.public/icons/: Directory containing extracted icons.
Host your repository locally for testing.
ito-pkg serve --path public --port 8080Add http://localhost:8080/index.json to the Ito app to install your plugins.