Skip to content
A large pale moon and a smaller one on an orbit line over a rocky lunar plain at dusk, dotted with broadcast towers with red lights.
#web

Lunar X Distribution Platform

Multi-channel video distribution

> for lunar xplatform · 2022
01· the project
> A project for Lunar X.

Every channel, fed from one place.

Lunar X runs 15+ kids' IPs across more than a hundred YouTube channels. We built the platform that feeds them: episodes come in from Drive, are composed into videos, get their metadata and go out as uploads, livestreams and monetised videos, all as background jobs.

The jobs run serverless on Google Cloud, orchestrated with Workflows and Batch; the API (AdonisJS) and the web app (Nuxt 3) run on Cloud Run over PostgreSQL. The whole infrastructure is code in Pulumi, so we handed it over to Lunar X's team ready to deploy. It grew out of Braintube and replaced it.

> cat /works/lunar-distribution-platform.md
TYPEPLATFORM
CLIENTLUNAR X
YEAR2022
built with
  • AdonisJS
  • Nuxt 3
  • TypeScript
  • Python
  • PostgreSQL
  • Google Cloud Run
  • Google Workflows
  • Google Batch
  • Pulumi
#web
02· in numbers
100+> channels
100> 24/7 livestreams in parallel
15+> IPs
5> job types
03· how it works
New job, step 2: a Drive picker with three drives and a file browser, above a timeline of animated clips with their durations.
01

Ingest

Videos come in from Drive.

New job, summary step: the thumbnail with cartoon characters, the job description and its video metadata.
02

Compose

Job data, video composition and a thumbnail set up each job.

New job, step 4: the metadata form with title, description, category and keywords, beside the job preview.
03

Describe

Title, description, category and keywords go into the video metadata.

The Jobs page: recent jobs as coloured cards and a list with channel, date, duration and status (finished, in progress, error).
04

Run

Jobs run in the background (uploads, up to 100 always-on livestreams at once, monetisation), each with its channel, duration and status in one list.

04· gallery
05· credits
for lunar x. WEB - API - CLOUD - VIDEO. 2022

Working on something like this? Tell us what you need.

06· next project
> cd /works/nft-proof
Uproof> Platform
> navbar collapsed · scroll to the end
Crowtec