Skip to content

Tutorial: build and share a stream

In Tato Studio, build a stream that reports motion, add modules from the Marketplace, send its reports through a MoQ relay to a second project that logs them, look inside both, keep them running, and build on them with an agent.

The quickstart dropped in nodes someone else wrote. In this tutorial you’ll build with modules from the Marketplace, write your own node, and share what it produces. You’ll build motion-watcher, a project whose stream watches a camera and reports motion. Then you’ll build motion-log, a second project that reads those reports through a MoQ relay and keeps a log of them. By the end, both run on their own and an agent is building on them with you.

What you'll build: motion-watcher sends its motion reports to a relay, and motion-log, in a project of its own, reads them into a file.
  • How to make a project, add modules from the Marketplace, and drop their nodes into a stream.
  • How to write a node in Studio, and what its inputs, outputs and settings are.
  • How a stream sends a pin’s data to a MoQ relay, and how another project’s stream reads it there.
  • How to look inside running streams: the Node visualizer, Properties, History and the log.
  • How projects keep running, and how to build on them with a coding agent beside Studio.
  • Tato Studio. See Install Tato.
  • A camera. Without one, keep the test pattern a new project starts with: the detector then reports the pattern’s own animation as motion, and everything else works the same.
  • Rust’s cargo, for step 3, to install a local MoQ relay.
  • Claude Code or another MCP client, for step 6.
  • About 45 minutes.

You don’t need to know numpy or anything about video. Each step explains the code it adds.

  1. Start a project: make motion-watcher, add the camera from the Marketplace, and play it.
  2. Write your first node: a motion detector that reports what it sees.
  3. Share the motion reports: send them to a relay, and read them from a second project.
  4. Look inside: watch the data, the edits and the log.
  5. Keep it running: projects that outlive Studio’s window.
  6. Build with an agent: connect Claude Code, and build on the streams together.

Each step shows the complete code it adds, so you can catch up if something goes wrong.