Tools: validator, Blender add-on and submit CLI

Before the EffectsLab app, there are the tools Fentra makes its own effects with. Each one applies the same rules the gateway does, so what passes on your machine passes on submit.

Getting the tools

The tools are released to early-access members. There is no public download. Everything they check is written down in these docs, so you can make a package to the format before you have them.

The validator

validate.py checks lens, filter and game packages by the gateway's rules and reports problems in the same shape, {code, path, message}:

python3 tools/validate.py --strict library/lenses/my-lens.fentralens
python3 tools/validate.py --json library/games/my-game.fentragame
OptionWhat it does
--strictTreats warnings as errors. The whole seed library passes it: 35 lenses, 45 filters, no errors, no warnings.
--jsonPrints the report as JSON.

It needs nothing but Python 3.8 or newer: PNG chunks and CRCs are checked and image data decoded by hand, JPEG frame headers parsed, the .cube grammar applied exactly, and every 3D model read by the same rules and budgets as the app's reader. The gateway's copy of these rules is tested against it, with identical verdicts and messages. Its own tests make sure every rule catches what it exists for.

The Blender add-on

For 3D lenses (format 3). Install it in Blender with Install from Disk, then:

  1. Add Head Rig. Adds Fentra's head: the app's own face mesh with the pupils 63 mm apart at the origin, the skull the app hides models behind, the anchors, and a mannequin head to judge fit on.
  2. Fit your piece on it. Glasses on the eyes and nose; hats over the skull, leaving room for hair.
  3. Export Lens Model. Writes the .glb the app reads, checked against a phone's budgets by the same rules as the validator, and a lens.json with a "kind": "model" layer and its credits.

Anything placed on the rig's head lands on a wearer's head unchanged, because the rig's frame is the lens's frame.

The submit tool

submit.mjs sends lenses, filters and games for review. It runs on Node 22 with no dependencies, and is a dry run unless you add --send:

node tools/submit.mjs library/lenses/puppy.fentralens                     # prints the request
node tools/submit.mjs --base https://api.fentra.com --token $TOKEN --send library/lenses/*.fentralens
node tools/submit.mjs --base https://api.fentra.com --token $TOKEN --list
  • It validates locally first.
  • The token is a Fentra user access token. It is sent only to the gateway's own origin, never to an upload URL.
  • It exits with an error if any package doesn't come back pending.

The publishing guide shows the requests it makes.

Making a game from a file

new_game.py makes randomizer, thisOrThat and quiz games from simple inputs: answers from a text file or a folder of pictures, a CSV of pairs, or a CSV of questions. It copies the files in under clean names, refuses to replace a package without --force, and runs the validator.

python3 tools/new_game.py thisOrThat --name "This or That: Bake Off edition" --title "Which one?" \
    --pairs bakeoff/pairs.csv --thumbnail bakeoff/thumbnail.png --sound select=bakeoff/select.wav
python3 tools/validate.py library/games/this-or-that-bake-off-edition.fentragame

How Fentra's own effects are made

The seed library is regenerated byte for byte by code:

  • 2D lenses are vector art drawn by Python in face space, at four times the size and averaged down, so edges, glows and gradients are clean. Each was reviewed on a head at real proportions, straight and tilted 16°.
  • Filters are colour maths, measured with verify_filters.py against the quality bar in the filter format.
  • 3D lenses start from a real model by a named artist and a recipe that says how it is worn; a build script fits it on the head rig in Blender, keeps it within budget, renders the thumbnail under a real studio's light and writes the package with its credits.

The roadmap is how these become one app.

Checked against the specs on 4 November 2026.

NextPublishing