Generate videos from a command
The integration-tour npm package makes the videos this app makes, from your spec, on your machine or in your build. Give it your spec, a file or a URL, or an MCP server's address:
npx integration-tour render openapi.yamlIt makes a video of each of the top three flows the app suggests for the spec, as an MP4 named after the flow, and counts them as it goes. It needs Node 22 or later.
Another flow, or a video you've edited
In the editor, pick the flow (any the app suggests, or one you build), edit it if you like, then click Generate from a command under Export and Download the flow file. It holds your edits. Give the command your spec, as above, and the flow file after --edits:
npx integration-tour render openapi.yaml --edits checkout.flow.yamlAdd --formats gif for a GIF instead, --formats html for the interactive HTML, or several, as in --formats mp4,gif, and --out to put the videos in another folder. --edits takes several flow files, or a folder of them.
Keep them up to date
Commit your flow files next to your spec, and run the same command in your build: each change to the spec then makes the videos again, with your edits.
npx --yes integration-tour@1.0.14 render openapi.yaml --edits *.flow.yaml --out docs/videosA GitHub Actions workflow that runs it
Save it as .github/workflows/demo-videos.yml. Each push to main that changes the spec or a flow file makes the videos and commits them, and each pull request is checked. It expects openapi.yaml and the flow files at the top of your repo: change the paths if yours are elsewhere.
name: Demo videos
on:
push:
branches: ["main"]
paths: ["openapi.yaml", "*.flow.yaml"]
pull_request:
paths: ["openapi.yaml", "*.flow.yaml"]
workflow_dispatch:
concurrency:
group: demo-videos-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
package-manager-cache: false
- run: npx --yes integration-tour@1.0.14 check openapi.yaml --edits *.flow.yaml
render:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
package-manager-cache: false
- run: npx --yes integration-tour@1.0.14 render openapi.yaml --edits *.flow.yaml --formats html,gif --out docs/videos
env:
INTEGRATION_TOUR_LICENSE: ${{ secrets.INTEGRATION_TOUR_LICENSE }}
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs/videos
git diff --cached --quiet || (git commit -m "Update the demo videos" && git pull --rebase && git push)
Good to know
- The watermark. It's free for non-commercial use, with the watermark. To remove it, set your license key as
INTEGRATION_TOUR_LICENSEwhere the command runs: on GitHub, as a repository secret. - Pull requests.
integration-tour checkfails when a change to your spec would break a video. It never needs your key. - Updates. In a build, name the version, as above: a new release then reaches it only when you change the number.
- Insomnia. The Integration Tour plugin makes the same videos from your collections and design documents, from Insomnia's menus: add it to Insomnia.
Every command and setting is on the package's page on npm.