03 / Personal media tracker
Polyhedron
Polyhedron is a media tracker for movies, television, anime, manga, books, games, visual novels and comics, built on 6 media APIs. A Telegram bot uses Gemini to log entries from a chat message.
- Built with
- React · JavaScript · Supabase · Zustand · Gemini API · Tailwind CSS · IndexedDB
- On this page
- OverviewHow it works
01 / Overview
A collection, with a history.
Keep a library, track progress and log what you finish. Collection entries hold the current status of an item; diary entries record individual completions, with ratings and notes alongside them.
- Search across eight media types from 6 media APIs
- Collection status, progress, ratings and notes
- Diary entries, activity, import and export
- Telegram bot for logging entries from chat
02 / How it works
Provider data
Search and metadata come from 6 media APIs: TMDB, AniList, IGDB, Open Library, VNDB and Metron. Provider IDs, release dates and contributor fields are mapped by media type.
03 / How it works
Media rules
A TV season can have its own year and diary entry. Comics distinguish series from individual issues. These differences stay explicit in the data model instead of being forced into a single set of fields.
04 / How it works
Speed
Single-flight paginated sync cut login time from 20s+ to about 1s. A keyed index cut diary load from about 526ms to about 8ms.
05 / How it works
Canonical keys
The live database (705 items, 656 diary entries) was migrated to canonical provider:type:id keys by directing an AI agent through a staged runbook.
06 / More detail
Under the hood.
- Telegram logging bot
- The bot uses Gemini to parse a message into structured fields, then matches the title deterministically. Each entry is saved in one idempotent Postgres transaction, so a retried message does not create a duplicate.
- Local and cloud storage
- Guest collections use IndexedDB. Signed-in collections use Supabase and PostgreSQL with Row Level Security. Zustand manages application state; import and export let users move collection data in and out.