@aphrody/shenron-koharu
v1.4.7
Published
Koharu manga translation engine client for Shenron: typed IPC protocol generated from koharu-app (Tauri Specta), the koharu-sdk JSON Lines transport and the wasm canvas.
Readme
@aphrody/shenron-koharu
This package owns the browser/native boundary of the Shenron Studio editor (engine code name Koharu):
src/protocol.tsis generated from the Rust Tauri command surface (koharu-app);src/transport.tsgives the protocol itsinvokeandChannel: Tauri IPC in Shenron Studio, the/api/local/koharubridge ofshenron-server(POSTinvoke, server-sentevents) in a browser;src/canvas.tsadapts that protocol andkoharu-canvasto the browser;src/wasmis ignored derived output ofscripts/build-wasm.ts.
bun run build:wasm builds crates/koharu-canvas with cargo build --target wasm32-unknown-unknown and the wasm-bindgen CLI (no wasm-pack) into src/wasm, rebuilding only when an input changed (--force, --check); src/canvas.ts streams and compiles the module (preloadCanvasModule starts it early).
Regenerate the protocol with bun --filter @aphrody/shenron-koharu protocol (cargo run -p koharu-app --example protocol). Do not edit generated protocol or WASM output by hand.
