Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
Demo loops
The silent loops on the homepage and the feature pages are served from
Cloudflare R2 at media.getopenscreen.com/loops/<cut>/, not from git:
static/ is committed for good, and a cut of eighteen loops in two codecs and
two sizes is about 75 MB. This folder holds the record of them instead.
loops.json lists every published file with its size and SHA-256, and each
loop's duration. CI (npm run check:loops -- --live) holds the code and the
CDN to it.
Publishing a new cut
- Masters. One 1920x1080, 60 fps, silent
<slug>.mp4per loop, named afterLOOP_NAMESinsrc/lib/demo-loop.ts. They are built, and archived to R2 undermasters/(off the public domain), by the openscreen-demo-production repository:v2-launch/README.md. - Encode.
FFMPEG=<ffmpeg with x264/x265/libwebp> scripts/media/encode-loops.sh <masters> <out> - Publish, under a new folder name.
node scripts/media/publish-loops.mjs --cut <yyyy-mm><letter> --dir <out>uploads, rewritesloops.jsonand the generated block indemo-loop.ts(base URL, durations, publication date). Never reuse a folder: the edge caches each file for a year. npx biome format --write src/lib/demo-loop.ts && npm run check:loops -- --live, then commit both records.
Upload before anything (a page, a preview) requests the new folder: the zone
caches a 404 for an hour. If it happens, purge those URLs with
cf cache purge -z <zone> --body '{"files":[...]}' --force.
On the Cloudflare side
Bucket openscreen-media, Standard storage class (the free tier's), r2.dev
off. On the getopenscreen.com zone: a cache rule keeping the loops at the
edge for a year with query strings out of the cache key, a WAF rule that serves
only GET/HEAD under /loops/ with no query string, a 120 requests / 10 s per-IP
rate limit, and billing alerts at any spend and at half of the free tier.
Responsive backgrounds
The live homepage uses original wallpapers from public/wallpapers/, cropped
to 16:9 and encoded offline in AVIF (quality 80, 4:4:4, 10-bit) and WebP
(quality 90), at 960, 1920 and 2560 pixels wide. <picture> selects one format
and size; the driver retains two image layers and decodes the next background
before fading it in. Small picker thumbnails and the emergency JPEG fallbacks
remain local. CDN transforms are unnecessary.
node scripts/media/encode-backgrounds.mjs --dir <out>node scripts/media/publish-backgrounds.mjs --cut <yyyy-mm><letter> --dir <out>npm run check:backgrounds -- --live, then commitbackgrounds.jsonandsrc/lib/background-media.ts. The manifest records source hashes, encoder settings, dimensions, byte sizes and output hashes. Each file is capped at 120 KB. Never rewrite a published cut or request it before uploading.
Backgrounds live under /loops/backgrounds/<cut>/, reusing the custom domain's
existing WAF and year-long cache rules for GET/HEAD under /loops/ without
query strings. The bucket, rate limit and billing alerts are shared; no new
Cloudflare product or cache/WAF rule is required. masters/ remains private.