A floating, always-on-top log window for automation scripts. Importing it once opens the window and shows every log line from your script and from @simular-ai/simulang-js.
import { logWindow } from '@simular-ai/simulang-log-viewer'
import { Clipboard } from '@simular-ai/simulang-js'
logWindow.log('--- starting work ---')
const cb = new Clipboard()
cb.setString('hi')
logWindow.log(`clipboard now: ${cb.getString()}`)That's it. The import opens the window, and:
logWindow.log(msg)writes your own lines into it.- Rust-side logs from
simulang-jsshow up automatically. - Pressing the pause hotkey (
Ctrl+Shift+Option+Lon macOS,Ctrl+Shift+Alt+Lelsewhere) pauses everysimulang-jscall until you press it again. The window also becomes draggable while paused.
The window is click-through by default, always-on-top, and excluded from screenshots on macOS so it never interferes with what you're automating.
| Member | Description |
|---|---|
logWindow.log(msg) |
Append a line. |
logWindow.clear() |
Drop all displayed messages. |
logWindow.isPaused |
true while execution is paused via the hotkey; false otherwise. |
logWindow.close() |
Shut down the viewer. Optional — happens automatically on parent exit. |
@simular-ai/simulang-js >= 6.0.0. Install it alongside this package.
Runnable examples live under examples/. Start with examples/with-simulang-js.mjs.
npm install
npm run build:debug
node examples/with-simulang-js.mjsSee PUBLISH.md. Releases are cut from CI on tag push.
MIT © 2026 Simular AI