Skip to content
Marvellous-CodeworksPublic

About

A generic, self-hostable, PrivateBin-style plain-text drop-off — anyone can upload text, only allow-listed maintainer emails can ever read it back.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

logdrop

logdrop

A generic, self-hostable, PrivateBin-style plain-text drop-off: anyone can upload text or a .txt file with no account, and only an allow-listed set of maintainers can ever read it back. Uploads expire automatically after a configurable retention window.

Project page at marvellouscode.works/logdrop, full documentation in the knowledge base.

It was built so that The Marvellous Suspender users could share a diagnostic report without pasting it into a public GitHub issue, but nothing in it is TMS-specific.

Marvellous Codeworks runs an instance at logdrop.marvellouscode.works, kept available for TMS users. It isn't a shared public service for unrelated projects: for your own project, deploy your own.

Deploy with Vercel

How it works

  1. Someone uploads text from the home page, after a Cloudflare Turnstile check, and gets a link like https://logdrop.example/r/<slug>.
  2. Opening that link requires an admin session: maintainers sign in with a magic link sent to an address in ADMIN_EMAILS. A leaked link is useless to anyone else.
  3. Maintainers triage uploads from the admin dashboard: read, copy, download, mark as analyzed, delete.
  4. A daily cleanup job deletes every upload older than the retention window, 7 days by default.

Optionally, a maintainer's AI agent can read uploads through the Agent API, with a personal token.

Documentation

Page Content
Overview How it works, privacy model, limits and defaults
Uploading a log The upload form and what happens next
Admin sign-in Magic links and sessions
Admin dashboard Upload table, badges, bulk actions, AI agent access
Log view A single upload's details, activity and actions
Agent API Tokens, request, response and redacted fields
Self-hosting Deployment, environment variables, updating
FAQ Questions from uploaders and maintainers

Repository layout

Path Content
src/routes/ File-based routes: home page, /r/<slug>, /admin
src/routes/api/ Admin, agent and cron endpoints
src/lib/ Handlers, storage, authentication and their tests
src/components/ Shared UI
public/ Static files: favicon, email logo, social preview image
vercel.json Daily cleanup schedule
design.md The design system, read before changing a page

Stack

Layer Technology
Framework TanStack Start + TanStack Router, React 19
Runtime and build Bun, Vite
Storage Vercel Blob, no database
Email Resend, for magic links
Abuse mitigation Cloudflare Turnstile, and a Vercel Edge Config key as a runtime upload kill-switch
Scheduled jobs Vercel Cron

Local development

Requires Bun.

bun install                  # install dependencies
cp .env.example .env.local   # fill in the values
bun run dev                  # dev server with live reload
bun run build                # production build
bun test                     # tests

Add localhost to the Turnstile widget's domains to test uploads locally. Each variable is described in .env.example and in the environment variables reference.

Deployment

logdrop runs on Vercel. The button above forks the repository, creates the project and its Blob store, and asks for the environment variables. A few steps stay manual, and the self-hosting guide covers them, along with the step-by-step path and how to update.

Feedback

Found a mistake or have a suggestion? Open an issue.

License

  • Code: AGPL-3.0.
  • Names and logos (Marvellous Codeworks, logdrop): not covered by the license, all rights reserved.
  • Icons: the favicon (public/favicon.svg) and the email logo rendered from it (public/logo-email.png) use the "droplet" icon from Lucide (ISC license).

About

A generic, self-hostable, PrivateBin-style plain-text drop-off — anyone can upload text, only allow-listed maintainer emails can ever read it back.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages