Boo Cue

Run your own Boo Cue server

Boo Cue gets every film from a server, and the server does not have to be ours. If a film you want is not in the catalog, if our server is ever offline, or if we ever stop adding films, you can serve films yourself and point the app at your own address.

A server is a folder of static files on any HTTPS host. This kit has everything you need to make one, apart from two tools you install yourself.

What's here

fingerprint.sh Turns a film's audio into the fingerprint file the app listens for.
example/ A working server with one made-up film, laid out exactly as it should be hosted. Copy it and replace its contents.

The API reference is at boocue.com/api. It lists every request the app makes and every field it reads, including which ones are optional. The raw OpenAPI spec is at boocue.com/api/openapi.json. This page only explains how to put the pieces together.

What you need

1. Get the audio

ffmpeg -i film.mkv -map 0:a:0 -vn -c:a aac -b:a 128k film.m4a

0:a:0 is the file's first audio track. If it has several (ffmpeg -i film.mkv lists them), pick the language people will watch in: an English fingerprint never matches a French screening. Make one fingerprint per language if you want more than one.

Do not trim anything off the start. Every scare time is measured from the first second of this file.

2. Fingerprint it

./fingerprint.sh film.m4a example_film_2026.shazamcatalog

This takes a few minutes for a feature film. A single ShazamKit fingerprint silently stops matching after about 35 minutes, so the script fingerprints the audio in overlapping 15-minute pieces. It tags each piece with the second it starts at, in a property named ajsSegmentOffset, which the app adds back. That property is the only part of the file that is specific to Boo Cue. The script's comments explain the details.

When it finishes, it prints the fingerprints entry for step 3, with the file's SHA-256 hash and size already filled in.

3. Write down the scares

Copy example/ and edit two files:

The API reference explains every field. Put the .shazamcatalog from step 2 in v1/catalogs/, where the film's path says it is.

Why the files are named index.html when they hold JSON: the app requests /v1/movies and also /v1/movies/<movie_id>, so movies has to be a folder. Static hosts answer a request for a folder with its index.html. The app reads the contents as JSON whatever the file is called.

4. Host it

Upload the folder's contents so that v1/ sits at the root of your site. Any static host that serves index.html for a folder works: GitHub Pages, Netlify, Cloudflare Pages, or your own nginx.

To check it, open https://your.host/v1/movies in a browser. If you can read your catalog, so can the app. No login or API key is needed: the app sends its key only to Boo Cue's own server.

5. Point the app at it

In Boo Cue, open Settings → Advanced → Catalog server and type https://your.host, without /v1. It saves as you type. Search for your film to try it: if your server does not answer, the search says so and names your server. Clear the field to go back to ours.

Going further

Everything optional in the contract makes a server nicer without being required. That includes search, ETag/If-None-Match and changes-since queries. A static folder ignores all of them, and the app copes; search then simply finds nothing that the catalog did not already list. If you write a real server, the API reference describes what each option should do.