← All work
Project

Cleanplate

A comics corpus where each asset carries its rights, provenance and structure, built so an export can ship with a defensible rights manifest.

2026 Maturity: In development

Cleanplate is a comics and manga corpus built around one rule: rights and provenance are properties of the dataset from the moment a file enters, not metadata added after the fact. Every asset records who admitted it, under what stated authority, and which capabilities (reading, enrichment, redistribution, training) it has actually been granted. The project is worth a look because it treats "can this page be used to train a model?" as a question the data model has to answer, and it pairs that with real page-understanding work: panel and bubble detection, reading order, and lettering removal.

Cleanplate library with an upload panel and a shelf of six sample comic books shown as colorful cover thumbnails.
The shelf: each upload is stored by content hash and admitted with a read-only rights grant. The books are sample pages drawn for this demo.
Dark reader screen showing one sample comic page of five panels with two figures, a boat and a lighthouse, and a counter reading 2 of 4.
The reader pages through an uploaded archive. The page shown is sample art drawn for the demo, not a real comic.

What it does

From a reader's side, Cleanplate is a personal bookshelf, a Next.js app. A visitor enters a display name and an invite code, uploads a zip of page images, and the book appears on their shelf with its first page as the cover. Opening it gives a page reader with Prev and Next buttons, arrow-key and spacebar navigation, and click-to-advance. Other formats (RAR, EPUB, PDF) are stored and listed, but the reader says plainly that it isn't built for them yet rather than faking support.

Behind that sits the larger system: Rust services for ingestion, catalog, auth, OCR and a content-addressed blob store; a web client, an iOS client, an operator console, and Panels, a browser-based page-analysis and annotation studio; and a set of tools for detection, training, evaluation and corpus QA.

How it works

The bookshelf is small and readable. An upload is hashed with SHA-256 and stored under that digest, so the same bytes are written once. The book then gets an admission record (the source, a stated-authority sentence, the admission rule, a timestamp and the admitting user) and exactly one rights grant: self-upload by the creator, with the capability to read and nothing else.

Every access goes through one authorization check. A grant covers a request only if it is active, lists that exact capability and falls inside its term. The reader checks for "read" before listing pages or returning bytes, unzips the archive, skips system files and sorts pages naturally so page 2 comes before page 10. Revoking a grant changes its status and timestamp rather than deleting it. Storage today is files on disk, with marked places for production adapters. Sign-in is a signed cookie checked in constant time, with invite codes and no external identity provider.

The platform applies the same rule at larger scale. It keeps three records apart: stable region identities, review grants (annotate and verify), and training grants, which require an evidence resource and can't be created from a browser. A human correction moves a region from candidate to accepted. Moving it to verified needs a different human reviewer, and self-verification is refused. Dataset exports follow from that: silver (machine candidates), gold (human-reviewed) and evaluation (verified only, test split).

Page semantics run as a teacher-student pipeline. Region labels from a vision model become a training set of panels, bubbles, sound effects and text, and a local detector (Faster R-CNN on a MobileNetV3 backbone) is fine-tuned on it and scored on mAP at 0.5, so detection can run without calling the outside model. Alongside it are classical methods: recursive XY-cut on gutters, with hole-filling so speech bubbles don't read as gutters, and reading order by tier clustering, right to left for manga. Lettering removal builds a stroke-level mask with Otsu thresholding inside the detected text and sound-effect boxes, then inpaints it with OpenCV's Telea method. The result is the "clean plate" a translator would letter onto.

What's notable

  • Training is never implied by access. Training is a separate capability from reading, a self-upload is granted reading only, and a training grant requires evidence. The rule is enforced in code, not just stated in documents.
  • Reading order for every page. The reading-order and region-grouping logic first written for the Panels client now runs on the server, so every page in the corpus gets a reading order and region hierarchy, not just pages a person opened. Regions that no panel contains stay unparented on purpose.
  • QA that can say "all clear." A corpus check scans each page for panel-sized bubbles, duplicate panels, untraced contours and sound-effect over-detection, ranks pages worst first and fails when anything is flagged, so it can gate a release.
  • A reader that admits what it doesn't support. Unsupported formats come back with an explicit reason instead of a broken view.

State

Early, and active in bursts: established on 11 September 2026, with most of the work on 11 and 12 September and the latest on 25 September. The bookshelf works end to end for zip archives. The export stage, meant to emit a rights manifest and leave out any asset without a covering training grant, is still a skeleton, as are the other proof-corpus specifications.

Some rough edges are visible:

  • User identities are derived from the display name, so anyone with an invite who types the same name lands on the same shelf.
  • The reader unzips the whole archive for every page request.
  • Storage is still the local filesystem.

The project's own documents disagree about its origin: one calls it a clean-room reconstruction, while a later notice corrects that and describes it as reclaiming and re-homing a platform the owner already built and hosts. The name still needs trademark clearance.

No interactive footage exists. The capture was limited to the invite screen because every other route needs a signed session, and the only local shelf data was third-party commercial manga that isn't appropriate to show.