Creative dashboard

View as Markdown

This example app is a dashboard you run on your own computer. It turns one ad template, a composition whose text and pictures can be changed, into a campaign of video ads. Each card on the dashboard is one video, kept in your workspace as a variation of the project. Press Render and every card you changed is saved and rendered, and plays while it renders.

The creative dashboard: pick a look, edit the text, choose a motion, import a spreadsheet and render a whole campaign

The code is open source: github.com/CodeArtworks/blitframe-creative-dashboard.

What you can do with it

It comes with four sample campaigns, each with 8 to 10 variants.

On every card you can:

  • Pick a look. A look swaps all of the card's art at once.
  • Edit the text. Text fitting keeps longer text inside the design.
  • Choose a motion. A motion changes how the art and text enter the frame.

Import CSV turns every row of a spreadsheet into a card. Download all packs every finished video into one ZIP.

Run it

You need Node.js 22.18 or later and an API key from the console. To run it:

git clone https://github.com/CodeArtworks/blitframe-creative-dashboard.git
cd blitframe-creative-dashboard
npm install
npm start

Open http://127.0.0.1:4173 in your browser and paste your API key when the dashboard asks for it. The dashboard's server, which runs on your computer, saves the key in a .env file, so the next start connects by itself. You can also put the key in .env yourself, as .env.example shows. The page in the browser never keeps the key.

The creative dashboard showing the ZaZing Pizza campaign: campaign tabs at the top, a toolbar with Import CSV, Export CSV, Download all and Render 9 videos, and three cards, each with a preview of its pizza ad and its look and motion.

How it uses the API

The API behind each feature:

Step API
The dashboard sends each campaign's template folder to a project of its own, which holds the composition and its files. Projects and versions
Each motion is a variation of the project: the same template with a different entrance animation, kept beside the original. Variations
The dashboard asks which layers of the template can be changed, and finds the ones it needs by their names. Editable layers
Each card is a variation named after it, such as card-supply-drop, that starts from its motion's version. Its replacements change only the card's text and art. Replacements
Render first saves the changed cards. New ones are made by a batch of variations, one batch per motion, and a card that exists gets a partial edit. Create many variations
Then one batch render renders every changed card, each row naming its card's variation. Batch renders
One request reads the status of every render in a batch. Each card plays its video as an HLS stream while it renders. Live HLS
Download all asks for one ZIP of every finished video. Download many videos as one ZIP

The panel under the cards shows the requests that Render sends, so you can copy them into your own code.

Make it yours

Each campaign is a folder in the repository. To add your own, put your template in a new campaign folder: a composition exported from After Effects or written in code, with its files. Give the layers you want to change their own names, and list them under columns in the folder's campaign.json. The repository's README explains every key.