Arrows to move, Enter to openSee all results →

Standards / library@1

PublishedVersion 1.0.02026-11-30MITDeveloper reference

library@1 the books you read, are reading and want to read

One row of items is one edition of a book; work_id groups the editions of one work. One row of reads is one shelf entry or one read of an item: to read, reading, read, did not finish, paused. Goodreads and StoryGraph exports fill it today (lane 1, files the person downloads); a hand-written library CSV and progress logged with dashremix log too. Reading Log reads it.

Tables113 requiredFields86no viewsVocabularies8shared word listsDashboards2read it
JSON Schema/spec/library/1.0.0/library@1.schema.jsonSQL tables (SQLite)/spec/library/1.0.0/schema.sqlREADME/spec/library/1.0.0/README.mdChangelog/spec/library/CHANGELOG.md

Check a database or a board against it: dashremix spec check. Start a new board on it: dashremix new <id> --schema library@1. Hash 23c966c9e8c706a9…

Dashboards that read it

Tables and fields

Required tables must exist in every database that says it follows library@1; required fields must be filled. Columns a board adds start with x_.

metarequired table

Key/value facts about this database. Required: schema, schema_version, as_of, data_hash. Recommended (checked at warn): source_built_at (ISO 8601 UTC instant the importer wrote it). Boards may add their own keys (dataset, person_name ...).

FieldTypeRequiredMeaning
keyTEXTno
valueTEXTno

itemsrequired table

One edition of a book.

FieldTypeRequiredMeaning
item_idTEXTyesthe ISBN-13 (ISBN-10s are converted), else t- + the first 12 hex of sha1(normalised title|normalised first author), e.g. 9780000000002 or t-3f9a0c2e7b1d
work_idTEXTyesw- + the first 12 hex of sha1(normalised title|normalised first author): the same for every edition of one work
titleTEXTyesthe title as the source gives it, series suffix included: The Salt Archive (Tidewater, #2)
authorsTEXTnodisplay list, main author first, comma separated (item_authors has one row each)
isbn13TEXTno13 digits with a valid check digit; NULL when the source has none or it was unreadable
isbn10TEXTno10 characters (digits, last may be X) with a valid check digit, as the source gave it
pagesINTEGERnopage count of this edition (> 0); NULL when unknown
pages_sourceTEXTnowhere pages came from when not this row's source: another export's row for the same ISBN-13 (goodreads-csv ...) or the person's own setting (reading-yaml); NULL = this row's source
formatTEXTformatsnoprint | ebook | audio | unknown (vocab formats), from the source's binding or format
bindingTEXTnothe source's own word: Paperback, Kindle Edition, Audible Audio, hardcover, digital
audio_sINTEGERnoaudiobook length in seconds (> 0); NULL when unknown or not audio
year_publishedINTEGERnoyear this edition was published
original_yearINTEGERnoyear the work was first published
publisherTEXTnopublisher of this edition
sourceTEXTsourcesyesconnector that wrote the row: goodreads-csv | storygraph-csv | library-csv (vocab sources)
source_refTEXTnowhere in the source: data/files/goodreads_library_export.csv:12
imported_atTEXTinstantnoISO 8601 UTC instant of the import (left out of meta.data_hash)

item_authors

The people on an item, in the source's order.

FieldTypeRequiredMeaning
item_idTEXTyesthe item
ordINTEGERyes1 = main author
authorTEXTyesthe name as the source writes it: Odile Marchetti
roleTEXTauthor_rolesnoauthor | translator | narrator | editor | illustrator | other (vocab author_roles); NULL = author

readsrequired table

One shelf entry or one read. A to_read row has no dates but date_added; a reading row has started (when known); a read row has finished when the source gives the date (NULL = read, date unknown: counted as read, in no year); dnf and paused rows keep the dates they have. Sources that give only the last read date and a count (Goodreads) write one dated row and keep the count in source_read_count: earlier, undated reads are never invented as rows.

FieldTypeRequiredMeaning
read_idTEXTyesfirst 16 hex of sha1(source|item_id|n)
item_idTEXTyesthe item read
statusTEXTread_statusesyesto_read | reading | read | dnf | paused (vocab read_statuses)
date_addedTEXTdatenothe day it went on the person's shelves (YYYY-MM-DD)
startedTEXTdatenothe day this read started (YYYY-MM-DD); NULL when the source does not say
finishedTEXTdatenothe day this read ended (read: finished; dnf: stopped) (YYYY-MM-DD)
ratingREALnothe person's rating, 0.5 to 5 (quarters allowed); NULL = not rated (a source's 0 means not rated)
reread_nINTEGERno0 = first read of the work, 1 = first reread ...; NULL on to_read rows
source_read_countINTEGERnothe read count the source reports for the item (on its newest row); may exceed the dated read rows
review_wordsINTEGERnowords in the person's review (the text itself is never stored)
ownedINTEGERno1 when the source says the person owns a copy
sourceTEXTsourcesyesgoodreads-csv | storygraph-csv | library-csv (vocab sources)
source_refTEXTnofile:line of the row it came from
imported_atTEXTinstantnoISO 8601 UTC instant of the import (left out of meta.data_hash)

tags

Shelves, genres, tags and moods on an item.

FieldTypeRequiredMeaning
item_idTEXTyesthe item
kindTEXTtag_kindsyesshelf | genre | tag | mood (vocab tag_kinds): genre when the person's shelf or tag names a genre
tagTEXTyeslower case as the person wrote it (book-club, adventurous); a genre uses the board's genre name (sci-fi -> science-fiction)
sourceTEXTnothe connector that wrote it

