The data jobs behind Keebdex, each a module named after a bird:
| Module | What it does | Status |
|---|---|---|
lorikeet |
Adds reference color palettes (RAL) to Keebdex | Ready |
bowerbird |
Syncs artisan catalogs from makers and Docs | Ready |
pelican |
Keeps Keebdex's images on Cloudflare and in R2 | Ready |
magpie |
Crawls forum interest checks and group buys | Planned |
bowerbird and pelican took over the artisan sync and the image jobs from
catalog-sync, which keeps only its
vendor keyset scraper, run by hand, until magpie replaces it.
Requires Python 3.13 and uv.
uv syncuv run pre-commit installcp .env.example .envFill in .env, then run jobs with uv run --env-file .env <job>. In GitHub
Actions the same names come from the repository secrets.
Crawls the RAL Classic, Design, and Effect colors with their hex values from
ralcolorchart.com and adds the ones Keebdex
lacks to its colors table, for matching keyset colors.
uv run --env-file .env lorikeet ral --dry-run- With no flag it writes.
--dry-runreads Keebdex and reports what it would add.--csv PATHwrites the crawl to a CSV file instead and needs no database. - Colors are only ever added, matched by system and code. A color already in Keebdex is left as it is even when the chart shows another hex or name, since staff may have fixed it; those differences are listed in the report for a person to check. Nothing is deleted.
- Every page must load and show colors, and the crawl must find at least 90% as many colors as Keebdex already has; otherwise nothing is written.
.github/workflows/lorikeet.ymlruns it from the Actions tab; manual runs are dry runs unless the box is unticked, and the report lands in the run's summary. Its monthly schedule is paused (commented out) until a dry run against Keebdex has been checked.
The last crawl found 2,531 colors:
| Range | Code format | Colors | Names |
|---|---|---|---|
| RAL Classic | 1000 |
216 | Yes |
| RAL Design | 000 15 00 (H L C) |
1,825 | Yes |
| RAL Effect | 110-1, 840-M |
490 | No |
Single colors don't need a crawl: the Add Color form in Keebdex looks a RAL Design code up on ralcolorchart.com as it is typed.
Syncs artisan sculpts and colorways into Keebdex from makers' Google Docs and maker websites. It is a port of catalog-sync's artisan sync, and replaces it in production.
uv run --env-file .env bowerbird gdoc --dry-runuv run --env-file .env bowerbird scrape --dry-rungdocsyncs every published maker withdocument_ids;scrapesyncs the maker websites (alpha-keycaps,keycat).--maker IDlimits a run to one maker (repeatable).- Each owns its rows (
sourcegdocorscraper) and never touches the others. Synced fields are patched unless locked in Keebdex (overridden_fields); colorways gone from the source are deleted, or marked deleted while a user collection holds them; a sculpt gone from the source is deleted only when nothing points at it any more. - A deleted doc makes the sync partial (rows from it are kept); a maker whose docs are all gone has its sync disabled. A maker that fails is logged and skipped, and the run still succeeds.
- Colorway images are uploaded to Cloudflare Images under fixed ids. Nothing
here deletes an image:
pelican pruneremoves the unused ones. .github/workflows/bowerbird.ymlruns either or both from the Actions tab, as a dry run unless the box is unticked, and lists in the run's summary what each maker's sync changed (or would change). It also runs both twice a day, at 20:30 and 08:30 UTC (03:30 and 15:30 UTC+7), writing.- Slugs come from python-slugify;
docs/slugs.mdexplains the map that keeps the slugs catalog-sync gave unusual names, and the check to run before bowerbird takes over.
Keeps Keebdex's images on Cloudflare Images and backed up in Cloudflare R2: a port of catalog-sync's image jobs, which it replaces in production.
uv run --env-file .env pelican sync --dry-runsyncuploads the external images of published records to Cloudflare and points the records at them;restorere-uploads, from R2, referenced images Cloudflare no longer has;prunedeletes images nothing references (a week old at least);backupcopies new images to R2 and moves backups of deleted images to the trash once the bucket's lock rules allow.- Each refuses numbers that look like a bad read (nothing listed, too many missing or orphaned at once) instead of acting on them.
.github/workflows/pelican.ymlruns one job from the Actions tab, as a dry run unless the box is unticked, plus adatabasejob that dumps the database to R2. On schedule it writes: sync and restore daily at 01:30 UTC, backup and thedatabasedump daily at 03:30, and prune at 04:30 on the 1st and the 15th.docs/backups.mdis the operator guide for the R2 bucket: its locks, the trash, and restoring by hand.