Tokens
Track, visualize, and compete on AI coding assistant token usage across Claude Code, Cursor, OpenCode, Codex, Gemini, Kimi, and Qwen. The Kardashev Scale for AI Devs.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Personal film analytics: Letterboxd → dbt/DuckDB → Next.js dashboard. Live: https://www.featheranalytics.dev/cinemetrics/
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
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.查看完整 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,089 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.