Repository navigation
Releases
v2.1.0
Kist 2.1 makes boards easier to look through. Open an item on a board full
screen and ← → step through the board itself, in reading order. Press D
(or Info) for a strip under the image with where it came from (the source
link), credit, tags, rating, caption and notes, and set the rating or add and
remove tags right there. In All boards, a click anywhere on a board's card now
opens it.
Upgrading from 2.0: web changes only, no database migration and no new
settings. Pull the new image (or rebuild) and restart.
Step through a board full screen, with an info strip
- Double-click an item on a board (or Open item in the board inspector) to see it full screen; ← and → now step through the board's own items in reading order (rows top to bottom, left to right), skipping notes, text and shapes. Before, they stepped through the library grid behind the board. Read-only viewers can open items this way too.
- Info (or D) in the full-screen preview shows a strip under the image: the source link (the page it was saved from, by title), credit, tags, rating, caption and notes. It stays on or off until you change it. Desktop only; on a phone the item sheet has this.
- The info strip always shows the rating, as stars (“not rated” when there is none). If you can edit, click a star there to rate (the same star again clears it), and add tags in the strip's tag field (comma-separated, Enter; matching tags are offered as you type) or remove one with its ✕.
Boards list
- Clicking anywhere on a board's card in All boards opens it: the name, the item count and the empty space too, not just the picture. Rename, Duplicate and Trash still do only their own thing.
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 platf...
v1.5.0
A hardening release. Kist was reviewed for security, data integrity,
failure handling, performance, accessibility, observability and first-use
friction, and everything found was fixed:
- A file can no longer pretend to be a PDF to run script as Kist.
- The on-disk copy of the library (meta.json) is written atomically and
kist rebuild-indexno longer drops anything silently. - Edits from two tabs or from an agent can't overwrite each other unnoticed.
- Failed saves say why and offer Retry, trashing offers Undo, and a lost
token no longer throws away uploads or typed text. - The whole app works from the keyboard and with a screen reader (WCAG 2.2 AA).
GET /api/health/deep, request ids, client error reports and
kist selftestmake problems visible.- Phones can upload, and zooming a desktop browser keeps the full app.
After upgrading, run kist rewrite-meta once (it adds the preview revision
to every meta.json), then kist selftest. If Kist sits behind a reverse
proxy on the same host, set KIST_BIND=127.0.0.1.
Security
- A web page saved with a
.pdfname can no longer run as Kist. Kist
decided a file was a PDF from its name, then served it inline, so an HTML
"invoice.pdf" could run script with your token as soon as you opened it.
The type now comes from the file's contents everywhere: only real images,
video, audio and PDFs are shown in the browser, and anything else is a
sandboxed download, whatever it's called. Runkist reclassifyonce to
tidy up items added before this (see Changed). - The API docs (
/docs,/redoc,/openapi.json) need the token. In a
browser, being signed in to the web UI is enough. - A token with non-ASCII characters is refused with 401; it used to cause a
server error. - Direct uploads are capped at
KIST_MAX_UPLOAD_BYTES(4 GiB by default);
bigger ones get 413. source_urlmust be an http(s) address. Anything else (say,see notes)
could blank the web UI when you opened the item.- New
KIST_BINDsetting for the address the port is published on. The
default is unchanged (every interface); setKIST_BIND=127.0.0.1when the
reverse proxy runs on the same host so the LAN can't reach Kist over plain
HTTP. The Postgres password default stayskist, now with a note to change it.
Performance
Measured on a 4,417-item library; details in the performance review.
- The full-screen view no longer downloads originals on a phone. Every
image over 1024 px gets a 2048 px WebP copy (about 0.5 MB, where
originals run 5-30 MB), and the preview picks the copy unless the screen
shows the image wider than that. Five swipes through large photos went
from 93 MB to about 3 MB. Runkist regen-previewsonce to make copies
for existing images; it makes only the missing copy, leaving the other
previews alone. - Edits no longer reload the whole list. Changing a rating, tags or
folders, trashing or restoring updates the loaded list in place (an
item that no longer belongs in the view drops out of it), instead of
refetching every loaded page (37 pages and 4.5 MB on a fully scrolled
library). Coming back to the tab no longer reloads the list either, and a
batch upload refreshes it once at the end, not after every file. - Compressed responses: JSON, JS and CSS are gzipped (3-6× smaller);
images and videos aren't. - Caching: the app's hashed files, originals and versioned thumbnails
are cached by the browser for good. Thumbnail URLs carry?v=<preview_rev>
(new on items), which changes whenever a preview is regenerated. - Faster start: the app no longer waits on a server check before
loading the library.
Fixed
-
Edits no longer fail silently or overwrite each other (from a trace of
network drops, server errors, slow responses, sign-outs and double
submits):- Tags and folders are changed with add/remove
(PATCH /api/items/{id}/tagsand/folders,{add, remove}) instead of
sending the whole list, so two quick clicks, or a browser tab and an
agent working on the same item, can't undo each other. - Writes to one item go out in click order, so the server ends on your
last click. - A failed save says why ("No connection to the server", "Server error
(500)", "The server took too long") with Retry. Unsaved notes and
names are kept, marked "not saved yet", survive selecting another item,
and the browser asks before closing the tab on them. - Requests time out after 30 s (URL adds after 150 s) instead of hanging.
- Bulk actions carry on past a failure, then say "Tagged 37 of 40. 3
failed: …" with Retry, keeping just the failed items selected. - When the token stops working, the token screen appears over the app
instead of replacing it: queued uploads and typed text survive, and
uploads now notice a sign-out too. - Folder and smart-folder actions say when they fail.
- Tags and folders are changed with add/remove
-
The token screen accepted any token: it checked
/api/health, which needs
none. It now checks with a request that does. -
A file dropped in the inbox can no longer be lost. If importing it
failed partway (for example the database was briefly unavailable), Kist
deleted it and then marked the job done. Now the file is put back, a
missing file fails the job instead of passing it, and after the last
attempt the file is kept inlibrary/failed/under its own name. -
Re-adding something that's in the Trash says so. Instead of "already in
library" for an item you can't see, the upload shows "in Trash" with a
Restore button. API and MCP answers carry the item'sstate. -
Uploads stay in the folder you dropped them in. Switching folders while
a batch was uploading sent the rest of the batch to the new folder. -
Jobs left running by a stopped worker are picked up again after
KIST_JOB_LEASE_SECONDS(default 900) instead of staying "running" forever. -
Smart folders now show as selected, and "All items" is only highlighted
when nothing narrows the view. -
meta.json and folders.json can no longer be corrupted by two saves at
once. Every writer used the same temporary file; two quick edits (a tab
and an agent, or an edit while a preview was being remade) could leave a
half-written file, or answer "Couldn't save" for a change that had saved.
Each write now uses its own temporary file, is flushed to disk, and
re-reads the database under a lock, so the file always ends on the newest
state. If writing the file fails, the edit still succeeds and
kist verifypoints at it untilkist rewrite-metawrites it again. -
Edits made in another tab or by an agent are no longer silently
overwritten. A notes or filename save from a page that was opened
before someone else changed the item is refused (409) with the current
item, so the web UI can ask which to keep. -
Inbox files can't get stuck in
.stagingany more. If the database was
down when the worker picked up an inbox file, the file sat in
library/.staging/forever with no import. It now goes back to the inbox,
and the worker sweeps staging at start and every 5 minutes for anything
left there. -
Dropping a file that's already in the library onto a folder files it
there. A duplicate upload or URL add used to ignore the folder, tags and
notes sent with it. -
Requests that name a folder that doesn't exist fail instead of quietly
doing nothing. Uploading to, or filing into, a folder deleted in another
tab answered "done" and left the items unfiled; it's now a 422 "Unknown
folder". Removing an item from such a folder still just works. -
kist rebuild-indexno longer drops things without a word:- An item folder with its file but no meta.json is restored from the file
(asrecovered-<id>.<ext>, since its name, tags and notes only lived in
meta.json) and reported. --wipechecks folders.json can be read before emptying anything.- A folder whose parent is missing, or that's in a parent loop, is
restored at the top level with a warning. - Thumbnail versions (
preview_rev) are saved in meta.json and restored,
so browsers don't keep showing an old cached preview after a rebuild. - Anything it had to skip or work around makes the exit code 2.
- An item folder with its file but no meta.json is restored from the file
-
Deleting, renaming or moving a folder rewrites its items' meta.json, so
kist verifyno longer reports drift after an ordinary folder delete. -
kist rewrite-metano longer overwrites edits made while it runs: it
re-reads each item as it writes it, so it's safe to run with Kist up. -
Two folder moves at the same moment can't put folders in a loop (which
hid them from the sidebar). Two writers adding the same new tag at once no
longer fail with a server error. -
Moving a failed inbox file to
library/failed/(and back on Retry) happens
only after the job is saved, so a database hiccup can't leave a job
pointing at the wrong place. -
Permanently deleting an item cancels its queued preview retries (no more
noisy failed jobs) and can't be undone by a preview finishing at the same
moment. -
kist regen-previewsre-reads each item before working on it, and preview
versions go up in the database, so running it alongside the worker no
longer reuses a version number browsers have cached. -
Smart folders keep the preview-status and Trash filters they were saved
with. -
The type filter and the stats now agree with each item's type (an
.mp4
that libmagic can't name counts as video everywhere). -
A malformed
cursoris a 400, not a server error. -
MCP tools say why they failed (for example "Unknown folder: …" or "rating
must be from 0 to 5") instead of only "Error executing tool". -
tests/test_rebuild.pyno longer fails when the Postgres server isn't on
UTC. -
Text typed into notes or a name while an earlier save was still on its
way is kept; it used to be replaced by the saved copy when the save
returned. -
Rating or renaming items while the list is...
v1.4.0
Added
- Remove unused tags.
DELETE /api/tags/unused(and the MCP tool
prune_unused_tags) deletes every tag that no item uses and returns the
names. Tags on trashed items are kept, so restoring an item keeps its tags.
v1.3.0
Added
- Phone layout. On narrow screens (and phones held sideways) the grid
fills the screen. Folders, smart folders and tags slide in from a ☰
button and close when you pick one. Tapping an item opens a read-only
sheet (tags, folders, notes, details); tap a tag or folder there to
filter by it. The full-screen preview swipes left/right between items and
down to close. A 2 / 3 column switch replaces the size slider; inputs use
16 px text so iPhone Safari doesn't zoom, and the layout respects the
notch and home bar. Editing stays on desktop for now. The desktop layout
is unchanged.
v1.2.1
Changed
- Unfiled is now the inbox of items with no folder and no tags, so
tagging an item or putting it in a folder takes it out. The app still
opens there. Clicking Unfiled clears other filters (keeping the sort), and
leaving it (a folder, a tag, Trash) drops its "untagged" condition.
GET /api/items?folder=noneis unchanged (no folder, tags or not).
v1.2.0
Security
- Add from URL no longer reaches your private network. Private, loopback,
link-local, CGNAT, multicast and unique-local addresses are refused,
including through redirects and a page's preview image. Kist connects to
the exact address it checked, so a DNS answer can't change between check
and connect. Allow trusted LAN sources withKIST_URL_ALLOW_HOSTS(host
names or CIDR ranges) or all of them withKIST_URL_ALLOW_PRIVATE=true. - URL adds keep only images, videos and PDFs, have an overall time limit
(KIST_DOWNLOAD_TIMEOUT_SECONDS, default 120), and report network errors
without detail so they can't be used to map a network. - Uploads and URL adds no longer block the server: their work runs off the
event loop, so a slow download or a heavy file can't stall the UI, the API
or MCP. - Previews are generated in a child process with a time limit
(KIST_PREVIEW_TIMEOUT_SECONDS, default 300). PDF posters render at most
2048 px on the long side: a 553-byte PDF declaring a huge page used 4.2 GB
of memory before, about 90 MB now. ffmpeg reads only local files, in the
container format the extension names. - The containers run as an unprivileged user (uid 1000) with a read-only
root filesystem, no Linux capabilities, no privilege escalation, and memory
and process limits (KIST_MEM_LIMIT, default 4g). Upgrading: the
library folder must be owned by uid 1000 (or setKIST_UID/KIST_GIDto
its owner). - The
?token=query parameter is no longer accepted: query strings land in
access logs. Use theAuthorization: Bearerheader. - Every response carries a strict Content-Security-Policy, X-Frame-Options,
Referrer-Policy, Cross-Origin-Opener-Policy, Permissions-Policy and HSTS
(KIST_HSTS_SECONDS, default 180 days; browsers ignore it over plain HTTP). - Originals opened on their own are sandboxed documents, except PDFs, which
Chromium-based browsers won't render sandboxed.
v1.1.0
Added
- True-shape grid (the new default): tiles follow each image's own
proportions in justified rows, as in Eagle. Every row fills the width; a
row's height flexes up to 15% to fit, and the last row keeps the normal
height. Very tall or wide images are cropped to between 1:2 and 3:1 so they
stay readable. Items without a preview stay square. - A tile size slider in the top bar (120–400 px, default 200; double-click
resets) and a square / true-shape switch. Both are remembered in the
browser. - Up/Down arrow keys move to the nearest tile in the row above or below.
- Web layout tests (
npm test), run in CI.
v1.0.3
Changed
- A folder now shows everything in its subfolders too, at any depth: clicking
it lists those items and its count includes them (an item filed in two
subfolders counts once). The same applies toGET /api/items?folder=, smart
folders, and the MCPsearch_items/list_folderstools. - All items clears every filter (tags, smart-folder tag sets, untagged,
dates, search text, type and rating) and keeps the sort order. The app still
opens on Unfiled.
Fixed
- Filters set by a smart folder (
tags_any, untagged, date range) stayed
active after you left it, with nothing on screen showing them, so folders
could look empty. Every active filter now shows as a removable chip in the
search bar.
v1.0.2
Changed
- New app icon: a K whose upper arm is an arrow, inside a ring, light grey on
deep grey (a matched set with sklent's S). It replaces the ⟡ glyph in the top
bar and is the browser tab, bookmark and home-screen icon (favicon.svg,
favicon-32.png,favicon.ico,apple-touch-icon.png). Icon URLs carry a
version query so browsers pick up a changed icon.