spellwire
v0.1.0
Published
Stateful realtime input automation for TypeScript, compiled to a native Rust VM.
Maintainers
Readme
spellwire
Stateful realtime input automation for Bun and TypeScript.
bun add spellwireimport { Key, rt, tapKey } from "spellwire";
let count = 0;
rt.onKeyDown(Key.Q, () => {
count += 1;
if (count % 2 === 0) tapKey(Key.E);
});Compile the script:
bunx spellwire compile macro.spellwire.tsThe alpha package includes the SDK, AOT compiler, CLI, JavaScript fallback lane, and host-facing types. Prebuilt global-input backends are not bundled yet. See the repository documentation for the native VM/C ABI and implementation status.
For deterministic compiler/VM integration testing, the repository also contains the native spellwire-sim utility. It is a source-workspace tool and is not bundled as a prebuilt npm binary in this alpha.
