Commits
2026-09-25
in: read the client address from client_ipAhmet Kaan Gümüş · 5991bfb
in: read the client address from client_ip topcoat 0.9 reports the client through client_ip once one proxy hop is trusted. The old helper read the first x-forwarded-for hop from any peer, which a client can spoof.
2026-09-11
in: live session-revocation logoutAhmet Kaan Gümüş · dcf889a
in: live session-revocation logout
- Topic::Revoked(user_id) on the store bus; /api/live emits it to the killed
user's own connections (may_hear own-id) then ends the stream
- set_user_disabled announces Admin+Profile+Revoked (own admin path included)
- identity_sync: directory revoked{sub} -> Profile announce (refetch-morph;
revoke-except survivors never false-kicked); disabled mirrored both ways
- im-client pin -> 5efbd60 (DirectoryEvent::Revoked, member.disabled)
- client: revoked frame or /api/me 401 on SSE error -> hard navigate to /
- new GET /api/me (204/401, 500 on store failure)2026-09-09
the drive learns to hold another app's bytes: a service account is a user row no person signs into (oidc_sub service:<key>, a shape a real subject can never wear) opened by a bearer key minted in a new admin Service-keys panel — show-once on a ten-minute ticket shelf, rotate and revoke as confirm disclosures, the refresh morph holding its banner still. Four machine routes answer that key and nothing else (a cookie means nothing to them, the key means nothing to the human ones): push under the caller's own external_id — idempotent, the partial unique index on (owner, external_id) making one row a fact rather than a habit, quota-checked in an IMMEDIATE transaction that charges a re-push only for what it adds over the row it replaces — fetch under the drive's immutable download headers, hard delete with no trash, and a status of the account's ceiling and hold. The family beat takes each key's limit from im's roster (limit_bytes, the house default when im states none) and stamps it on the account; the Everyone panel refuses to move a service account's quota by hand, because the limit is im's word now. Service files skip thumbnails and never enter the drive's browsing surfaces — the usage bar tells the whole story a person needs.Ahmet Kaan Gümüş · 215ffc6Browse files
the media path stops transcoding: the preview-derivative pipeline is gone — a video serves its stored bytes under its honest sniffed mime everywhere, and a browser that cannot decode them meets a house-styled error instead of a silent stall. The player script now names two failure shapes dead: the media element's own error (which does not bubble, and may predate the wiring), and the silent one a demuxer-that-parses-but-cannot-decode never leaves — not even metadata, five seconds of still-loading is that stall, the exact shape the derivative pipeline was built to fix (chromium demuxes mpeg2-in-mp4 and stalls forever without erroring; firefox did the same to aac-in-webm). The note rides both player layouts on the viewer and the public card, MediaWontPlay in English and Turkish, and downloads stay the original bytes byte for byte; previews/<id> is deleted from every purge path, swept nowhere at boot anymore, a one-time remove_dir_all at store-open clears what older builds left, and the mp4 box-walk family only the pipeline used died with it. The share modal's people picker wears the app's own language now: a filter field (which doubles as the no-script typed-address fallback) over the Everyone row and the candidates, the row is the control — the checkbox hides, a checked row tints like every other selected row and turns up its check glyph, and twenty people are one substring away; add_share skips the blank email pair a checkbox-only submit carries beside the checked values, and the script benches the filter for exactly the submit event so half-typed text never posts. Verified live in a real browser against a seeded server: both error states machine-captured, filter/selection/everyone/no-match driven by hand, a real two-person submit granting both with the remove rows to show for it, and the bench's disable-inside-the-submit-event proven from the page's own world. Rides along the Connection card's last-pass http assertions found uncommitted in the tree.Ahmet Kaan Gümüş · ad66f40Browse files
the Connection card reaches iz's information level: the health carries the healer's heartbeat beside the feed's — a last full pass stamp noted whenever a roster pass commits — and the card ages both moments honestly, Last event and Last pass, each reading never before its first occurrence so a feed gone quiet and a mirror stopped healing read as the two different silences they areAhmet Kaan Gümüş · 64868dcBrowse files
the settings page says whether the feed is alive: a read-only Connection card under the profile panel names the issuer and the client id straight from the config, shows the directory stream as a green Connected dot while /directory/live is open and amber Reconnecting from the moment it ends or fails, and ages the last roster event honestly off the sync task's atomics — the client secret is never read on any path that reaches the render, every signed-in reader may see it because nothing here is per-user data, and both wordings ride the Key enum in English and TurkishAhmet Kaan Gümüş · 72751ffBrowse files
a downloaded video previews in every browser, not just the lenient ones: an mkv that sniffs as webm but carries tracks webm never blessed (vp9 with aac audio — the shape every tiktok downloader makes) played in chromium and stalled silently in firefox's stricter demuxer, so the media route now builds a legal preview beside the file on first view — vp9/8/av1 keeps its bytes and the audio becomes opus, h264 remuxes to faststart mp4 — cached under previews/, served to the player with ranges, deleted with the file in every purge path, while downloads keep the original bytes untouched; a matroska is only called webm now when its tracks say so, and one length-read-after-adopt bug that served an empty first response died in the testsAhmet Kaan Gümüş · 3134bfaBrowse files
2026-09-08
a face changed in im is this site's news within a moment: the identity directory moves to im's im-client SDK (pinned f7b2081, oidc half gated off — two route sets in one binary collide), the user row carries photo_version beside the rest of the mirrored identity, /avatar serves any provisioned member and caches by the row's own stamp (?v equal to it is a year of immutable, anything else revalidates, the etag is the version), the topbar's img carries the stamp so a changed photo is a changed URL, a profile topic rides the live channel to every signed-in reader because a coworker's face is nobody's secret, and an identity-sync task keeps the whole of it true — a full roster pass at boot and on every stream end as the healer, the live feed as the fast path, backoff when im is downAhmet Kaan Gümüş · 8713c40Browse files
the name is lowercase everywhere: In becomes in — the wordmark, the monogram's label, the tab title, the welcome title in both languages, the package descriptions, the config file and its template, and every comment that names the app; the English preposition in the licence and the workflow is the only capital In leftAhmet Kaan Gümüş · 465a24bBrowse files
the app files itself under base_url alone: the bound address was the fallback, and a loopback bind is nothing anyone else can reach — filed, it would have overwritten the real address in every switcher; an empty base_url now skips the registration with the one boot-time line it already hadAhmet Kaan Gümüş · df8c50a
the app files itself under base_url alone: the bound address was the fallback, and a loopback bind is nothing anyone else can reach — filed, it would have overwritten the real address in every switcher; an empty base_url now skips the registration with the one boot-time line it already had Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE
the app files itself in im's family: before every family beat the client posts {in, Files, public origin} to im's POST /family/register with the client pair, so im lists this app at its real address without an admin typing it; an empty public address logs once at boot and skips only the registration, and a refusal or an im that does not register yet costs one log line while the mirror fetch still runsAhmet Kaan Gümüş · 922246b
the app files itself in im's family: before every family beat the client posts {in, Files, public origin} to im's POST /family/register with the client pair, so im lists this app at its real address without an admin typing it; an empty public address logs once at boot and skips only the registration, and a refusal or an im that does not register yet costs one log line while the mirror fetch still runs
Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE2026-09-07
the switcher takes the family from im instead of the file: a background beat asks GET /family with the client pair every five minutes and keeps the answer in the setting store, the topbar renders that mirror — absent, unparseable or empty keeps the chrome bare — and the [[services]] block leaves the config for good; the sign-out's return address is resolved per walk now, the saved base_url setting first, the config's own second, the bound address lastAhmet Kaan Gümüş · cae1d0eBrowse files
feat(web): the suite in the topbar, and a logout that ends the central sessionAhmet Kaan Gümüş · dbbff0d
feat(web): the suite in the topbar, and a logout that ends the central session [[services]] entries render as a switcher beside the page nav (the app you are in marked like the nav marks itself); no entries, no switcher. Clearing the local cookie now walks the browser on to im's /logout with this app's public address as back, so the central session ends too. in-client grows logout_back for that. Carries the dev values in config/in.toml (loopback issuer, in-dev-capture client, dev secret, resolved storage line) and the [storage.r2] doc block from the storage slice.
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): the address stays reachable, shared objects wear their markAhmet Kaan Gümüş · a6fa637
feat(share): the address stays reachable, shared objects wear their mark
The share modal's live-link row stopped masking: creation now seals the
minted token with the in.key (the same XChaCha20 envelope the session
cookies use) onto a share_token:{id} setting row — the database still
carries no plaintext token, so a db copy alone yields links nobody can
re-view — and the modal re-derives the full address from it: readonly
input, Copy button, the row's own revoke beside. The settings Share
links panel wears the same row markup, so every link is seeable and
copyable from there too. Links minted before the sealing (or after a
lost key) keep the masked value with a note to revoke and re-mint; a
revoke deletes the sealed row as part of revoking, and a failed delete
reports the revoke refused so a retry finishes it.
The drive marks what it shares: a Shared chip rides the name of every
file and folder with a live link or a person grant
(Store::shared_target_ids decides liveness the one way
resolve_share_link does), search hits included, trash untouched.feat(web): the public half joins the house — shell, player, domains, fast boots, phonesAhmet Kaan Gümüş · 16e8c67
feat(web): the public half joins the house — shell, player, domains, fast boots, phones The /s pages leave the bare-fragment era: every answer (card, folder, gate, dead link) now wears document_shell — the exact head root_layout pairs around pages, extracted once and delegated to — so a stranger's first sight of In is the app, not unstyled markup. The card's media kinds play through the house player itself: files.rs gains one media_player (markup + bar + script) that the signed-in viewer and the public card render verbatim, fed by a new ?media=1 stream — inline, range-capable, gated by password and liveness like every other answer, never counted as a download, granted to view-only links the way the signed-in viewer grants preview. Share links now say the deployment's name: base_url in config/in.toml (mirroring iz's key) feeds public_origin(), which only the share URLs and copy-once banners read — redirect_uri and the bind never move. Restarts stop walking the disk before answering: open() keeps only the structural work, and the boot sweeps (expired uploads, orphaned files, trash purge) run as a background task after bind, with the orphan sweep decided under BEGIN IMMEDIATE so a racing upload can never lose its bytes — the deletion set is unchanged, only its timing moved. And the whole thing now fits a phone: the media bar wraps with a full-width seek, the share modal's rows fold, public cards lose their desktop air, titles wrap — all inside the existing 620px breakpoint, desktop untouched.
2026-09-06
feat(upload): quota is the only size limit; interrupted uploads resumeAhmet Kaan Gümüş · 3cd7a8e
feat(upload): quota is the only size limit; interrupted uploads resume
The per-file upload ceiling is gone — field, config key, instance
setting, refusals and all: an account may push one file as large as
its free quota, which the store already enforces at session start and
again at finish. The admin settings panel loses the upload-limit row,
config/in.toml the max_upload_bytes key (an install still carrying it
just reports it among the ignored keys).
Chunked uploads now resume: GET /api/upload/{id} answers the session
with the indexes already staged (read off the chunk files, like the
received-byte count), and the drive script keeps the session id in
localStorage under the file's folder+name+size — a cut upload retried
with the same file skips what already landed. A chunk that meets a
network cut is retried in place with a cancel-interruptible backoff,
an expired session restarts the walk once against a fresh one, and a
refused finish keeps the key so the next pick resumes into another
finish. Cancel still aborts and drops the key.2026-09-05
feat: upload progress, admin limits, viewer pages, unified lists, sort/filterAhmet Kaan Gümüş · e806d74
feat: upload progress, admin limits, viewer pages, unified lists, sort/filter
- upload: real progress bar for all uploads (XHR for small, per-chunk
for big); page-wide drag-and-drop with drop overlay; persistent
dismissable status cards that survive live swaps; failure cards name
the reason; refused uploads no longer cry 'Upload complete'
- fix: /api/upload/* answered serde's {"Ok"/"Err"} while the UI read
.ok/.err — chunked uploads (>8MiB) could never complete from a browser
- settings: admin-defined instance upload limit (DB > in.toml > 1GiB),
enforced at /api/upload/start and multipart /files; BodyLimit demoted
to memory guard
- files: /view/{id} viewer page (audio/video/pdf/text/image) with
download gating; per-type icon chips instead of one glyph for all
- store: duplicate folder names allowed (create/rename/move/restore);
file.download_count with range-aware counting; instance setting kv
- drive: row actions merged into one Options menu; rename form buttons
align to the Options slot; rows show uploaded date, size, downloads
- trash/shared: single interleaved list each (public card too), aligned
buttons, details; sort/kind/search toolbars on drive, trash, shared
(iz-style GET forms, no-JS-safe)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)