Commits
2026-09-07
feat(storage): file bytes behind a blobs trait — the local tree or an r2 bucketAhmet Kaan Gümüş · a311758
feat(storage): file bytes behind a blobs trait — the local tree or an r2 bucket Every files/ and thumbs/ byte path in TursoStore routes through Blobs (put/adopt/get/span/delete/list). LocalBlobs keeps today's tree as the default, byte for byte; R2Blobs (object_store) holds the same layout in a Cloudflare R2 bucket, selected by an optional [storage.r2] table — absent means local, and the completion machinery never writes one. Upload staging stays local either way: the sniffer and the thumbnailer need a real file, and adopt() places the assembled bytes — rename locally, streamed 8 MiB multipart to the bucket. Ordered as always: blob before row, delete only after the row is gone, orphans swept at boot. r2_* tests in tests/store.rs run the flows against an in-process s3s server.
feat(share): public links may carry a passwordAhmet Kaan Gümüş · c36b77c
feat(share): public links may carry a password
The create-link form gains an optional password; a link minted with
one keeps only its Argon2id hash (params mirrored from im) on the row
— migration 0005 adds share_link.password_hash, reconcile backfills
NULL. A visitor opening such a link meets a gate instead of the card,
and every branch behind it (download, thumb, folder browse) stays
shut until POST /s/{token} answers the right password; then an
in_link_<id> cookie (Path=/s, HttpOnly, SameSite=Lax, Secure on https
issuers) carrying sha256(token:hash) keeps that browser inside. The
wrong password re-renders the gate with a note and sets nothing; a
revoked or spent link dead-ends even an unlocked browser, the same
answer a wrong token gets. Links minted without a password are
untouched.2026-09-05
feat(files): bytes stream off disk — plays start on the first frame, not the whole fileAhmet Kaan Gümüş · 4607f4a
feat(files): bytes stream off disk — plays start on the first frame, not the whole file Every byte serve buffered the whole file in memory first: a play waited for the full read, and a range probe re-read the file to slice it. The store now answers a clamped span as a 64 KiB-frame stream (file_stream), the row's declared size never trusted against the file on disk, and the byte routes serve it with an honest Content-Length — the signed-in route and the public link share bytes_response, so ranges answer 206 with a real span on both. Speed button: width fixed in ch at the ladder's longest label, so cycling stops moving the bar's other controls. Fullscreen: the vol/speed wiring had replaced the `var full` declaration, and the ReferenceError after the other listeners attached left the button dead — restored, verified clicking in and out. Measured on a 150 MiB file: full serve TTFB 28ms with RSS flat (previously a whole-file buffer), a 1 MiB tail range answers 206 in 30ms reading only its span, and the served bytes compare identical to disk.
2026-09-04
feat: drive storage with im OIDC login, sharing, quota, trash, thumbnailsAhmet Kaan Gümüş · 4118043
feat: drive storage with im OIDC login, sharing, quota, trash, thumbnails
Initial build of in, sibling of iz and im on the same stack (topcoat
0.6.2 server-rendered UI, turso metadata store, file bytes on the
filesystem).
- in-core: folder tree, files, share links + per-user grants
(transitive, most-permissive-wins), per-user quota, trash with
purge horizon, chunked upload sessions, image + ffmpeg-gated video
thumbnails, search, reconcile/migrations discipline from iz
- in-client: vendored im OIDC relying party (authorization code +
PKCE, introspection per request), strict next validation, cookie
kept on transient introspect failure
- in-web: drive browser, small + chunked upload with progress,
Range-capable downloads, public /s/{token} share pages with
previews, trash/search/settings surfaces, SSE live updates,
En/Tr i18n, iz house style
- deploy workflow adapted from iz (dist profile, asset bundle guard,
/healthz build-sha check)