otoji
v0.1.62
Published
otoji CLI — bridge a terminal's stdio into an otoji voice graph at otoji.org. Zero-dep launcher: `npx otoji node <room>`.
Maintainers
Readme
otoji
CLI bridge for otoji.org — wire any terminal's stdio into a voice graph.
A zero-dependency launcher for the CLI pipe node. Text arriving at a pipe node in the graph is written to stdout (one line per message); each line you type (or pipe in) on stdin is sent into the graph's pipe node(s). It connects to the signaling relay over a plain WebSocket — no WebRTC, no native build.
# Copy the target from the pipe node in the graph (host/room/nodeId):
npx otoji node otoji.org/keen-gibbon-4a0d/pipe-ab12
# Just a room code targets every pipe node in that room:
otoji node keen-gibbon-4a0d # interactive
otoji node my-room | grep ERROR # consume transcripts downstream
some-producer | otoji node my-room # feed text into the graph
otoji node my-room -d # -d: log activity to stderr$OTOJI_ROOM sets the default target; $OTOJI_SIGNAL overrides the signaling
endpoint (defaults to wss://<host>/signal). Requires a global WebSocket
(Node 22+, Bun, or Deno).
otoji gdoc — realtime Google Docs bridge
Feeds the web app's Google Doc node in live mode. Runs a headless Chrome (raw CDP — still zero-dep) that opens the doc and watches its realtime sync channel; on every remote edit the doc text is re-exported and pushed to the node over SSE, typically ~1–3 s behind the collaborator's keystrokes.
otoji gdoc "https://docs.google.com/document/d/<id>/edit" # pre-open a doc
otoji gdoc --port 8992 # docs on demand via /live?doc=<id>
otoji gdoc --headed # sign in once for private docsThe Chrome profile persists at ~/.otoji/gdoc-chrome, so a one-time
--headed sign-in unlocks private docs for later headless runs. Public
("anyone with link") docs need no login. Without the bridge, the node's
default poll mode reads the Docs API directly from the browser using an
OAuth token — no local process required.
For the on-device speech models (ASR/TTS) as Node/Bun bindings, see
@otoji/core. Full project:
https://github.com/snomiao/otoji.
License
MIT