entries

Optional: reading progress the person logs (the DashRemix write path: dashremix log, the assistant from chat). Same columns as tracker@1 entries; tracker_id is the item_id, value is the page reached. Append-only: a correction is another entry, and the latest entry counts.

FieldTypeRequiredMeaning
entry_idTEXTyesthe writer's id (16 hex, minted once per log and kept on retry)
tracker_idTEXTyesthe item_id of the book
dateTEXTdateyesthe person's local date of the reading (YYYY-MM-DD)
valueREALyesthe page reached (>= 0)
noteTEXTnoone line the person wrote with it
sourceTEXTentry_sourcesnoapp | chat | cli | csv | import (as tracker@1 entries)
created_atTEXTinstantnoISO 8601 UTC instant it was logged, with milliseconds
source_refTEXTnodata/entries/2026-11/cli.jsonl:3
imported_atTEXTinstantnoISO 8601 UTC instant of the import (left out of meta.data_hash)

goals

Optional: the person's reading goals, one row per year.

FieldTypeRequiredMeaning
yearINTEGERyescalendar year, e.g. 2026
booksINTEGERnobooks to finish that year (> 0)
pagesINTEGERnopages to finish that year (> 0)
source_refTEXTnowhere the person set it: data/reading.yaml:goals

source_matches

Books found in more than one source, and what was done: every source row of such a book has a row here. One source wins each book (kept = 1); the other rows are dropped (kept = 0) and counted. Two editions that only look alike (same title and author, different ISBNs or subtitles) are both kept and marked possible_duplicate until the person decides; when both exports give them the same finish date they are one read in two exports (same_read): one source wins, as for a match.

FieldTypeRequiredMeaning
match_idTEXTyesfirst 16 hex of sha1(source|source_ref)
item_idTEXTyesthe item the row belongs to (for a dropped row: the kept item it matched)
sourceTEXTsourcesyesthe row's source (vocab sources)
source_refTEXTyesfile:line of the row
source_keyTEXTnothe row's own id or ISBN in that source (Goodreads Book Id, StoryGraph ISBN/UID)
methodTEXTmatch_methodsyesisbn | title_author | confirmed | same_read | possible_duplicate (vocab match_methods)
keptINTEGERyes1 = this row's source is the book's source; 0 = dropped as a duplicate
other_item_idTEXTnopossible_duplicate: the other edition's item_id
noteTEXTnowhat was decided, in words

data_issues

What the importer could not read or decided: rows skipped, ISBNs it could not use, books in two sources.

FieldTypeRequiredMeaning
issue_idTEXTyesstable id
severityTEXTseveritiesyesinfo | warn | error (vocab severities)
kindTEXTyesrows_skipped | isbn_unreadable | isbn_repaired | in_two_sources | possible_duplicate | undated_reads | ...
titleTEXTyesone line
detailTEXTyeswhat and where (file:line), never the person's review text
source_refTEXTnofile, or file:line
handlingTEXTyeswhat the importer did about it

annotations

Notes on metrics and pages (platform table, as finance@2). Numbers only through {{metric:...}} placeholders.

FieldTypeRequiredMeaning
annotation_idTEXTyesstable id
targetTEXTyesmetric id or page id
kindTEXTyesnote | caveat | flag | decision | open_item
bodyTEXTyesthe note text
authorTEXTnoperson or assistant
source_refTEXTnowhere it came from
created_atTEXTnoISO 8601 instant
data_hashTEXTnohash of the cited metric values when written (stale when they change)
statusTEXTnoactive | stale | retired

metric_registry

FieldTypeRequiredMeaning
metric_idTEXTyese.g. reading.goal_pace
versionINTEGERnothe metric's own version
unitTEXTnorows | pct | count | days ...
paramsTEXTnocomma list of parameters it honours
descriptionTEXTnothe @desc line
sqlTEXTnoexpanded SQL
testTEXTnothe @test line (check that covers it)

Vocabularies

Shared word lists, so every board and connector means the same thing by the same word.

author_roles6 values

author · translator · narrator · editor · illustrator · other

entry_sources5 values

app · chat · cli · csv · import

formats4 values

print · ebook · audio · unknown

match_methods5 values

isbn · title_author · same_read · confirmed · possible_duplicate

read_statuses5 values

to_read · reading · read · dnf · paused

severities3 values

info · warn · error

sources3 values

goodreads-csv · storygraph-csv · library-csv

tag_kinds4 values

shelf · genre · tag · mood

Changelog

1.0.0 (2026-11-30)

  • First published version, for Reading Log: items (one edition: ISBN-13 or a title+author id, work_id grouping editions), item_authors, reads (to read, reading, read, did not finish, paused; dates added, started and finished; ratings 0.5-5 with NULL for unrated; rereads; the source's own read count), tags (shelves, genres, tags, moods), optional entries (progress logged through the DashRemix write path), goals, source_matches (one source per book), data_issues, annotations, metric_registry.
  • Conformance checks: ids, ISBN check digits, items, reads, known items, one source per item, reread order (warn), known items for progress (warn), goals, meta rules (warn).
  • Fictional fixtures covering every check. Fixture ISBNs use the 979-0 prefix (kept for music, ISMN), so they cannot be a real book's ISBN, except one 978 pair used to test ISBN-10 conversion.

Other standards