fichrs.

A snow-trail theme for Gokapi.

Self-hosted file sharing dressed in snow and glacier light: a download-safe admin overlay and a view-only watermarked viewer. A theme that rides Gokapi's customDir seam, never a fork.

The view-only viewer

Mint a link that opens the document on a dark stage, behind a password, with a diagonal watermark baked into the pixels: recipient, IP, and access time. The mock below is rendered entirely in your browser.

View only Viewing is limited and recorded. Saving is disabled.

The watermark overlaps the content on purpose, row-offset so there is no clean removal corridor. It is provenance and a deterrent, not DRM: pixels on screen are bytes in the browser. Real protection stays password plus expiry.

The download-safe admin

The same custom.css and admin.js shipped in this repo, running live on a mock file list. Hover a row, click a delete button: these are the real behaviours, not a video.

Gokapi · Admin
FilenameDownloads remainingType

Try it: hover the snow photo (unlimited) to preview it; hover the limited image to see it refuse to spend a download; click a delete button to meet the confirm guard.

Download-safe preview

Hotlinks count against a file's download limit in Gokapi. The preview fetches only unlimited files; limited ones show a cost note and never spend a download.

Accidental-delete guard

Gokapi deletes on a single unconfirmed click. A capture-phase confirm names the file first, and Cancel suppresses the native handler.

Theme, not fork

Pure CSS and JS dropped into customDir. It rides Gokapi's supported seam and survives upgrades. No AGPL source-offer liability, no re-merge tax.

One palette, two stages

Light chrome for managing, a dark stage for viewing. Built in OKLCH; every fill and text pair is contrast-verified.