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.