Skip to content

Add a TUI-style integration example for commands, events, and snapshots #239

Description

@artrixdotdev

Problem

Before building the actual TUI, libtortillas should include a small example showing the intended frontend consumption pattern. This prevents the TUI from inventing an accidental architecture around polling internals.

Dependencies

Blocked by #225, #227, and #228 because the example should use the lifecycle, event, and snapshot APIs.

Example should demonstrate

  • Creating/starting the engine
  • Adding a torrent from typed input
  • Sending lifecycle commands
  • Subscribing to events
  • Reading periodic snapshots
  • Shutting down cleanly

Acceptance criteria

  • Add a crate example or documented no-run example showing a TUI-like loop.
  • Example does not import actor/protocol internals.
  • Example compiles in doctests or CI where practical.
  • The actual TUI can use the example as its initial architecture reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentationlibtortillasChanges in the libtortillas cratemed prioMedium PriorityrustPull requests that update rust codetui-foundationWork needed before building the Tortillas TUI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions