Skip to Main Content

An interactive, LLM-extracted relationship graph for the entire One Piece manga: every character, crew, organization, saga, and arc, connected by 19,320 typed edges — fought, defeated_by, ally_of, enemy_of, member_of_crew, family_of, mentor_of, and more. Existing One Piece databases store facts (bounties, appearances). They don't capture relationships — who fought whom, who's allied with whom, who's whose family — because those live in 13,000+ unstructured wiki sections. We extracted them in a single 21-minute Claude Sonnet 4.6 run for ~$91, with a verbatim evidence quote attached to every edge so the graph is auditable, not a black box. The pipeline reads One Piece Fandom wiki sections, runs them through Claude with a constrained 12-relation vocabulary and a strict "quote ≥5 words from the source or skip the triple" rule, deduplicates the 43,814 raw triples down to 19,320 unique edges, and ships them to Supabase. A React + vis-network single-page app then renders the graph live: pick any entity to focus on, expand 1-4 hops at a time, filter by confidence and relation type, and click any edge to read the exact wiki sentence that justified it. A sortable edge table below the graph lets you sort 19K rows by confidence or chapter and click straight through to that edge in the visualization. Three things make it work in production: (1) hash-based change detection so weekly re-runs after each new chapter cost ~$2 instead of $91; (2) Anthropic's structured-output JSON schema, which gave us zero parse failures across 13,119 calls; and (3) BFS-based subgraph rendering with an edge cap, so a graph with 19K edges stays interactive in the browser at ~1.5 MB gzipped. The codebase is fully reproducible from make commands and split across two AGPL-3.0 repos: a Python data pipeline and a React web app. Alongside the Story Graph we also shipped a few smaller features in the same week: a new Character Occupations page that surfaces every role a character has held (1,236 characters, 2,038 role assignments); a Chapter Release Predictor that forecasts the next 5 chapter dates from the live Shonen Jump issue schedule; devil-fruit and haki badges added to the character comparison tool and the main characters table with a column-visibility toggle and persistent table state; and shareable result images (feed and story formats) for both the Guess the Character and Who Am I? games, plus a tiered difficulty rework of the Who Am I? quiz with a recalibrated speed-based ranking system. URLs: - https://onepieceofdata.com: the web application - https://onepieceofdata.com/#/analytics/story-graph : the story graph - https://github.com/ismailsunni/onepieceofdata : the brain, the parser, the data generator repository - https://github.com/ismailsunni/onepieceofdata-react : the web app repository

Team

ismailsunni

More from Built with Opus 4.7: a Claude Code hackathon

Medkit is a virtual clinic that lets you make every mistake before the real patients come. It's a voice-first AI simulator for medical students and newly…

Keskin project preview

Every year, 50 million tons of electronics become waste — not because they can't be repaired, but because board-level expertise is locked in a few hands…

Alexis Chapellier project preview

Maieutic flips the role an LLM usually plays in learning to program. Instead of handing the student working code, it guides them to think first about what the…

Maieutic project preview

OmniBridge is an AI agent that identifies unknown serial device protocols autonomously — a workflow that didn't exist a year ago because it needs Opus 4.7's…

OmniBridge project preview

ARIA captures the floor operator's knowledge and puts it to work. Drop in the manufacturer's PDF, answer some calibration questions, and you're live in ten…

TrayStones project preview

Interior architects in France designing offices for banks, law firms and consulting groups are leaving money on the table. Each one handles only one or two…

Saad EL BABIDI project preview