Back to projects
yay@patrikmichalicka.com
Rebuild in local testing

Atlas Drop

Publish static sites and files with controlled sharing, drafts, immutable releases and recoverable deletion.

Components
React management UI, Go server, drop CLI
Storage
SQLite and content-addressed blobs on local disk
Runtime
One server process, one writer, separate listeners
Sharing
Private sharing, invitations and public sharing
Status
Local testing, hardening before open source

Problem

I wanted one place to publish static sites and files without losing track of who can see them or which version is live.

Most quick ways to host a folder skip the parts I care about. A draft can leak, an edit overwrites the live copy, a delete cannot be undone, and a public link is on or off with no check that it actually works.

Approach

I kept the runtime small. One Go server process owns a SQLite database and a directory of content-addressed blobs. The compiled React UI is served by that same process, so production needs no separate Node server.

I split access across listeners instead of one port with many rules. Management, internal content and WebDAV, external content, guest access and MCP each have their own listener, and the management side stays private. The whole service can run behind a VPN.

AI agents reach the server over MCP for small requests, and they can use the drop CLI and WebDAV like any other client. Large uploads use a side channel, so agents do not push big files through MCP.

Clients reach separate listeners on one server. Agents use MCP for small requests, the CLI and WebDAV like any client, and a side channel for large files. A site is shared privately, by invitation or publicly.

What I built

I built a React management UI, a Go server and a drop CLI. You upload files or folders, edit a draft, preview it, publish a release and roll back. The CLI covers the same steps from scripts, with JSON output and a wait option for asynchronous jobs.

Sharing works with people, teams or groups, with viewer or editor access and optional expiry. Sites are organised with folders and tags, and deleted content goes to a trash you can restore from.

Drafts can also be edited over WebDAV with scoped tokens. There are signed webhooks, pulls from allowlisted remote sources and automation definitions. An AI provider and a remote MCP endpoint are optional. Backup and restore cover the database and the referenced blobs.

How it works

Uploads are checked for paths, sizes and hashes before a release is sealed. A sealed release is ready, and a failed seal quarantines it. Edits only change the draft, and publishing creates a new release.

Rollback picks an earlier ready release, so stored bytes never change. Deleted content waits in the trash. The collector removes blobs that nothing references after a deletion grace period.

Release references, drafts, trash, previews, backup pins and active writers all protect a blob from collection.

A draft is never live. Publishing seals an immutable release, rollback selects an earlier one, and the collector only removes what nothing references.

Key decisions

Releases are immutable and rollback selects an existing one. That way a rollback cannot alter stored bytes, and history stays trustworthy.

A site's desired audience is not treated as proof that public access works. Reconciliation checks the desired state, the route configuration and a signed readiness response over HTTPS before external access is ready, so saving a sharing choice cannot expose anything on its own.

Exposure reconciliation is a periodic sweep, not a job queue. The system runs one replica with one writer, so leases and an outbox would add a second record of the same intent that can drift. Work is recomputed from state each pass, so a crash or restart cannot lose a pending site.

Listeners are separate, and preview and WebDAV hosts must differ. Rendered content and credential-bearing WebDAV requests have different trust requirements.

Email sharing returns the same acknowledgement for known, unknown and already-pending addresses. The API therefore does not reveal whether an email already has an account.

WebDAV accepts scoped tokens, not browser management cookies. Each action stays constrained by site permissions, token scope and expiry.

In detail

Public sharing is the part I was most careful with. When a site is set to public, the server records the intent and a background sweep works toward the effective state.

Revocation does not wait for the sweep. The server serves external content only while the live intent flag and the effective state both say external. A newly shared site can take a short time to become ready, and sharing reports pending until the checks pass.

Failures carry typed codes. Transient ones, such as an unreachable route, retry with jittered exponential backoff. Configuration problems stay in an error state until an operator changes something.

Public access goes live only after a signed readiness response, and revocation closes serving immediately without waiting for the sweep.

Status

Atlas Drop is a rebuild of an earlier implementation, and it is in local testing now. It is not a production service.

I am hardening it before I open source it. The deployment templates are examples. Real checks of the identity provider, WebDAV clients, DNS and TLS, and backup recovery on a target host are still required before anyone runs it in production.

Got a messy workflow? Let’s talk