- TypeScript 94%
- JavaScript 6%
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 forlist.- 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 PLCvod list- fetch record metadata from ATProto repovod playlist- construct playback playlist URL for a record URIvod manifest- fetch and print HLS manifest linesvod 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
-
Resolve the repository DID to confirm the live PDS endpoint:
node src/cli.ts vod resolve-pds --did did:plc:rbvrr34edl5ddpuwcubjiostThis verifies where
com.atproto.repo.listRecordsrequests should be sent. -
Fetch one record from the configured VOD collection:
node src/cli.ts vod list --limit 1 --jsonThis returns a parsed record with
uri,title,creatorDid,durationNs, and source metadata. -
Take the returned
uriand 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.
-
Fetch the actual HLS manifest for that same record:
node src/cli.ts vod manifest --uri at://did:plc:.../place.stream.video/... --lines 30This confirms the stream is reachable and lets you inspect variants/tracks.
-
Persist fetched records for local reuse:
node src/cli.ts vod sync-cache --limit 50 --store sqliteThis ingests records into local cache storage and prints a sync summary.