Pivot
Pivot is a high-performance real time analytics database on open data formats.
Eight years and 683 films — what I watch, when I watch it, and what that says about my taste.
DataTypeScript · PythonGitHub @FeatherAnalyticsOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Personal film analytics: Letterboxd → dbt/DuckDB → Next.js dashboard. Live: https://www.featheranalytics.dev/cinemetrics/
Translation pending
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
809 viewings of 683 films across eight years, from a single Letterboxd account. Enriched via TMDB and OMDb, modeled with dbt in DuckDB, served as a static Next.js dashboard with an ML-powered recommendation engine.
A personal film analytics project that started as a spreadsheet and became an end-to-end pipeline: ingest, model, export, deploy, recommend. The interesting part is not the stack — it is what the data says when you stop lying to it about what it recorded.Read the full README ↗Live: featheranalytics.dev/cinemetrics
A personal film analytics project that started as a spreadsheet and became an end-to-end pipeline: ingest, model, export, deploy, recommend. The interesting part is not the stack — it is what the data says when you stop lying to it about what it recorded.
liked — the 129 pre-Letterboxd rows never recorded liked or is_rewatch. Collapsing the unknowns into false understates the affection rate by 7.4 points. Always filter liked is not null first.star_rating × 20 = rating_100 holds across the 683 rows that arrived carrying both values. Derived in stg_film_log.sql.flowchart LR
subgraph Sources
letterboxd[Letterboxd RSS]
tmdb[TMDB]
omdb[OMDb]
end
subgraph Ingest
update[update.py]
fetch[fetch_candidates.py]
end
subgraph Model
seeds[(seed CSVs)]
dbt[dbt: staging → marts]
db[(DuckDB)]
end
subgraph Publish
export[export_web.py]
train[train_embeddings.py]
json[cinemetrics.json]
r2[Cloudflare R2]
site[GitHub Pages]
drawer[Recommendation drawer]
end
letterboxd --> update
tmdb --> update
tmdb --> fetch
omdb --> update
omdb --> fetch
update --> seeds
fetch --> seeds
seeds --> dbt
dbt --> db
db --> export
db --> train
export --> json
train --> r2
json --> site
r2 --> drawer
drawer --> site
nightly{{Nightly Action}} -.-> update
nightly -.-> fetch
nightly -.-> dbt
nightly -.-> export
nightly -.-> train
film_log.csv (watch history), film_enrichment.csv (rated films), candidate_enrichment.csv (recommendation pool from TMDB similar + popular).transform/models/staging/).dim_film, fct_watches, dim_candidate. The franchise_mapping() macro rolls TMDB collections up into umbrella franchises by collection, film, or director rules.recommend/encode.py). train_embeddings.py exports sparse vectors and R2 serves them; the browser () builds a rating-weighted taste vector and does the similarity math client-side. On a leave-one-out held-out test over liked films, the balanced ranker places the held-out film at median rank 5,071 with 2% in the top 100.| Path | Contents |
|---|---|
recommend/ | Python: ML pipeline (feature encoding, model, explainability) |
ingest/ | Python: TMDB + OMDb enrichment |
transform/ | dbt project (seeds → staging → marts) |
scripts/ | export, candidate fetch, training, R2 upload |
tests/ | pytest: encoding, model, ingest, taste eval |
web/ | Next.js dashboard + recommendation drawer |
data/ | movies.duckdb, ml/ (gitignored) |
make setup # install Python (uv) + Node dependencies
cp .env.example .env # add your TMDB, OMDb, and R2 keys
make build # full pipeline: dbt → export → train → web build
make dev # start Next.js dev server at localhost:3000
See .env.example for the full list of keys.
All targets are defined in the Makefile.
| Command | What it does |
|---|---|
make build | Full pipeline: dbt build → export JSON → train embeddings → web build |
make dev | Start Next.js dev server |
make test | Run all tests: ruff + eslint + dbt + vitest |
make candidates | Fetch candidate films from TMDB (similar + popular) |
make train | Train embeddings (skips if data unchanged) |
make retrain | Force retrain regardless of data changes |
make upload | Upload embeddings to Cloudflare R2 |
make update | Auto-update from Letterboxd RSS |
make docs | Generate the dbt docs site into web/public/dbt/ |
make doc-stats | Refresh the docs' figures and lineage diagram from the built marts |
docs/ARCHITECTURE.md — how the pipeline and infrastructure fit together, plus the data conventions that are easy to get wrong.Letterboxd for the watch log (ingest/letterboxd.py), TMDB for genres/keywords/runtime/budget/revenue/similar films, OMDb for critic scores, box office, and cast. API clients live in ingest/http.py. Primary key: tmdb_id.
The code is MIT-licensed. The seed CSVs under transform/seeds/ are personal data shared for reproducibility, not relicensed.
web/src/lib/recommend.tsupdate-data.yml) fetches Letterboxd RSS, enriches new films, retrains if data changed, uploads to R2, deploys.