Repository navigation
Dropping a folder of thousands, and stopping it
Dropping four gigabytes across a few thousand files made the tab stop answering, and the bytes were not the reason: it was what each file cost before one of them was sent. Every file opened an operation of its own in the panel, set the resumable uploader's options again — which rebuilds its translator — and wrote its state and its metadata in two more updates.
A folder is one operation now, with one bar. What a file needs is written where the uploader will keep it rather than set afterwards, and the address every file is fingerprinted against is written for a whole slice at once: at eight thousand files that one call is thirteen milliseconds against seventeen seconds. The drop is handed over in slices with the page given back between them, so a freeze became a wait — and above two thousand files you are told what you dropped, how many and how big, before any of it starts.
Stopping it was worse than slow. Pressing the cross marked the batch as called off, stopped the uploader, and the run that stopping ended was reported complete — which ran the cleanup that also held the record of what had been called off. The record was wiped a moment after the press: the hand-over loop asked whether its batch had been stopped, was told no, and handed over everything that was left. The batch re-opened, the uploads started again, and each new run took the next free folder name — ardoise, ardoise (1), ardoise (2), on and on. Measured in a browser at ten thousand files: the panel sat at "Uploading 10000 items" until the tab was closed. It now goes about a second and a half after the press, with one folder asked for and one created.
The folders were three separate faults, all fixed: a drop reserves one folder however many runs it takes to hand over, both roads to a reserved folder keep one record of it rather than one each, and a drop stopped before anything landed gives its empty folder back — so the next try finds the name free instead of becoming (1).
Telling something else what has arrived
A pipeline that ingests what people drop into a mounted volume had no good way to hear about it. Watching the directory fires on every write, fires for deletions and renames too, cannot tell a finished file from one still arriving, and needs access to the host — which the consumer, often a container or another machine, does not have.
GET /api/events/uploads?since=<cursor>&limit=100
Authorization: Bearer nxe_…
One row per completed file, with the path as you browse it, the size, and whether it arrived in one piece or in chunks. Oldest first, because this is read to catch up. Readable with an API token — and you are handed an event only where you could open the file it names, so the feed is exactly as wide as what you can already browse.
If you would rather watch the folder on disk, that works too and always did: files are written under a temporary name ending .uploading and renamed into place once every byte has arrived. Ignore *.uploading, react to the rename, and you only ever see complete files.
A machine that said it was touched when nobody had touched it
Whether a click selects or opens was decided by the first yes among three questions, two of which describe what a machine can do rather than what is being done with it. On a Windows laptop with no touch screen — the system declaring no digitizer at all — the page still saw sixteen touch points, so the listing opened folders on a single click and nothing could be selected without a button that only exists on a phone. There was no setting for it.
It now starts from whether the primary pointer is coarse, and you settle it by touching something: a finger says touch, a mouse or a pen says pointer, whichever came last.
Smaller things
- The sign-in the native application starts named no address for the provider to come back to, so a provider that requires one turned it away. Both sign-in routes name it from the same place now.
- Closing an editor armed a timer that nothing cancelled, which could navigate from a screen that was already gone.
- A chunked upload was recorded in the activity log under the server's own disk path, and under the name that was asked for rather than the one the file landed as.
- Node pins moved to 24.22.1, the current LTS patch. The three advisories that reach the image —
multer,body-parser,qs, all denial of service — are taken, and nothing in what the image installs is left reported.
Images
docker pull ghcr.io/cerede2000/explorer:4.4.0
docker pull cerede2000/explorer:4.4.0
latest and latest-lean follow main, so they already carry this. A
-lean variant of each tag is published alongside.