Repository navigation
v2.0.0
Kist 2.0 is the biggest release yet. Search by meaning, colour, text inside
images, or with another image. Organise with a tag vocabulary, stacks,
duplicates, suggested collections and (opt-in) faces. Work creatively with
boards, flags and labels, annotations, versions, triage and a command
palette. Get things in and out with share links (with client proofing),
portable exports, provenance and credits, page snapshots, importers and XMP
sidecars. It handles video, audio, camera RAW, design files, SVG, 3D, fonts,
a timeline and a map. A phone layout you can install as an app edits on the
go, the grid stays fast past 100,000 items, and the look is new: a
monochrome gallery-grey interface with a new mark. AI runs on your own
hardware in a separate ml service, and can borrow a second machine's CPU
with kist helper. Every change is in the item history and undoes as one
batch. Every new piece of data is a plain file beside the library, so
kist rebuild-index restores it. Documentation now lives at
kist.pictures.
Upgrade notes
From 1.5.0, in this order:
- Back up the database first:
docker compose exec db pg_dump -U kist kist | gzip > kist-before-2.0.sql.gz. - Switch the database image to
pgvector/pgvector:pg16. Kist's
docker-compose.ymlnow uses it. It is built on the officialpostgres:16
image with the pgvector extension added, so it opens your existing
pgdatavolume as is: no dump and restore. If you keep your own compose
file, changeimage: postgres:16toimage: pgvector/pgvector:pg16for
thedbservice. Without it the app and worker refuse to start, and
migration 0101 says why. Stay on thepg16tag: a different Postgres
major version can't open a pg16 data directory. - Then:
docker compose pull db && docker compose build && docker compose up -d. Migrations 0006–0010, 0101, 0201, 0301, 0401, 0501, 0601 and 0602
run on start (one line, in that order). The rebuilt image now includes
exiftool and themediaextra (fontTools, brotli, resvg-py, trimesh). The newmlservice
downloads its model files (~600 MB, checked by sha256) into the
ml-modelsvolume on first start; AI jobs wait for it. - Run
kist rewrite-metaonce (it addsprotected,linksandthumbhash
to every meta.json and writestokens.json). Older items get their
ThumbHash in the background, or at once with
kist regen-previews --thumbhash-only. - Existing items:
docker compose exec worker kist ai-backfillqueues their
embeddings and OCR. SetKIST_AI_WINDOW=01:00-06:00first to keep the work
at night (estimated 1.5–2.5 h per 100,000 items on an i5-1235U). - The
ml-modelsvolume needn't be backed up (it re-downloads); the
library's newitems/*/ai/,events.jsonl,fixity.jsonland
.kist/tokens.jsonshould be, like the rest of the library. - New settings:
KIST_TRASH_RETENTION_DAYS(30),KIST_BACKUP_REPO,
RESTIC_PASSWORD/RESTIC_PASSWORD_FILE,KIST_BACKUP_INTERVAL_HOURS
(0 = manual);KIST_AI_ENABLED,KIST_ML_URL,KIST_ML_MODEL,
KIST_ML_TIMEOUT_SECONDS,KIST_AI_WINDOW,KIST_AI_CONCURRENCY,
KIST_AI_OCR_PDF_PAGES, and for the ml serviceKIST_ML_THREADS(4),
KIST_ML_CONCURRENCY,KIST_ML_DEVICE,KIST_ML_IDLE_SECONDS,
KIST_ML_BASE_URL,KIST_ML_MEM_LIMIT(2g),KIST_ML_CPUS,
KIST_ML_OPENVINO. All are in.env.example. - The trash now empties itself after 30 days; set
KIST_TRASH_RETENTION_DAYS=0before upgrading to keep it forever. - Milestones 2 and 3's migrations: 0201 (search: the
item_colorspalette
table kept by a trigger, CIEDE2000 in SQL, caption rows), 0301
(organising:tag_aliases,tag_implies,tag_embeddings,
tag_feedback,stacks,faces,people,items.stack_id) and 0401
(creative workflows:items.flag/label,boards,board_items,
board_events,annotations). - The
docker compose buildabove rebuilds themlimage, which gained a
batch embedding endpoint (it needspython-multipart) and the optional
face models. Those (YuNet + SFace, ~39 MB) are only downloaded, on first
use, whenKIST_FACES=1. - The one
kist rewrite-metaabove also addsstack,flagandlabelto
everymeta.jsonand writesvocabulary.jsonand.kist/people.json. - Palettes changed (they keep small saturated areas):
docker compose exec worker kist regen-previews --colors-onlyrefreshes
older items' palettes; it prints nothing until it finishes (roughly 10–20 minutes per 5,000 items). Fonts added before get a specimen
preview queued on upgrade. - Optional: captions for what you already have,
kist ai-backfill --kind caption(only once a caption provider is set;
a cloud provider receives every image it captions). - Optional: faces. Set
KIST_FACES=1for the app, worker and ml service,
thenkist ai-backfill --kind faceslooks at the items you already have
(plainkist ai-backfillincludes faces whenever they're on). - New settings, all optional and in
.env.example:KIST_AI_EMBED_BATCH
(16); captionsKIST_CAPTION_PROVIDER,KIST_CAPTION_URL,
KIST_CAPTION_MODEL,KIST_CAPTION_API_KEY,KIST_CAPTION_AUTO,
KIST_CAPTION_PROMPT,KIST_CAPTION_TIMEOUT_SECONDS; facesKIST_FACES
(0),KIST_FACE_MODELS_URL;KIST_COLLECTIONS_INTERVAL_HOURS(24).
KIST_AI_CONCURRENCYnow defaults to 2. - New files to back up with the library:
vocabulary.json,boards/,
.kist/people.json,.kist/templates.json,items/*/annotations.json,
items/*/ai/caption.json,items/*/ai/faces.jsonand
items/*/ai/tag-feedback.json(.kist/collections.jsonis a cache). - Milestones 4 and 5's migrations: 0501 (the
sharestable,
items.provenanceseeded fromsource_url, which stays and equals
provenance.page_url, the link-rot columns,item_textsourcepage),
0601 (items.mediaand its indexed columnstaken_at,taken_sort,
has_gps,lat/lon,camera,lens,vertical,has_audio,place,
raw_pair_key) and 0602 (items.added_by_token, see below). - The one
kist rewrite-metaabove also addsprovenance,source_check
andmediato every meta.json, writes.kist/shares.jsonand an
original.xmpfor every image (kist xmp --rewritedoes only the
latter). Until thenkist verifystays quiet about the missing keys. - Then
docker compose exec worker kist media-backfill(once;--limit N
does it in parts): camera and video metadata, scrub sprites and
waveforms, and older PSDs, RAWs, design files, models and zips get their
new kinds and previews. - Then
docker compose exec worker kist regen-previews --colors-only
(the same command as for Milestone 2's palettes; run it after
media-backfill): audio waveforms and font specimens lose the palette
they never had (colour search no longer finds Kist's own colours), and
design files keep theirs. - Optional:
docker compose exec worker kist geo-download(about 10 MB from
GeoNames, once) names the places of photos with GPS, offline afterwards. - Optional: the map's tiles. By default the web map reads a Protomaps
PMTiles file you download into the library (docs/maps.md); or set
KIST_MAP_TILES_URLandKIST_MAP_ATTRIBUTIONfor a hosted provider
(that provider then sees which areas you look at). - Optional: hardware video encoding on an Intel iGPU. Set
KIST_HWACCEL=vaapi(orqsv) for the worker and uncomment its
/dev/dridevicesandgroup_addlines indocker-compose.yml; a
failed GPU encode falls back to the CPU.KIST_FFMPEG_THREADS(2) caps
every ffmpeg run, which also runs undernice. - The link-rot watch is off by default: once Kist has its copy it leaves
the source site alone (re-requesting pages costs those sites requests and
gets rate-limited). SetKIST_LINK_CHECK_DAYS(e.g.7) to turn it on;
what it finds shows in the item's info panel and the "Source page" filter,
never as "Needs attention".KIST_WAYBACK=1(off) also asks archive.org,
an outside service, about gone sources. - Share links are Kist's first pages without a token. Only
/s/<slug>
(and/robots.txt) are public; they serve only that share's items,
never originals unless the share allows it, with no script, a sandboxing
CSP,noindex, scrypt-hashed passwords with a rate limit, and 410 once
expired or revoked. Visitors' addresses aren't logged. If Kist sits
behind a proxy with its own login, exempt/s/there only if you want
shares to work for people without that login. Review
GET /api/sharesnow and then; revoking is instant. - The browser extension and the bookmarklet's
/addpage: create an
add-only token for them (Settings → Tokens). It can now also attach a
page snapshot to an item it added itself in the last 10 minutes
(migration 0602 records which token added an item; the column isn't in
meta.json, so a rebuild just closes that window early). - New files to back up:
.kist/shares.json,.kist/export-presets.json,
items/*/page/,items/*/original.xmp,items/*/poster.png(uploaded
3D/design posters) and.kist/geo/(or re-rungeo-download).
library/exports/empties itself; scrub sprites, waveforms, proxies and
bundle manifests are regenerated byregen-previews. - New settings, all optional, in
.env.exampleand passed through by
docker-compose.yml: M4KIST_EXPORT_RETENTION_DAYS(7),
KIST_SNAPSHOTS(off),KIST_LINK_CHECK_DAYS(7),
KIST_LINK_CHECK_DELAY_SECONDS(2),KIST_WAYBACK(off),
KIST_XMP_SIDECARS(on),KIST_SHARE_PASSWORD_ATTEMPTS(10); M5
KIST_FFMPEG_THREADS(2),KIST_HWACCEL(none),KIST_VAAPI_DEVICE,
KIST_SCRUB_FRAMES(20),KIST_CLIP_MAX_SECONDS(600),
KIST_GIF_MAX_SECONDS(60),KIST_PROXY_MAX_SIDE(1920),
KIST_EXIFTOOL(on),KIST_BUNDLE_MAX_ENTRIES,
KIST_BUNDLE_MAX_TOTAL_MB,KIST_BUNDLE_MAX_ENTRY_MB,
KIST_MAP_TILES_URL,KIST_MAP_ATTRIBUTION.
Milestone 1: the platform
Kist 2.0, milestone 1: the platform and AI infrastructure. Named tokens
with scopes, history and undo for every item, links, protection, trash
retention, fixity checks, backups and archive health; and every image is
embedded (OpenCLIP ViT-B-32) and the text in screenshots and PDFs read,
entirely on your own hardware, with the results kept as plain files next to
each item. Plus a new look for the web app.
Added
- Named tokens with scopes. Make a token for each phone, person and
agent withPOST /api/tokens:addcan only add items (the iPhone
Shortcut),readonly looks (optionally only at some folders and their
subfolders, so family can browse one collection),agentcan organize but
never delete for good,writecan do every edit,admineverything, and
helperonly the AI job endpoints. Tokens can expire and be revoked, and
only their hash is stored, also inlibrary/.kist/tokens.json, so a
rebuild keeps them.KIST_TOKENkeeps working as the owner's admin token.
GET /api/mesays who a token is. - History and undo for every item. Every change (adding, edits, tags,
folders, trash, restore, permanent delete, links, protection) is recorded
with who made it (the token's name, or the CLI, the worker or the inbox
importer), from where (web, MCP, API, CLI) and in which batch.
GET /api/items/{id}/historylists it;POST /api/batches/{id}/undoand
POST /api/events/{id}/revertundo a batch or one change. Undo never
overwrites newer work: a change something later touched again is skipped
and listed with the reason. Each MCP tool call is one batch, so "undo what
the agent just did" is one call (recent_batches,undo_batch). The
history is also kept in each item'sevents.jsonl. - Links between items:
derived_from(a crop and its screenshot),
alternate,related,not_duplicate(the pair stops showing up as
near-duplicates) andversion_of. REST/api/items/{id}/linksand MCP
link_items; both items'meta.jsoncarry them. - Protected items can't be trashed or deleted until unprotected (409
"Protected: unprotect it first"). Agents can protect but not unprotect. - The trash empties itself: items trashed more than
KIST_TRASH_RETENTION_DAYS(default 30; 0 = never) ago are deleted for
good by the worker, never protected ones. The clock starts when you
upgrade, so an old trash isn't emptied the same day. - Folder descriptions (up to 5,000 characters), also shown to agents in
list_foldersso they know what belongs where. - Fixity checks: the worker re-hashes about 1/30 of the originals every
day, so each file is proved intact monthly, and records every check in
the item'sfixity.jsonl. A file that changed or vanished shows in Needs
attention (fixity_failedin/api/stats,GET /api/items?fixity=failed)
and deep health, with the hash to look for in a backup.kist fixity
checks on demand. - Backups:
kist backupdumps the database into the library and backs
the library up with restic (now in the image) toKIST_BACKUP_REPO, with
RESTIC_PASSWORDorRESTIC_PASSWORD_FILE. The worker can run it every
KIST_BACKUP_INTERVAL_HOURS. - Archive health:
GET /api/archive-healthshows fixity coverage and
failures, the last verify and backup, free disk, and a 3-2-1 checklist
(backup repository set, backed up within 7 days, a copy offsite, clean
verify). Deep health also reports fixity and backups. - Placeholders: every item has a
thumbhash, a ~25-byte blurred preview
the grid can paint before the thumbnail arrives. mlservice (imagekist-ml,ml/Dockerfile, internal only):
POST /embed/image,POST /embed/text,POST /ocr,GET /healthon
ONNX Runtime (CPU; no torch). Models: Immich's ONNX exports of OpenCLIP
ViT-B-32 (default) or ViT-B-16-SigLIP2 (KIST_ML_MODEL), pinned to a
Hugging Face revision and checked by sha256; RapidOCR (PP-OCRv4). Models
load on first use and unload afterKIST_ML_IDLE_SECONDS. Optional Intel
GPU through OpenVINO (KIST_ML_OPENVINO=1build,KIST_ML_DEVICE=openvino-gpu).embedandocrjobs, queued for new items (embeddings for anything
with a thumbnail; OCR for images without a camera's EXIF data, and PDFs,
whose text layer is read first and whose scanned pages are OCR'd) and by
kist ai-backfill [--kind embed|ocr] [--limit N]. They run on their own
threads in the worker (KIST_AI_CONCURRENCY), only while no import or
preview job is waiting, and backfilled ones only insideKIST_AI_WINDOW.
A down ml service puts jobs back without using up their attempts.- AI sidecar files:
items/<id>/ai/embed-<model>.f16(raw float16) and
.json, andai/ocr.json, written before the database rows.
kist rebuild-indexloads them and never recomputes;kist verifyreports
rows without files and files not in the database;kist ai-sidecars
writes missing files from the database. kist helper: run AI jobs on another machine (a Mac) for the server,
over HTTP:POST /api/ai/jobs/claimandPOST /api/ai/jobs/{id}/result.
Install withpip install 'kist[ml]'.GET /api/ai/statusand the MCP toolai_status.GET /api/items?semantic=<text>orders results by meaning (minimal; the
real search comes in milestone 2).- AI settings (see the upgrade notes):
KIST_AI_ENABLED,KIST_ML_URL,KIST_ML_MODEL,
KIST_ML_TIMEOUT_SECONDS,KIST_AI_WINDOW,KIST_AI_CONCURRENCY,
KIST_AI_OCR_PDF_PAGES, and for the ml serviceKIST_ML_THREADS(4),
KIST_ML_CONCURRENCY,KIST_ML_DEVICE,KIST_ML_IDLE_SECONDS,
KIST_ML_BASE_URL,KIST_ML_MEM_LIMIT(2g),KIST_ML_CPUS,
KIST_ML_OPENVINO. - Migration 0101: the
vectorextension,item_embeddings(halfvec, one
partial HNSW cosine index per model),item_text(GIN tsvector index),
ai_helpers. - AI results are not edits: embeddings and OCR text don't appear in an
item's history or in undo batches. Deleting an item for good also deletes
its embeddings, text andai/files. GET /api/items?semantic=respects a folder-limited read token, like
every other search;/api/ai/statusneeds an admin token, and the helper
endpoints ahelper(or admin) token.- Web app:
- A new look. Kist has a new mark (two brass corners and a kept item), a
"kist" wordmark and a full icon set: an adaptive favicon, iPhone home
screen icon, Android and maskable icons, and a single-colour icon. - Kist can be installed as an app: it now ships a web app manifest, so "Add
to Home Screen" opens it full screen with its own icon. - Light, dark and gallery-grey themes. Kist follows your device's light or
dark setting by default; the new Appearance menu (the palette button, or
the bottom of the phone menu) overrides it. Gallery grey puts the images and
the whole interface on one neutral mid-grey (#5c5c5c) for judging colour,
with a thin light line where the top bar and side panels meet the images. - Density: Compact (tight grid for sorting), Comfortable, and Gallery
(bigger tiles, more space, sidebars tucked away behind a Panels button). - Tiles show the image's colour while the thumbnail loads, then fade it in.
- Opening an item grows its tile into the full-screen view, and closing
shrinks it back, in browsers that support it. - The brand guide is in
docs/brand.md. - Settings (the gear in the top bar, or the phone menu; owner and
full-access tokens only), with its own address (/settings/tokens,
/settings/archive,/settings/ai):- Tokens: every named token with what it can do, its folders, when
it was made and last used, when it expires and whether it's revoked.
New token offers five presets, each explained: Family read-only (tick
the folders it may see), Share sheet (add only), Agent, Helper (the Mac
AI helper) and Full access. The new token is shown once with a Copy
button and a warning, plus thekist helpercommand or the MCP line
where they apply. Revoke asks first. - Archive health: how many originals were re-checked in the last 30
days, any whose file changed (with the fingerprint to look for in a
backup, and a link to them in the library), the last verify, the last
backup and its age, free disk, how long the Trash keeps things, and the
3-2-1 checklist, where you tick "a copy is offsite" yourself. Without a
backup repository it says how to setKIST_BACKUP_REPOup. - AI: whether it's on, the model, whether the ml service answers, how
many images are understood and how many have their text read, what's
waiting, the hours it runs in, and each Mac helper with when it was
last seen, plus how to start one.
- Tokens: every named token with what it can do, its folders, when
- History in the info panel and on the phone's item sheet: every change
to the item in plain words ("Claude added tags #a #b", "You moved it to
the Trash"), who made it, from where and when, each with Revert. A change
something touched again later is left alone, and a notice says why. - Recent changes (the clock button, the phone menu, or ⌘Z / Ctrl+Z
outside text fields): the latest batches of changes by you, agents and
Kist itself ("Claude via MCP tagged 12 items · 2 min ago"), each with
Undo, and Redo after an undo. A bulk action in the web app is one batch,
so Undo puts all of it back; the Undo after trashing items undoes that
batch. - Links in the info panel: linked items with their picture and how
they're related (Derived from / Source of, Alternate, Related, Not a
duplicate of, Version of / Has version). Add one by searching for the
other item's name; remove one with its ✕. Pressing a link shows that item. - Protect: a lock button in the info panel and Protect / Unprotect in
the selection bar. Protected items show a lock on their tile, and trying
to trash one says "Protected: unprotect it first". Agents can protect
but not unprotect, so the button says so for an agent token. - Folder descriptions: the folder dialog (the pencil) edits the name
and a description of what belongs there; the description shows under the
folder's name above its items. - Needs attention also lists originals that failed their fixity check,
with Show them (/all?fixity=failed, shown as a removable filter). - Other tokens get the app they can use: a read-only token sees no edit
controls, and one limited to some folders sees only those (no Unfiled,
Trash, tags or smart folders). An add-only or helper token is told at
the token screen that it can't open the library, instead of failing.
- A new look. Kist has a new mark (two brass corners and a kept item), a
Changed
- The database image is
pgvector/pgvector:pg16(see the upgrade notes). /api/health/deep's oldest pending job age ignores AI jobs, which wait
for their window on purpose.- Web app:
- Selected items are marked with brass corners and a check, so selection
and the keyboard focus ring look different. - Icons are drawn from one consistent set instead of emoji and symbols.
- New type: Inter for the interface, Instrument Serif for headings and
JetBrains Mono for file details, all served by Kist itself. - The accent colour is brass instead of blue, and rating stars match it.
- Animations are switched off when your device asks for reduced motion.
- Edits made in the web app show as "web" in an item's history (it sends
X-Kist-Client: web). - The token screen checks a token with
GET /api/me, so a family token
limited to some folders can sign in (it used to be refused, because it
can't read/api/stats).
- Selected items are marked with brass corners and a check, so selection
Fixed
- A fixity check, or the ThumbHash backfill after upgrading, no longer
counts as an edit: it used to move the item'smodified_at, so every
checked item looked "recently edited",kist verifyreported its
meta.json as out of date, and saving notes in an open info panel could
report a false "changed elsewhere".
Performance
- Paging through a large list no longer recounts every match on each page:
totalcomes with the first page only, and later pages saynull. - Every sort order has its own index, so deep pages stay fast.
Milestone 2: finding things
Search by what images show, by colour, by the words inside them, or by
another image, and "more like this" on any item; and keep a growing
library tidy: a tag vocabulary with aliases and implied tags, a cleanup
workbench, tag suggestions, duplicate groups you resolve in one step,
stacks, suggested collections, and (opt-in) faces and people. All of it
runs on your own hardware (unless you choose a cloud caption provider),
writes plain files the database can be rebuilt from, and every change
undoes as one batch.
Search
- One search box, several ways to search.
GET /api/items(and the MCP
toolsearch_items) gainssemantic(describe it: "brown suede boots on
cobblestones"),similar(more like this item),colorwithcolor_tol
(0–100),text(only words inside screenshots and PDFs) andhas_text.
They combine with every filter you already use (tags, folders, type,
rating, dates). Words plus a description (q+semantic) blend both
rankings. Keyword search (q) now also finds the text inside screenshots,
PDFs and captions. - Why it matched. Ranked results carry
matchwith the way they matched
(meaning, similar, colour, text, keyword, or several: hybrid), a score, and
for text hits a snippet with the words marked<<like this>>. - Search by image:
POST /api/search/imagewith a picture (it isn't
saved) finds items that look like it. Read-only tokens may use it. - Colour. Every item's palette is at
GET /api/items/{id}/palettewith
everyday colour names; colour search uses perceptual distance (CIEDE2000),
not RGB. New palettes keep small saturated areas (a red car in a grey
street now counts as red);kist regen-previews --colors-onlyrefreshes
older items' palettes; it prints nothing until it finishes (roughly 10–20 minutes per 5,000 items). - Fonts. TTF, OTF, WOFF and WOFF2 files are now their own type (
font)
with a specimen preview showing the family name and "Aa Bb Cc 0123 The
quick brown fox". Fonts you added before are queued for a specimen when
you upgrade. - Captions (optional, off by default). A sentence describing an image,
written by a local Ollama vision model (e.g.qwen2.5vl:3b), or by OpenAI,
Anthropic or Gemini with your own key. The cloud providers receive every
image you caption. Caption one item (POST /api/items/{id}/caption), a
backlog (kist ai-backfill --kind caption) or every new item
(KIST_CAPTION_AUTO=true). Captions are searchable, editable
(PATCH /api/items/{id} {"caption": …}), in the item's history and
undoable, and kept inai/caption.jsonnext to the item. A Mac running
Ollama can do them for the NAS:kist helper --kinds caption. - Faster embedding. The worker now runs two AI jobs at once and sends
embeddings 16 at a time (KIST_AI_CONCURRENCY=2,KIST_AI_EMBED_BATCH=16),
writing results side by side. On a fast disk that measured 53 → 84–99
items/s; with slow disk syncs like a busy NAS, 3.9 → 44 items/s. - For agents (MCP):
search_itemstakessemantic,similar_to,
color,color_tol,textandhas_text; newsearch_by_image
(a URL or a file in the import folder) anditem_palette;
update_item(caption=…). Agents are told to pass descriptions as
semantic.
Organising
- Tag vocabulary. Aliases (
POST /api/vocabulary/aliases) rewrite the
items carrying the variant, as tag events in one batch, and every later
use on every path; implied tags (POST /api/vocabulary/implies) are
matched at search time and shown asimplied_tags, never written to items,
and loops are refused;namespace:valuetags are grouped
(GET /api/tags?namespace=,tags=brand:*). Kept in
library/vocabulary.json. MCPget_vocabulary;set_tagsresolves aliases. - Tag cleanup.
GET /api/tags/cleanup(one-offs, case/spacing clashes,
near-misspellings and plurals, unused since a date, smart folders naming
missing tags or folders),POST /api/tags/mergewith a dry run and
POST /api/tags/rename, each one undoable batch. MCPtag_cleanup,
merge_tags. - Tag suggestions.
GET /api/items/{id}/tag-suggestions: the tags of the
item's nearest look-alikes ("similar items") and CLIP zero-shot over the
tag names ("matches the image"), with feedback that keeps a rejected tag
away from that item. MCPsuggest_tags. - Duplicate groups.
GET /api/duplicates/groups?kind=same_image|similar|exact
with a suggested keeper;POST /api/duplicates/resolvemerges tags,
folders, notes, the best rating and the source URL into it and trashes the
rest, in one batch. MCPduplicate_groups,resolve_duplicates. - Stacks.
POST/GET/PATCH/DELETE /api/stacks,GET /api/items?stacks=collapse
(covers only, withstack_count), suggestions for RAW+JPEG pairs, bursts
andversion_oflinks. Membership is astackevent and lives in
meta.json. MCPsuggest_stacks,stack_items. - Suggested collections.
GET /api/collections/suggested: clusters of 8+
look-alike items not already in one folder, labelled from their tags or
zero-shot, recomputed daily by the worker; accept one as a folder or a
tag plus smart folder. MCPsuggested_collections. - Faces and people (opt-in). YuNet + SFace (OpenCV zoo, Apache-2.0) in the
ml service with numpy pre/post-processing; afacesjob per image; people
formed automatically, named, merged and searched
(GET /api/people,PATCH /api/people/{id},POST /api/people/merge,
GET /api/items?person=, face crops). MCPlist_people. - A folder-limited read token sees people, stacks and faces only for its
own items.
Web app
- One search box, several ways to search. A mode button beside the box:
Auto (the default) searches names and codes as words (IMG_2231,
receipt.pdf, a quoted phrase) and anything else as words and meaning
together, so "orvis" finds the receipt that says it and "dog on grass"
finds the photo that shows it;#2f4f3asearches that colour. Or pick
Words, Meaning, Text in images, Colour (a picker with
swatches, a hex field and how close) or Image: choose a picture, or
drop or paste one onto the search box (it searches; it isn't added to
the library, and it isn't kept). The mode you pick is remembered. - Why it matched. Ranked results say "Best matches first"; where words
and meaning were mixed, the tiles the words found carry a badge, and text
hits show the words around the hit with the match highlighted, on the
tile and in the info panel ("Why it's here", with the score). If the AI
service is down, a words + meaning search falls back to the words and
says so; a meaning-only search offers "Search the words instead". - More like this in the info panel, the phone's item sheet, the
full-screen preview and a new right-click menu on tiles (which also finds
an item's main colour). More like this, a colour, an image or a person is
its own place in the history, so Back returns to where you were. - Info panel: the item's colours (press one to find that colour), the
caption (editable; Describe / Regenerate when a caption provider is set,
asking first when the provider is a cloud service, with the warning that
the image leaves your network), suggested tags under the tag box (add
one, or say no and it isn't suggested for that item again; each says
whether it came from look-alike items or the picture), implied tags shown
greyed with what implies them,brand:rolextags shown as two-part chips,
the people in the photo (name them, move a face to someone else) and the
item's stack. - Stacks in the grid. A stack shows once, with a count on it; press the
count (or S) to open it in place and again to close it. Stack and Unstack
in the selection bar, Make cover and Take out in the info panel, each with
Undo. - Organise (sidebar: Duplicates, Collections, People; its own URLs under
/organise/): Duplicates review, groups of the same picture or of
look-alikes side by side with the suggested keeper, choose the copy to
keep and what to carry over to it (tags, folders, notes, best rating,
source), "Not duplicates", and "Keep the suggested copy in every group";
Stacks suggestions (RAW + JPEG, bursts, versions); "You seem to
collect…" cards with samples, kept as a folder or a tag plus smart
folder, or put off; People (when faces are on): name, merge, and see
everything with someone. - Settings → Vocabulary (aliases, implied tags, namespaces) and
Settings → Tag cleanup (clashes, near spellings and plurals, tags used
once, unused tags, smart folders naming missing tags; every merge and
rename says first how many items it changes, and Undo in the notice puts
the tags back and removes the aliases the merge left). Settings → AI
shows the caption provider (with "Images leave your network" for OpenAI,
Anthropic and Gemini) and whether faces are on. - The new screens have phone layouts and pass axe-core with no violations
in the dark, light and gallery themes. Organise and the tag screens load
when first opened.
Fixed
- A keyword match whose words were split between the filename (or notes)
and the text inside the item now still gets a snippet marking the words
the text has.
Milestone 3: creative workflows (backend)
Boards, culling and pinned notes: the backend for the boards canvas,
compare, triage, quick look and the Cmd+K palette (the web screens follow).
- Boards.
library/boards/{id}/board.jsonholds nodes (items, notes,
text, shapes, groups, links, colour swatches) and arrows;thumb.webpis
a rendered snapshot.GET/POST /api/boards,GET/PUT/PATCH/DELETE /api/boards/{id}(PUT/PATCH withbase_version, 409 when stale),
duplicate, restore, a boards trash purged with the item trash's retention,
GET /api/items/{id}/boards, and export to PNG or PDF at a chosen scale
or to one self-contained HTML file. A deleted item stays on its boards as
a missing-item node. Board edits are in the batch history and undo. - Pick/reject flags and colour labels on items: in
ItemOutand
meta.json, filterable (flag=,label=), editable with PATCH and MCP
update_item, recorded as edits. - Annotations: notes pinned to a point, a box or a video time range
(/api/items/{id}/annotations), kept initems/{id}/annotations.json,
found byq, recorded in the item history. - Versions and compare:
GET/POST /api/items/{id}/versions(the
version_ofchain; uploading a new version links it to the newest) and
GET /api/items?ids=a,b,c. - Metadata templates (
/api/templates, applied as one batch) and
bulk rename with a pattern (POST /api/items/rename, dry run first). - Triage queue (
GET /api/triage/next) and the command palette
(GET /api/palette?q=). - MCP:
list_boards,get_board,create_board,add_to_board,
annotate,list_annotations; flags and labels inupdate_itemand
search_items. kist rebuild-indexrestores boards, board history, annotations, flags
and labels from their files;kist verifychecks them (and
templates.json);kist rewrite-metarewrites them.
Milestone 3: creative workflows (web app)
- Boards. A canvas of library items, notes, text, shapes, colour swatches and labelled arrows. Drag items in from a library panel or from the grid (or use Add buttons). Pan, zoom, marquee-select, align and distribute, group (⌘G), duplicate (⌘D), crop and snap. Saves automatically; if an agent or another tab changed the board, a banner offers to combine, keep theirs or overwrite. Export to PNG, PDF or a self-contained HTML file. A list view gives keyboard and screen-reader users every editing action without dragging. Phones can view, pan and zoom.
- Compare and survey. Select 2–4 items and compare them side by side with synced zoom, a wipe slider and a difference overlay, or survey a selection and pick or reject with P/X and auto-advance (from the grid: C compares, N surveys).
- Triage. Go through Unfiled one item at a time: P/X/U, 1–5 stars, 6–9 colour labels, T to tag, F to file, arrows to move, Undo. On a phone, swipe: left/right moves, up keeps, down rejects.
- Quick look. Hold Space on a tile to peek; Z shows a 100% loupe from the original, also in the full-screen view.
- Pinned notes. Pins and boxes on images; time-range notes on videos, shown as marks on the scrubber (M adds one at the current time).
- ⌘K palette. Jump to any folder, tag, board or item, or run an action; a full-height sheet on phones.
- Flags, labels and versions. Pick/reject flags and colour labels on tiles, in the info panel, the selection bar and sidebar filters. Upload a new version of an item and compare it with the previous one.
- Templates and bulk rename. Save sets of tags, folders, notes and labels as templates (Settings) and apply them from the selection bar. Rename many items with a pattern ({name}, {n:3}, {date:%Y%m%d}, {w}x{h}…) with a live preview; one Undo restores every name.
- First run. Empty views explain the ways in (drop or paste, Eagle import, the browser extension, an agent over MCP), and a dismissable checklist walks through setup.
Milestones 2 and 3 together
- Every search mode takes every filter: the vocabulary's aliases, implied
tags andns:*namespaces,person,flag,labeland annotation text
(throughq) work withsemantic,similar,color,text, hybrid
and search by image as well as with the plain list, and so does a
folder-limited token's scope. stacks=collapsein a ranked search collapses after ranking: a stack
shows once, as its best-ranked member (the one that matched, with its
matchand snippet, plusstack_count). The plain list keeps showing
each stack's cover.- Smart folders save any of the new fields (
semantic,color,
color_tol,text,has_text,stacks,person,flag,label). - Uploading a new version of an item that's in a stack puts the new
version in that stack as its cover. - The command palette also finds named people when faces are on.
- MCP is one set of tools:
search_itemstakes every new parameter
(semantic,similar_to,color,color_tol,text,has_text,
collapse_stacks,person,flag,label) andupdate_itemtakes
caption,flagandlabel. kist rebuild-indexputs stacked items back in their stacks without
touching theirmodified_at(verify used to report them afterwards).
The web app with milestones 2 and 3 together
- One keyboard map. Every shortcut is in one table per screen
(web/src/keymap.ts, shown in the README's Keyboard section) and a test
fails if a key does two things on one screen, if a handler checks a key
the table doesn't list, or if the README drifts. S in the grid opens and
closes a stack; survey moved to N (Lightroom's key; C still compares). On
a board, ⌘Z is the board's own undo only (it no longer also opens Recent
changes when focus is on the board's toolbar). - Search modes, flag and label filters, the type filter and every view
round-trip through the URL together, and a smart folder saves the search
mode, colour, text, person, flag and label filters. - The type filter offers every kind the server knows (audio, 3D models,
fonts, design files and bundles as well as images, videos and PDFs), and
the sort menu has Date taken. The milestone 4 and 5 item fields
(provenance, link status, media, taken, place) are typed in the client;
their screens come later. - Faster first load: Settings, the boards list, a board, triage, Organise,
compare, the command palette and preview notes load when first used, and
React and TanStack are their own long-cached files. The app's own script
went from 579 kB (179 kB gzipped) to 238 kB (75 kB gzipped).
Milestone 4: in, out and sharing
(Upgrade notes: in the combined list above.)
Added
- Share links. Read-only pages at
/s/<slug>for a folder, smart
folder, board or hand-picked items, with an optional password, expiry
(30 days by default), and download / original switches. The first pages
Kist serves without a token: plain HTML with no script, a sandboxing CSP,
noindex, a per-link signed cookie, rate-limited passwords, 410 once
expired or revoked, and views counted without recording who
(/api/shares, write and admin tokens). - Portable export.
POST /api/exportsbuilds a BagIt 1.0 zip with the
originals under readable folder paths and names,.jsonand.xmp
sidecars, optional history,items.csvand anindex.htmlthat browses
offline. Old exports are removed afterKIST_EXPORT_RETENTION_DAYS. - Export presets. Resized/converted copies (jpg, webp, png, avif) with
GPS always stripped, an optional text watermark, or a PDF contact sheet,
fromPOST /api/items/export-images; presets saved in
library/.kist/export-presets.json. - Provenance and the AI-generated flag. Every item records where it came
from (page and image URL, title, when, how, creator, credit, licence,
rights URL) and whether it is AI-generated, read from IPTC
DigitalSourceTypein XMP or a C2PA manifest. Editable (and undoable),
and filterable withai_generated=andlicense=. - XMP sidecars.
items/<id>/original.xmpfor every image, merged with
what other tools wrote; ratings, keywords, notes, labels and rights come
in from embedded XMP and from a.xmpdropped beside a file in the inbox.
kist xmp --export DIRwrites<name>.xmpbeside exported files. - Page snapshots.
POST /api/items/{id}/snapshotkeeps the page an item
came from (sent by the browser, or fetched once by the server with
KIST_SNAPSHOTS=1), scripts stripped, served sandboxed; its text is
stored as item text for search andget_page_snapshotover MCP. - Link-rot watch. Weekly, polite checks of every source page record
ok,moved,goneorerror; gone sources are counted in
/api/stats(source_gone) and listed withsource_status=gone.
KIST_WAYBACK=1keeps the Wayback Machine's copy as well. - Importers.
kist import pinterest|arena|raindrop|takeout|apple-photos| sidecar|eagle <path|url> [--dry-run] [--folder NAME]and
POST /api/imports: each run files intoImported/<kind> <date>, keeps
provenance, is one undoable history batch, and a dry run reports counts,
duplicates and errors. The Eagle importer is the former standalone
aerie_import.py, now built in (folders, tags, ratings, notes, trash and
simple smart folders). - iPhone share sheet.
POST /api/itemstakes{url, title, text}from
a Shortcut and answersSaved to Kist: <name>when asked for
text/plain;docs/ios-shortcut.mdandGET /api/shortcutwalk through
building the Shortcut with an add-only token. - MCP:
set_provenance,export_collection,export_status,
get_page_snapshot. - CLI:
kist import,kist xmp,kist link-check.
Milestone 5: formats and media
Kist now looks inside video, audio, photos, RAW files, design sources, SVG,
3D models, fonts and zip bundles, and adds a timeline, On this day and a map.
(Upgrade notes: in the combined list above.)
Added
- Video: a hover-scrub sprite per video (
scrub.webp+scrub.json, 20
frames), and the same for animated GIF and WebP. ffprobe metadata:
duration, fps, codec, bitrate, audio, rotation, vertical. - Pick a video's cover frame (
POST /api/items/{id}/cover; undoable), save
any frame as a new PNG item linkedderived_fromthe video
(POST .../frames), and cut clips to MP4, GIF or animated WebP, or MP3/WAV
from audio (POST .../clip, a worker job;GET /api/jobs/{id}reports
result_item_id). - Play anything:
GET /api/items/{id}/streamserves the original with HTTP
Range when browsers can play it, else a web-safe H.264 proxy made on first
play. Items sayplayable: native | proxy | none. - Audio items (mp3, wav, flac, aac, m4a, ogg, aiff): waveform thumbnail and
peaks (GET .../waveform, BBC audiowaveform JSON), duration, artist, title. - Camera metadata from EXIF (camera, lens, focal length, aperture, shutter,
ISO, date taken, GPS) with filters on/api/items(taken_after,
taken_before,has_gps,camera,lens,place,duration_min,
duration_max,vertical,has_audio) andorder=-taken. - RAW files (CR2, CR3, NEF, ARW, RAF, ORF, RW2, DNG, PEF) preview from their
embedded JPEG;raw_pair_key(basename + date taken) pairs a RAW with its
camera JPEG for stacks. - Design-file thumbnails from the preview inside PSD/PSB, AI, EPS, Sketch,
Procreate, Krita, OpenRaster, Affinity and Blender files (new kind
design); Figma files show an icon until a poster is uploaded. - SVGs are sanitized for thumbnails and "Copy SVG" (
GET .../svg), with
their exact fill and stroke colours inmedia.svg.colors. - 3D models (glb, gltf, obj, fbx, stl, usdz, ply; kind
model): bounds and
triangle counts, OBJ/STL/PLY converted to GLB (GET .../model), and
posters from the web viewer (POST .../poster). - Fonts:
GET .../font-info(family, style, glyphs, axes, scripts) and
GET .../glyphs;/fileserves fonts asfont/*, same-origin. - Zip files are kept whole as bundles (kind
bundle):GET .../bundle
lists them,GET .../bundle/{path}serves one file, and the preview is the
best picture inside. GET /api/timeline(day/month/year counts by date taken),
GET /api/on-this-day,GET /api/map(server-side clustering) and
GET /api/map/config; offline place names (kist geo-download), searchable.- MCP:
view_video(a contact sheet with timestamps),save_frame,
make_clip. - CLI:
kist media-backfill,kist geo-download.
Changed
- ffmpeg runs under
nice(andioniceon Linux) with
KIST_FFMPEG_THREADSthreads (default 2); clip and proxy jobs wait behind
imports and previews. - PSD files are kind
design, notimage;type=accepts audio, model,
font, design and bundle;/api/statscounts them. - Video
width/heightfollow the rotation a phone recorded.
Security
- ffmpeg reads every input with the demuxer named by the sniffed MIME type
and refuses types without one, so a playlist named.mp4can't open other
files. - SVG sanitizing: no DOCTYPE/entities, scripts, event handlers,
foreignObject or external references. - Bundles are never extracted; traversal paths are refused and size, total
and entry-count caps stop zip bombs. Design-file zip entries are capped.
Milestones 4 and 5 with 2 and 3
- One filter path: the provenance filters (
ai_generated,license,
source_status) and the media filters (taken_after,taken_before,
has_gps,camera,lens,place,duration_min,duration_max,
vertical,has_audio) go through the same filter builder as M2 and M3's,
so they work in the plain list,semantic,similar,color,text,
hybrid and search by image, and for a folder-limited token. Smart folders
can save them, and a share or export of a smart folder holds exactly what
it shows./api/timeline,/api/on-this-dayand/api/maptake every
GET /api/itemsfilter (flags, labels, people, tags with the
vocabulary,text=...). qalso finds the text of a saved page snapshot and the place name;
text=(andhas_text) stays the text inside images and PDFs only.
Snippets prefer OCR/PDF text, then the page, then the caption.- Boards can be shared and exported: their live items in reading order (top
to bottom, left to right); a trashed board can't be. - RAW+JPEG stack suggestions use the date Kist reads from the RAW itself
(raw_pair_key,taken_at), so a reused file name from another shoot
isn't paired; times are compared to the second. - Fonts keep Milestone 2's specimen as their thumbnail and gain font-info
and glyphs. What gets embedded (for meaning search and "more like this"):
images, RAW, SVG, video, PDF and design-file previews, font specimens, and
a model's or bundle's real picture; never audio (its thumbnail is a
waveform) or a generic icon. Waveforms, font specimens and icons get no
perceptual hash or palette. OCR stays with screenshots and PDFs. - The browser extension's requests as it sends them:
POST /api/items
takes flat provenance fields beside the file or URL (page_url,
image_url,title,captured_at,methodincl.bookmarklet,
author/creator,credit,site,license,
license_url/rights_url; a value that doesn't validate is dropped
rather than failing the save), andPOST /api/items/{id}/snapshottakes
{html, page_url, title, captured_at}or a rawtext/htmlbody. - MCP:
search_itemsandsearch_by_imagetake the provenance and media
filters;search_by_imagealsopersonandcollapse_stacks;type
lists the new kinds andordertakes-taken/taken. kist rebuild-indexandkist verifycover all five milestones at once
(shares, provenance, snapshots, XMP, link-rot results, media blocks and
their sidecars, alongside M2/M3's data).
Milestones 4 and 5: the web app
- Share links. Share a folder or smart folder (the top bar's share
button), the selection (the selection bar) or a board (its toolbar): a
title, an optional password, an expiry (30 days by default, a date, or
never) and download / original switches (originals need downloads on).
The link is copied with one press. Settings → Sharing lists every link
with its views and last view, and revokes or removes them. - Export. A BagIt zip of a folder, smart folder, the selection or the
whole library (originals, sidecars, history), with progress and the
download when it's ready. Export images makes resized copies (size,
JPEG/WebP/PNG/AVIF, quality, metadata, a text watermark) or a PDF contact
sheet, from saved presets you can add to and delete; GPS is always removed. - Where it came from. The info panel shows an item's provenance (page,
image URL, title, creator, credit, licence, rights URL, how and when it
came in), the source page's link status with the Wayback Machine copy,
and the AI-generated flag with what the file's C2PA/IPTC data said. Edits
send only the fields that changed and are undoable. Saved page opens
the page snapshot in a fully sandboxed frame, or its text. - Import. Settings → Import picks the kind (Eagle, Pinterest, Are.na,
Raindrop, Google Takeout, Apple Photos, files with sidecars), uploads the
export or takes a server path (or an Are.na URL), runs a dry run with its
counts, duplicates and errors, then the import with progress. It explains
the XMP sidecars too. - Phone and browser. Settings → Phone & browser shows this server's
iPhone Shortcut steps (GET /api/shortcut) and links to/bookmarklet,
the bookmarklet generator (no token needed). The bookmarklet's /add
card previews the image (no referrer), lets you pick another image from
the page, add tags, a folder (recent first) and a note, and saves only on
Save (Enter saves, Esc cancels) withmethod: bookmarkletprovenance;
"Already in Kist" for a repeat, plain words for a failed download, and
Back to the page when the pop-up was blocked. Parameters are checked:
only http(s) URLs, length caps, text never HTML. - Needs attention also lists items whose source page is gone.
- Video and GIFs. Tiles scrub through the 20-frame sprite as the
pointer moves across them (desktop only; the sprite loads on first
hover). The full-screen view plays from/stream(with Range; a web copy
is made on first play for files browsers can't play), and has Set cover
(the frame on screen), Save frame (a new item) and Clip… (in and out
from the player or typed, MP4/GIF/WebP, size; the job's result opens in
one press). - Audio plays under its waveform (click to seek) and clips to MP3 or WAV.
SVG shows the sanitized drawing with Copy SVG and its colours (press
one to copy it). Fonts show an editable specimen in the font itself,
size and variable-axis sliders, and the glyphs page by page. 3D models
turn in<model-viewer>(loaded only when a model is opened); Set poster
renders the current view as the item's thumbnail. Bundles list their
files (preview the images, view a model inside, download one file).
Design files show their embedded preview with a note about the source. - Media details in the info panel: camera, lens, exposure, date taken,
place and location (with a privacy note and "Items near here"), or
duration, frame rate, codecs, bit rate and sound; triangles and size for
models. - Filters: date taken, camera, lens, place, has a location, vertical,
has sound, length, AI-generated, licence and source page status, each a
chip in the search box; they round-trip through the URL and smart
folders save them. - Timeline (
/timeline): days, months or years with counts and a bar,
jump links by section; picking one shows those items in the grid sorted
by date taken. On this day sits on top of it and in the info panel
when nothing is selected. - Map (
/map): MapLibre GL with the self-hosted Protomaps basemap
through the PMTiles protocol (or a hosted XYZ/PMTiles URL), server-side
clusters as buttons, and a list of the groups beside it for the keyboard;
picking a group (or "Show these in the grid") filters the grid to that
area. Without a basemap the points still show on a plain map. - Phone layout for every new screen; axe-core finds nothing in the dark,
light and gallery themes. MapLibre (with its worker as a same-origin file)
and model-viewer are separate chunks loaded on first use; the first page
grew from 238 kB to 258 kB (81 kB gzipped). - Server:
GET /api/items(and every listing, smart folders, shares and
exports) takesdate_after/date_before(the timeline's date: taken,
else added) andbbox=w,s,e,n(items with GPS in a map area);
POST /api/imports/uploadkeeps an export sent from the browser in
library/import/uploads/; the app shell sendsframe-ancestors 'none'
andX-Frame-Options: DENY(the /add card can't be framed), the /add
page may load images from the web for its preview, a hosted
KIST_MAP_TILES_URL's origin is allowed for images and fetches, and
script-srcallows'wasm-unsafe-eval'(WebAssembly only, never JS
eval) for the 3D viewer's mesh decoder. - Fixed: the video notes scrubber had a label without a role, and the
Notes button pointedaria-controlsat a panel that wasn't there.
Milestone 6: phone and speed (backend)
- Date buckets for the scrubber.
GET /api/items/bucketscounts the
items of a listing per month (UTC, like the timeline), in the list's
order, with the same filters asGET /api/items(smart folders, tags,
colour labels,text=, a folder-limited token's scope ...). It takes
sort=created|modified|taken&order=asc|descor the list's own
order=-taken, and answers{sort, order, item_order, total, buckets: [{key: "2024-06", count, cursor}]}: each cursor, passed unchanged to
GET /api/items?order=<item_order>&cursor=..., starts at that month's
first item and pages on into the next. MCP:item_buckets.
order=modified(oldest edit first) joins the list orders. - Unfiled count in
GET /api/stats(unfiled) for the app badge. kist media-backfillonly does missing work. Reading an item's file
now leaveschecked_revin its media block, also when there was nothing
to read (screenshots, PDFs), so later runs skip it; it is in meta.json, so
it survivesrebuild-indexandverifychecks it. A failed read leaves
the item for the next run;--allstill does everything.- First install: the app, the worker and the container entrypoint check
that the library is writable and otherwise stop with one line naming the
chownto run. The README's quick start createslibrary/owned by uid
1000 first. - Speed at 250k items: migration 0701 adds a live-items
(taken_sort, id)index, has the created/modified/taken list indexes include
stack_id(the grid'sstacks=collapsestays an index-only scan) and
gives Postgres statistics on the month expressions, so month counts over
250k items take ~10 ms (~30 ms with stacks collapsed) instead of ~60. - Benchmark harness in
scripts/bench/:make_library.pywrites a
synthetic library of any size straight into Postgres,run.pytimes
every read path (p50/p95, JSON + a markdown table). See its README.
Milestone 6: phone editing and the app shell (web app)
- Editing on a phone. The item sheet and the full-screen preview now
have tap stars, tags (add with suggestions from your existing tags as you
type, ✕ to remove), Move to… (a bottom sheet with a folder search,
your five most recent folders and the whole tree; Move makes it the
item's only folder, Also in adds one) and Trash with Undo. Every
change is one batch in Recent changes. Notes, renaming, folder management,
smart folders and Settings stay on the computer; a read-only token sees
no edit controls. The desktop layout is unchanged. - Opens offline. A service worker keeps the app shell (the page, the
built scripts and styles, fonts and icons) so Kist opens without a
connection and says it is offline; it never stores anything from the
library (/api/*, item files, thumbnails), MCP or share pages. A new
version installs in the background and shows "Kist was updated" with
Reload. It registers only on https (or localhost) in a production build. - Offline banner when the browser is offline or the server stops
answering; it clears by itself when the connection is back. - App badge: the installed app's icon shows how many items are in
Unfiled (where the browser supports it), updated as you file things. - iPhone: the first visit in Safari shows a one-time hint on adding
Kist to the Home Screen.
Fixed (2.0 smoke test)
- Triage: each decision takes the item out of the Unfiled queue, so
"N left" counts down, and ⌘Z puts it back. - A bulk tag edit's notice offers Undo, like Trash and Stack.
- AI tag suggestions and collection labels no longer guess with a small
vocabulary (a dog as "watch" or "brand:Omega", buildings as
"credit:Wikimedia"): a zero-shot tag must stand out against the picture's
match with generic reference prompts (a z-score) and clear a raw cosine of
0.24; credit:, license:, source: and other bookkeeping tags are never
suggested or used as labels; a "similar items" tag whose name the picture
clearly doesn't match the way its neighbours do is dropped; a collection's
zero-shot label must be what most of its members match too, in the usual
spelling of the tag. On the 60-photo seed set over 11 vocabularies,
zero-shot precision went from 43% to 99%; in a library seeded with 3 of
10 photos tagged per category, every suggestion was right (93/93, was
121/168). - Trashing a protected item says why ("Couldn't move it to Trash:
Protected: unprotect it first.") without a useless Retry: Retry is offered
only where trying again could help (no answer, a server error, a timeout). - Board: ⌘A, ⌘Z, ⌘D, ⌘G and Escape work with focus on the toolbar, not only
after clicking the canvas. - Uploading a new version selects it (the info panel follows) and stacks the
version chain with the new version as the cover, so the grid shows one
picture; the notice offers Compare. PATCH /api/items/{id}withbase_modified_atanswers 409 only when a
field it writes was changed since: a link, tags, a stack or a rating
changed meanwhile no longer refuse a notes or name save.- Captions through an OpenAI-compatible server on the home network
(KIST_CAPTION_URLon a private address) no longer warn that images go to
OpenAI; another host is named in the warning.
Milestone 7: presence and launch (docs and brand only)
- README: a new top: the lockup, the tagline, a hero screenshot (dark or
light with the reader's GitHub theme), a one-paragraph pitch, what's new in
2.0, the demo loop, a factual comparison with Eagle, PureRef and Immich,
the quick start with thelibrary/ownership step, and connecting an
agent. The reference sections below are unchanged. A broken link to the AI
section is fixed. - Docs site:
site/mkdocs.yml(MkDocs + Material) builds the pages in
docs/into a static site: a landing page, Install (with a reverse
proxy), Upgrade (1.5 to 2.0 in order, with the backfills as one detached
chain), Coming from Eagle, Settings, AI, Agents (MCP), Phone and PWA,
Backup and verify, Privacy (every outside contact Kist makes, and how to
turn it off), plus the existing architecture, maps, Shortcut, brand and
releasing pages. Fonts are self-hosted;mkdocs build --strictpasses.
.github/workflows/docs.ymlbuilds it, and publishes to GitHub Pages only
when run by hand with "deploy" ticked. - Demo library:
docs/demo/library.jsonlists 43 public-domain and CC0
Wikimedia Commons images (chip dies, patent drawings, architecture, prints,
posters, textiles, cars, maps, aircraft, space);docs/demo/seed.pyadds
them to a throwaway instance under short names with tags and provenance
(creator, licence, Commons page), with a descriptive User-Agent and a pause
between downloads, anddocs/demo/dress.pyadds folders, ratings, stacks,
a board and a smart folder.docs/demo/CREDITS.mdcredits every image. - Screenshots and demo loop: every README and docs picture is taken on a
throwaway instance holding only the demo library.docs/demo/capture.py
takes them in three themes, desktop 1440x900 and phone 390x844 (grid,
colour search, the phone item sheet), anddocs/demo/record.pyrecords a
~19 s silent loop (the grid, an item, full screen, search by colour, a
board) as a GIF under 5 MB, read-only with Playwright. The loop's MP4 is
not in the repository:record.pywrites it outside, to attach to the
GitHub release. - Social preview:
docs/brand/build_social.pymakes the 1280x640 card
(lockup, tagline, a collage of demo-library images) for GitHub's social
preview and the docs site.
Design pass
The aesthetic pass: one grey, one control language, one type system.
- Screen headers (Timeline, Map, Organise, Settings, Boards, Triage) and the board bar sit on the same chrome grey as the top bar and sidebar, with the same light pinstripe; no more second grey band.
- Real italics: Inter's italic face is loaded, and the browser never fakes a slanted or bold style again.
- Every text size sits on Kist's six-step type scale (11/13/15/18/24/34 px); headings no longer pick up the browser's own sizes ("On this day" was 19.5 px bold). A test keeps it that way.
- Gallery grey's phone status bar is the same grey as the top bar (it was a leftover darker grey), and the app opens in its theme's colour with no dark flash in gallery or light.
- Light theme: the grid sits on a neutral light grey (#ececec) instead of warm paper, so photos aren't judged against a warm surround, and the full-screen preview uses the gallery mid-grey instead of near-black. The chrome stays warm paper.
- Smaller corners: grid tiles 4 px (square in compact density), the full-screen image square, board items 2 px.
- Menus, popovers, dialogs, toasts and the ⌘K palette share one floating look: a darker surface, a hairline edge and a soft layered shadow over a lighter backdrop. The palette is tighter and shows its keys as keycaps.
- Calm motion: menus and dialogs fade and slide in over 120 ms, the info panel slides in and fades out, buttons give slightly when pressed. Reduce Motion turns all of it off.
- Brass means something again: it's kept for the main button, selection, the focus ring and ratings. Tag, folder and board chips are neutral grey, links in the info panel are white and underlined, selected rows, chips, Settings sections, the ⌘K active row and pressed toggles (Info, tile shape, board tools) show a neutral fill with a thin 1 px outline instead of a brass bar; sliders, checkboxes, radios, progress bars and the date scrubber's mark are neutral too, and tile selection uses the theme's own brass.
- One control language: every button and field is 28 px tall; buttons are quiet (no box until you hover), Upload and other main actions are the only brass buttons, fields keep their outline, and dropdowns get Kist's own chevron.
- Type details: sentences get 1.5 line spacing and a comfortable line length, small section labels share one 11 px semibold style, every label is in sentence case ("Triage unfiled", "In trash"), and secondary text in gallery grey is a visible step dimmer.
- Titles get a voice: every view, page and panel title is set in Instrument Serif (Timeline, Map, Boards, Triage, each Settings section); counts are in Inter with even-width figures, and the monospaced face is kept for machine strings like MIME types, hashes and URLs.
- Icons: three sizes and one 1.5 px line everywhere, and one meaning per icon (the sparkle is only for AI, a flag always means Picks, boards have their own icon, themes no longer show a lightning bolt).
- Settings sit in one 640 px column with their buttons on its edge; the Appearance menu shows each theme as a colour chip, with the radio buttons lined up with the first line of text.
- Columns layout: a third tile shape next to Rows and Square. Fixed-width
columns show every image uncropped at its own height (only shapes beyond
1:3 or 5:1 crop), like Eagle's Waterfall. Each item goes into the shortest
column, so the order still reads left to right: arrow keys, Shift+arrows
and Shift+click select the same runs as in Rows, and Up/Down move to the
tile directly above or below in the same column. The Size slider sets the
column width; it works with the date scrubber, stacks, every density and
on a phone (2 columns or more; 1 column stays the feed). Rows stays the
default. On a phone the tile-shape button steps Rows, Square, Columns. - Quiet tiles: a tile shows its rating only on hover, keyboard focus or selection, as one star and a number ("★ 5") on the caption strip; every tile shows it while you filter or sort by rating. Phone tiles show no ratings (the item sheet does).
- Loading tiles look like tiles: a placeholder one step off the canvas with a faint, slow sheen (off with Reduce Motion), and no badges until the picture has arrived.
- Stacks look like stacks: a closed stack shows a second sheet peeking out behind its cover instead of a "⧉ 2" pill; the count appears on hover or focus (compact density keeps the badge).
- One-line top bar: the bar is 48 px and holds the logo, a one-line search box with the ⌘K shortcut shown inside it (click it to open the palette), Paste, Upload (the only brass button) and the quiet icons. Tile shape, size, type, filters, rating and sort moved into the grid's header, next to the title they change.
- The grid's title is set in the serif like every other view; a folder or tag page gets a larger title with its parent folder (or "Tag") as a small line above it.
- The grid header and the sidebar agree: the header leads with the sidebar's count and adds how many tiles that is when stacks are closed ("43 items · 41 tiles"). The date rail's year labels sit centred in the rail below the header, clear of the info panel, and the grid has even 12 px gutters on both sides.
- Clicking one picture no longer drops a panel over the grid: the selection bar appears only with two or more selected (the info panel covers one), as a single 40 px row docked under the grid with count, Tag, Folder, Board, Pick, Reject, Label, a More menu (protect, stack, compare, survey, rename, template, share, export) and Trash.
- Colour labels in the sidebar have their own "Labels" heading and are small ringed dots instead of six loud discs (the click target stays 24 px).
- Sidebar tags show as a wrapped cloud of small chips with their counts, instead of a long column of # rows. A toggle beside the Tags heading switches back to the list (handier with hundreds of tags), and Kist remembers your choice.
- Empty views feel finished: an outline of the Kist mark, one line in the serif, one quieter line saying how things get there, and one button. Empty Unfiled, Trash, Picks, Rejects, folders, tags, smart folders and searches with no results all use it.
- The rating stars in the info panel and in Triage are plain stars again, with no box behind the filled ones.
- The full-screen preview keeps its controls off the picture: Loupe, Notes and Close sit as matching quiet buttons in a band above the image, and one line below it reads "name.jpg · 3840 × 2628 px · 1 of 41" with More like this and Open original as plain text links. Both arrows look the same, and the image has square corners.
- Photo details read like a camera: exposure shows as a four-cell readout (focal length, aperture, shutter, ISO) under the camera name, and an image's colours are one continuous strip, each as wide as its share, with no outlines and the hex code printed under the big ones. The duplicate thin colour bar further down the panel is gone.
- The info panel breathes on a steady 16 px rhythm, the stars and Protect sit on one line, colour labels are small 16 px dots, the file name is a size larger, and suggested tags read "Textiles · similar" instead of shouting the reason in capitals.
- Boards: the toolbar is one quiet row in the chrome grey that never wraps (labels fold to icons on narrow windows, Share stays on the right), the board name is set as the page title, the active tool has a brass underline, and pictures sit on the board like prints with a soft shadow. New boards take the theme's own background ("Theme" in the background menu), so a board looks like the rest of Kist in every theme; existing boards keep their colour, and exports of a Theme board use the gallery grey.
- Timeline: the month bars are a quiet grey that turns brass only on the row you point at, years are serif headings over a hairline, and the year index is plain dim figures instead of a row of brass links.
- Phone polish: the top bar drops the desktop-only ⌘K and Export buttons (Share and Export are in the drawer now), search is a 44 px pill, the second row is one calm filled style, and each view gets a large serif title. The item sheet lifts off the grid with a light top edge, rounder corners and a visible grabber, tags and folders are neutral chips, Trash is a bin icon beside a full-width Move to…, and the tile you opened shows its brass corners without the multi-select check. The drawer opens with the Kist mark and name. In the full-screen preview the stars, Tags / Move / Trash, the arrows, Notes and close float in dark glass capsules that stay readable over any picture (solid when Reduce Transparency or Increase Contrast is on). A board on the phone gets a one-row header (back, its name in serif, a ••• menu with List, Export and Share) and the zoom floats in a capsule at the bottom, so the board has about 95 px more room.
- Easier tapping on the phone: the column −/+, the sheet's close button, View, the colour swatches, Edit, History and More like this answer to a thumb-sized area around them (about 44 px tall) without looking any bigger.
- On the phone the item sheet, the folder drawer and the Move to… and Tags sheets glide in on the iPhone's own sheet curve (a little slower and softer than desktop menus), with the backdrop fading at the same pace. Reduce Motion turns it off.
- Remove a dead token from the list: after you revoke a token, the notice offers Remove from list, and every revoked or expired token's card has the same button (
DELETE /api/tokens/{id}/entry; a token that still works must be revoked first). Its changes keep its name in item history, andtokens.jsonfollows, sorebuild-indexdoesn't bring it back.
Features from the art-team panel
-
Credits and rights (F4). Every item can carry a rights status (Ref only, Comp, Licensed, Cleared) beside its credit, creator and licence, and a "No credit needed" mark for your own work. The info panel shows the credit line and the status, and edits both; the selection bar's More menu sets them on many items at once (one Undo reverts it). A Needs a credit view in the sidebar lists items with no credit or creator (it's information, never "Needs attention"), and the Filters panel adds rights status, needs a credit and print size, which work in every search, the timeline, the map and smart folders (
rights_status=,needs_credit=,print_min=,print_max=). -
Credits fill themselves in from what Kist already has. On upload Kist now also reads EXIF Artist/Copyright and IPTC By-line/Credit/Copyright; when a page snapshot is saved, its author, site name and licence link fill empty fields. Nothing is ever fetched for it, and a value you typed is never overwritten. "Fill in from the saved page and file" in the info panel does the same for one item;
kist credits-backfill(with--dry-run) does it for items saved before, as one undoable batch that leaves "recently modified" alone. -
Credits on everything that leaves Kist: board PNG and PDF exports get a credits band, the board HTML a credits list, contact sheets a credit line under each picture, share pages a credit under each item, and BagIt exports a
CREDITS.txtplusrights_statusandcredit_linecolumns initems.csv. Present (and any client) readscredit_lineon every item, orGET /api/items/{id}/creditsfor the slide caption. Share pages, boards and slides never print where an item was saved from. -
A clearance warning in the Share and Export dialogs and the board's Export menu lists the items that aren't Licensed or Cleared. It never blocks; Settings → Sharing turns it off.
-
AI-made flag, from metadata only. Besides C2PA and IPTC, Kist now recognises generators that name themselves (Stable Diffusion/ComfyUI/InvokeAI PNG text, EXIF Software or XMP CreatorTool such as Midjourney, DALL·E, Firefly) and records which one. AI-made items get a small "AI" badge on their tile and stay in every view (flag, never hide);
ai_generated=truefilters them. Kist never guesses from pixels. -
Print check: the info panel shows how big an image prints at 300 and 150 dpi (cm or inches), which paper sizes it fills, the dpi written in the file and its colour profile (or that it has none).
print_min=A4/print_max=5infind what will and won't print. -
MCP:
set_credits,item_credits,credits_clearanceandprint_check, and the new filters onsearch_items. -
Kinds: utility collections you can correct (F1). Kist sorts pictures
into kinds by itself: Screenshots, Documents & pages, Drawings (with
Pencil & graphite and Ink & line art under it), Paintings, Photos (from a
camera) and Low-res, plus opt-in AI-made (only what the file's own
metadata says: C2PA, IPTC digital source type, the provenance flag) and
four trade packs switched on in Settings → Kinds (Fashion, Architecture
& product, Film & games, Editorial). It decides on your own hardware from
what it already has: CLIP zero-shot on the existing embeddings (prompt
sets against alternatives), OCR word counts, file type, EXIF and pixel
size. A child kind is only given when CLIP is clearly surer of it than of
its siblings; otherwise the item stays in the parent.- A Kinds section in the sidebar lists the kinds with at least 20
items (Settings → Kinds changes the number). A kind is a filter like
any other (auto_kind=drawings,-screenshots,drawings:unsure),
so it works in search, ranked and image search, the timeline and map,
smart folders and their shares, and MCPsearch_items. - Not this (X) / Belongs here (B) on the selection or the item in the
full-screen preview, and ✓ / ✕ on the info panel's kind chips (also on
the phone's item sheet). A confirmed call always beats the automatic
one. Automatic calls show dashed, with a small "auto" mark, until
someone confirms them. Every correction is in the item history and
undoes as a batch; it never movesmodified_at. - After 10 corrections a kind trains a small classifier on top of its
zero-shot score (logistic regression on the CLIP embeddings, numpy),
and the library is sorted again with it. Each kind has a strictness
slider, and the kind bar has To review (borderline calls), Confirmed
and Ruled out. - Low-res reads F4's print size when it is registered
(kinds.register_print_size), else the long edge in pixels (1,200 by
default, set in Settings → Kinds). - New items are sorted as they arrive and again after their embedding
and OCR; settings changes and learning re-sort in akindsjob;
kist kinds-backfilldoes only the missing work (--allfor
everything). Corrections are kept initems/<id>/ai/kinds.json,
settings inlibrary/.kist/kinds.json;kist rebuild-indexrestores
the corrections and sorts again (from cached prompt vectors when the ml
service is down), andkist verifychecks the files. - REST
GET/PATCH /api/kinds,PATCH /api/kinds/{id},
POST /api/kinds/{id}/correct,POST /api/kinds/refresh,
GET /api/items/{id}/kinds; MCPlist_kindsandcorrect_kind.
KIST_KINDS=falseswitches it all off. Migration 0901.
- A Kinds section in the sidebar lists the kinds with at least 20
-
Viewing aids (F5). In the full-screen preview and in compare: greyscale for a value check (G; the grey has the colour's real lightness, computed in linear light), posterise to 3 or 5 values (V), mirror (H), a grid of thirds, 4 × 4 or your own count (L), a 2 × 2 or 3 × 3 repeat preview for patterns, straight, half-drop or half-brick (T), and true 100 % where one image pixel is one screen pixel, Retina included (1; compare has a 1:1 button). A View button holds them all, on the phone too; a small badge says what is on and turns it off. They only change what you see: nothing is saved and the file is untouched. Escape leaves 100 % or the repeat before it closes the preview.
-
Your own colour books (F5). Settings → Colour books imports colour lists you have the right to use: Adobe Swatch Exchange (.ase), GIMP palettes (.gpl) or CSV (code, name, and hex or Lab). Under an item's colours the info panel shows the nearest code from each book you use, with how far off it is (ΔE, CIEDE2000); press one to find items in that colour. The colour search takes a code too (type it under "Or a code from your colour books", or
color=book:<book>/<code>in the API, and a bare code works). Books can be switched off, renamed or deleted, live as files inlibrary/.kist/colourbooks/(sorebuild-indexkeeps them andverifychecks them) and Kist ships none. For agents: the MCP toolsnearest_colour_codeandlist_colour_books. -
Projects (F6): a project is one job: name, client, job number, phase, status (active or archived) and notes. It groups folders, smart folders, boards and share links you already have, and saved Present shows, by reference, on its own page (Projects in the sidebar,
/project/<id>) with its notes, its most recently changed items and everything in it. The items filed in its folders (subfolders too) are the project's items: Items on the page, or theproject=<id>filter anywhere (grid, timeline, map, smart folders, share links of a smart folder, MCP). Archive hides a project from the list and the pins without deleting anything; Unarchive brings both back. Deleting one leaves its folders, boards and links alone. A folder, board or link deleted later shows as missing on the page until you remove it. -
Pinned: a section at the top of the sidebar for the projects, folders, smart folders, boards, people, tags and saved searches you use all day. Pin with + in its head (this view, this search, a project or a board) or the pin button on a folder or smart folder row; drag to reorder, or Alt+↑/↓ from the keyboard. Archived projects and deleted targets drop out. Pins are the owner's, for the whole library; a folder-limited read token sees only the pins of its folders and boards.
-
Custom fields per project: text, number, date, single choice or link fields (edition, paper, season, look number…). Every item in the project's folders shows them in the info panel and the phone's item sheet, edited in place; Set fields… in the selection bar's More menu fills them in for many items at once. Each save is an item history event, undoable from Recent changes. Filter with
field.<name>=in the URL or API: a value (field.season=SS27,SS27|AW27for either),>=3,<5,1..10and date ranges,*for any value ornonefor none; the filter button beside a value shows every item with it. A field's type is fixed once made; deleting a field or a project removes its values from the items. -
Projects and pins live in
library/.kist/projects.json, and field values in each item'smeta.json(custom_fields), sokist rebuild-indexrestores them andkist verifychecks them. New API:/api/projects…,/api/pins…,/api/fields,/api/items/{id}/fields,/api/fields/bulk. New MCP tools:list_projects,get_project,set_field_values;search_itemstakesprojectandfields. -
Guest proofing on share links (F3). A share link can now let guests pick or reject, heart and comment on its items ("Let guests pick and comment" in the Share dialog or under Settings → Sharing; off by default). Guests need no account: an optional display name is kept in a cookie for that link only. Feedback comes in numbered rounds: start a new round, close or reopen the current one, or turn guest feedback off, from the new Feedback view (sidebar, with a count of what's new). Each pick and comment remembers the version of the item the guest saw. Guests see only their own feedback unless you turn on "Show everyone's feedback". Nothing in your library changes until you Accept: a guest pick becomes your pick (or a reject, or a colour label), a comment becomes a note on the image by "Guest: via ", in one batch you can undo. Feedback also shows in the info panel and as a small ✓/♥ count on tiles. The share page still runs no script: every action is a plain form post, with a token tied to the guest, refused when posted from another site, and rate-limited per visitor address and per link (
KIST_PROOF_ACTIONS_PER_IP, default 120, andKIST_PROOF_ACTIONS_PER_SHARE, default 1500, per 10 minutes); comments are plain text up to 2,000 characters. Guest feedback lives inlibrary/.kist/shares/<id>/feedback.json, sokist rebuild-indexrestores it andkist verifychecks it. REST:GET/PATCH /api/shares/{id}/proofing,POST /api/shares/{id}/proofing/rounds,GET /api/feedback(share_id,round,item_id,unseen),GET /api/feedback/summary,GET /api/feedback/counts,POST /api/feedback/seen,POST /api/feedback/accept,DELETE /api/feedback/comments/{id}; MCP:guest_feedback,accept_guest_feedback. -
Present mode (F2). A folder, smart folder, board, selection or search as a full-screen show, from the top bar's Present button (the phone menu on a phone), the selection bar's More menu or a board's toolbar.
- Images are never cropped (fit), on a grey (the gallery grey) or black surround. Present loads the original wherever the browser shows it with its own colour profile (JPEG, PNG, WebP, GIF, AVIF up to 60 MB), so P3 stays P3 and nothing is recompressed; HEIC, TIFF, PSD and RAW use the full-resolution display copy. The 1024 thumbnail shows at once and the full image replaces it in the same box; the next two slides and the one before are loaded ahead.
- Captions show the title and the credit (with the licence) from provenance; file names stay off the screen unless you turn them on (C and F in the show). A board plays in board order, a selection in the order you picked, a search in its ranking.
- Ken Burns is off by default and an option per show. It never moves drawings, documents, screenshots, PDFs, video or side-by-side slides (decided by tags, OCR text and, with utility collections, their Drawings/Documents/Screenshots).
- Compare slides: two images side by side, from a pair you make (J joins a slide with the next, J again splits it), or every item with its stack partner or its previous version.
- Keys: arrows, Space, Home/End, a number then Enter; P pick and X reject (again: clear), N a note (an annotation on the image, in its history), B blank, G grey/black, T pause the timer, ? for the list. The cursor and the controls hide after a moment. On a phone (landscape), tap the sides to move and the middle for the controls, or swipe.
- Timed advance (5 s to 1 min a slide) and a gesture-drawing timer (30 s, 1, 2 or 5 min a pose, with a short grey pause between poses).
- Presenter view (V): a second window with the current and next slide, the notes (the item's notes, then its caption), the elapsed time, the clock and the slide timer, kept in step over
BroadcastChannel. - Phone remote (R): pair by QR code. The phone opens
/present/remote/<id>with a pairing token in the link's fragment; it can move the slides, pick, reject and blank the screen, and sees the slide's title, credit and notes. It reaches Kist through a small long-poll relay on the app (nothing outbound, works on the LAN or through your Kist address); the token works for one show, expires afterKIST_PRESENT_REMOTE_HOURS(default 4) and stops at Unpair. Picks made on the phone are applied by the show window as ordinary edits. - Offline: "Keep this show offline" stores the show's images in the service worker's own cache (one show at a time, up to 250 MB, 1 GB or 4 GB), so a loaded show keeps working without a connection.
- PDF: a landscape page per slide (A4, A3, Letter or 11×17) with captions, credits and optionally the notes, or the contact sheet; images with an ICC profile are converted to sRGB.
- Saved shows live in
library/.kist/shows.json(kist verifychecks it; a show of a search keeps the items it found). Open one by link:/?present=<id>. MCP:list_shows,create_show. - New settings:
KIST_PRESENT_REMOTE_HOURS(4),KIST_PRESENT_MAX_SLIDES(500). New endpoints:POST /api/present/slides,POST /api/present/pdf,/api/shows(CRUD,/slides,/pdf),/api/present/remote(pair, poll, state, unpair) and the phone's/present-relay/<id>/state|cmd|thumb/<item>. A folder-limited read token can present and print what it sees and nothing else; read tokens can't save shows or pair a phone.
-
Subject cut-outs (F7). "Cut out subject" lifts the subject off its background as a new transparent PNG, linked derived from the original, with its tags, folders and credit; the original is never touched. It's in the preview, the info panel (which also lists an image's cut-outs), the phone item sheet, the selection bar's More menu (a cut-out per image), a board's inspector (Cut out swaps the placed image for its cut-out; Undo puts it back) and MCP (
cut_out_subject). Choose Fast (ISNet, a few seconds on a NAS CPU) or Fine edges (BiRefNet-lite, keeps thin parts and white-on-white subjects, about six times slower), an edge feather (0–20 px) and Keep the shadow. It runs as acutoutjob on your own ml service; the model (179 or 224 MB) downloads once, the first time someone asks, and the dialog says so. Boards draw cut-outs with no card or shadow, and board exports keep them transparent.KIST_CUTOUTS=0turns it off. Endpoints:POST /api/items/{id}/cutout,POST /api/cutouts,GET /api/items/{id}/cutouts,GET /api/items/{id}/cutout-preview,POST /api/boards/{id}/nodes/{node}/cutout,GET /api/cutouts/status; the ml service hasPOST /cutout. -
The seven together. Low-res is a print size now that the print check
is there: an image is low-res when its long edge prints under 5 in at
300 dpi (1,500 px; Settings → Kinds changes the inches), and AI-made
follows the same AI-made flag as the badge and theai_generated=true
filter ("not AI-made" wins). Present captions and the slides' PDF use the
credit line every export prints; Ken Burns never moves anything in
Drawings (with Pencil and Ink), Documents, Screenshots or Plans. In a show
the viewing aids sit in the toolbar and answer to Shift, since Present
keeps its own letters: ⇧G greyscale, ⇧V posterise, ⇧H mirror, ⇧L grid
(no repeat or 100 % in a show). A project can hold saved shows. Cut-outs
stay transparent in Present, the repeat preview and the grid (on a quiet
checkerboard). The share page and its per-item proofing page both print
the credit. Smart folders keep a kind filter, the MCPitem_bucketstool
takes the kind, credits, project and field filters, and the grid's title
names the project or "Needs a credit". A kinds re-sort waits behind
imports and previews and never holds back a cut-out. -
Fixed: on a selected tile the pick/reject, protected, AI and feedback
badges no longer stretch into a dark bar (only a video's duration moves
aside for the check). -
Upgrade: migrations 0901, 0921 and 0951 run on start (in that order).
Afterwardskist credits-backfillfills credits for items saved before;
kist kinds-backfillis optional (the worker sorts the library while
idle). -
Cut-outs and memory: a "Fine edges" cut-out needs about 8 GB for the ml service (
KIST_ML_MEM_LIMIT=8g); below that it's shown but not offered, with the reason, instead of crashing the service. It's unloaded after each cut-out and its memory goes back to the system. The ml service's default memory limit is now 4 GB. A cut-out that brings the service down is tried three times, then fails with a plain reason instead of waiting for ever. Progress bars are neutral grey.
Performance at 17k+ items
- Thumbnails come straight from disk. Every grid tile used to cost a
database round trip before its file was sent. Now the thumbnail and
cut-out preview routes find the file from the item id alone (the id's
format is checked first, so nothing else reaches the file system) and
read it in one go; only a folder-limited read token still has each item
checked against its folders (trashed items and other folders stay 404).
On a 20,000-item library with real thumbnails, 300 thumbnails from 30
connections: 455–487 → 2,220–2,290 thumbnails/s, median 59–62 → 12.5 ms,
p95 106–123 → 15–16 ms. A versioned thumbnail URL (?v=) is now cached
for good whenever the exact size exists, without checking the version
against the database (a stand-in size is still revalidated). - Named tokens no longer cost a database query per request. The
principal akist_token stands for is kept in memory for 5 seconds;
creating, revoking or removing a token and any folder change clear it at
once. With a named read token the same test went from 391–405 to
2,210–2,300 thumbnails/s (without the cache: about 1,050). The owner
token is now checked without a thread hop. - Database connections: measured, left as they were. Under 30 concurrent
item, history and list requests, a pool of 15 or 30 connections or
turning off the pre-ping changed nothing beyond noise; the app process,
not the pool, is what those requests wait for. - New bench tools:
scripts/bench/thumbs.py(thumbnail p50/p95/throughput
per size; refuses kist.example.com unless--read-only-prod, GETs only) and
scripts/bench/thumb_pool.py(gives a make_library library real
thumbnails); seescripts/bench/README.md. - Lighter thumbnails. Grid thumbnails are now WebP quality 80 (was 86):
on 40 of the owner's own originals (iPhone photos, photos, screenshots,
product shots on white, illustrations, wallpapers) thumb_512 went from
54.1 to 43.3 KB (−20 %) and thumb_1024 from 89.9 to 69.5 KB (−23 %), at
SSIM 0.977 against 0.984. Quality 76 and 72 softened suede, stone and
foliage visibly; a slower WebP "effort" gave no better quality per byte;
AVIF was 40 % smaller still but about 5× slower to make on an N100 and
slower for phones to decode, so it isn't used. No new thumbnail size
either: thumb_512 (short side 512) and thumb_1024 (long side 1024) are
only 1.33× apart for a 3:2 photo, so an in-between size would save
little and need a full backfill. - Upgrade:
kist regen-previews --thumbs-onlyre-encodes the existing
thumbnails from the originals (iPhone HEICs from their full-size copy;
PDFs, videos and other kinds through their normal preview steps), so
nothing is compressed twice. It prints a progress line with a time
estimate every 200 items (--progress-every N), never moves an item's
"modified" date, gives each item a new preview version so browsers fetch
the new files, and remembers per item that it's done (athumbs.vfile
beside the thumbnails, kept byrebuild-index), so it's safe to stop and
run again; one unreadable file fails only itself. Expect roughly 2–3
hours per 17,000 items on an N100 (an estimate: 0.2–0.35 s per item to
encode, measured on dev0, plus the meta.json write every backfill pays).
New uploads get the new encode right away. - The grid stops downloading what flies past. While you scroll fast
(above about two screens a second) tiles show their blurred placeholder
and ask for nothing; when you slow down or stop (after ~0.12 s) the tiles
on screen load first, the rows just off screen after them. A thumbnail
still loading when its tile scrolls away is cancelled instead of
finishing in the background, and a date-scrubber jump loads where it
lands, not the months it passed. Measured on a 20,000-item library over
3 s of fast scrolling: on a desktop window 488 thumbnail requests and
31 MB became 227 and 11 MB (frame-by-frame scrolling at the same speed:
455 and 31 MB became 81 and 5 MB); on a phone 483 requests and 32 MB
became 104 and 5 MB, and the screen you stop on is complete after 0.8 s
instead of 3.7 s. Keyboard, selection, layouts and reduced motion work
as before. - A lighter grid list. The grid now asks for only what its tiles,
selection, stacks and badges show (GET /api/items?fields=grid, also on
search by image); notes, captions, sources, credits, camera data and the
rest come with the item when you select or open it (the full-screen
preview fetches its neighbours ahead). Pages, order, totals and cursors
are the same as before. A page of the real library goes from about
1.6 KB to 0.7 KB per item (59 % less); on a synthetic 20,000-item library
a 120-item page goes from 26 KB to 13 KB as sent (gzipped). List times
drop a little (first page 46 → 36 ms at 20,000 items, a scrubber jump's
300-item page 104 → 90 ms at 250,000), and a date-scrubber jump is
complete after about 0.54 s instead of 0.65 s. Withoutfieldsthe API,
MCP and extension answers are unchanged; edits still check
base_modified_atagainst the item you opened.
Info panel editing
- Edit the tags of several items from the info panel. With two or more
items selected, the panel lists every tag on any of them; a tag only some
of them carry is outlined instead of filled, with a count (3/5). Its ✕ takes the tag
off every selected item that has it, and the field below adds tags (with
matching existing tags offered as you type) to the items that miss them.
Each change is one batch: the notice offers Undo, and it is one entry in
Recent changes. The bottom bar's Tag field still adds too. - Trash from the info panel. One item selected, a Trash button sits
under Protect: no question asked, the item goes to the Trash and the
notice offers Undo (which selects it again). Protected items can't be
trashed (the button says why); a trashed item shows Restore instead.
Monochrome
- No more brass. The accent is now the theme's own ink: near-white in
dark and gallery, dark grey (#2B2B2B) in light. That covers selection
corners and checks on tiles, the focus ring, stars (also the white star on
tile captions), links, pick stamps, badges and the logo's i-dot.
Warnings turn neutral too; red stays for Trash, delete and errors, and
green and blue stay for done and info. - Primary button. Upload, Save and the other one-per-view actions are a
dark grey fill with a white label in every theme, with a thin ink outline
so it holds on the dark and gallery backgrounds (new tokens--primary,
--primary-hover,--on-primary,--primary-line). - App icon. The mark is white on a dark grey (#3A3A3A) tile; the
favicon is dark grey on light browser chrome and near-white on dark. Icon
URLs moved to?v=5, so browsers and home screens pick up the new icon. - Boards. The brass swatch is gone from the board colour swatches; a
new colour block starts orange. Existing notes keep their colour. - The docs site and README badge follow (dark grey / near-white links).
Demo library
- The screenshots, demo loop and social card now show 37 public-domain
paintings and prints from The Metropolitan Museum of Art's Open Access
collection (CC0), from Hokusai and Hiroshige to Van Gogh, Vermeer and
Bruegel.docs/demo/met_library.pyrebuilds the list from the Met's API and
writesdocs/demo/CREDITS.md, which credits every work.