Command line Streamplace VOD launcher
README.md

cplace #

CLI for exploring stream.place VOD records, inspecting playback URLs/manifests, and syncing records into a local cache backend.

Requirements #

  • Node.js 22.5+
  • pnpm

Install #

pnpm install

Main commands #

node src/cli.ts list
node src/cli.ts play --input "https://..."
node src/cli.ts cache stats --store sqlite
node src/cli.ts vod list --limit 10 --json

Common flags:

  • --vod-server <url> overrides playback API base URL.
  • --list-format <preset-or-template> sets output format for list.
  • shared flags can be placed before or after the subcommand.

vod command group #

The vod command group is focused on understanding stream.place VOD infrastructure:

  • vod resolve-pds - resolve DID -> PDS endpoint through PLC
  • vod list - fetch record metadata from ATProto repo
  • vod playlist - construct playback playlist URL for a record URI
  • vod manifest - fetch and print HLS manifest lines
  • vod sync-cache - ingest fetched records into selected cache backend

Examples #

# Resolve where a DID is hosted
node src/cli.ts vod resolve-pds --did did:plc:rbvrr34edl5ddpuwcubjiost

# Pull metadata from VOD collection
node src/cli.ts vod list --limit 5 --json

# Build a playable playlist URL from an at:// record URI
node src/cli.ts vod playlist --uri at://did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.video/3mipbxjavnf2m

# Inspect the top of the manifest
node src/cli.ts vod manifest --uri at://did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.video/3mipbxjavnf2m --lines 25

# Sync records into memory or sqlite cache
node src/cli.ts vod sync-cache --limit 100 --store memory
node src/cli.ts vod sync-cache --limit 100 --store sqlite
Step-by-step walkthrough: using cplace vod to inspect one video
  1. Resolve the repository DID to confirm the live PDS endpoint:

    node src/cli.ts vod resolve-pds --did did:plc:rbvrr34edl5ddpuwcubjiost
    

    This verifies where com.atproto.repo.listRecords requests should be sent.

  2. Fetch one record from the configured VOD collection:

    node src/cli.ts vod list --limit 1 --json
    

    This returns a parsed record with uri, title, creatorDid, durationNs, and source metadata.

  3. Take the returned uri and construct the playback endpoint URL:

    node src/cli.ts vod playlist --uri at://did:plc:.../place.stream.video/...
    

    This shows the exact XRPC playlist URL used for playback.

  4. Fetch the actual HLS manifest for that same record:

    node src/cli.ts vod manifest --uri at://did:plc:.../place.stream.video/... --lines 30
    

    This confirms the stream is reachable and lets you inspect variants/tracks.

  5. Persist fetched records for local reuse:

    node src/cli.ts vod sync-cache --limit 50 --store sqlite
    

    This ingests records into local cache storage and prints a sync summary.