The app template

A working web app built on PB Play — shelves of playlists, a player page — that reads one of your apps and renders it.

What it is

The reference app (apps/ott) is a Next.js application that reads an app's public document and draws it: each playlist a shelf, each item a card, a watch page with the app's player. It is a starting point to read and copy, not a hosted product: you run and deploy it yourself.

Running it against your app

# In the PB Play repository
bun install
NEXT_PUBLIC_CONTROL_PLANE_URL=https://<your-control-plane> \
NEXT_PUBLIC_DELIVERY_BASE=https://<your-delivery-base> \
bun run --cwd apps/ott dev

# then open http://localhost:7502/app/<appId>

It reads these, and nothing else:

Exporting it per app

A static export built for one app — its key and theme compiled in, ready to upload to any static host — is planned and not built yet. Until it is, run the template as above and deploy it as a Next.js application.