Skip to content

Repository files navigation

Alienbin

Alienbin demo: create a read-limited paste, share the link, open it with syntax highlighting

CI status Live demo

Expiring pastebin with client-side encryption. Share code, logs, and config through a link that deletes itself on time or read limits. No account, no tracking, runs on the Cloudflare Workers free tier.

Live demo · 한국어 · Security policy

Features

  • Per-paste expiry (30s to 7d) enforced in every query, independent of cleanup jobs
  • Read limits (1/3/5/10) consumed atomically; concurrent opens cannot exceed the count
  • Secret mode: AES-GCM encryption in the browser. The key lives in the URL fragment and never reaches the server
  • Developer editor: syntax highlighting, line numbers, TAB indentation, KO/EN UI, CLI client
  • Hardened by default: strict CSP, prepared statements only, rate limiting, Turnstile
  • Zero fixed cost: one Worker + D1, nothing to maintain

v1 shipped a collection-wide TTL bug, published as CVE-2026-31827. v2 was rebuilt around that lesson: docs/legacy-analysis.md

Usage

Web: paste text, pick expiry and read limit, share the link. Secret links carry the decryption key in the fragment.

CLI (same wire format as the web app):

cat error.log | alienbin --expire 1h
alienbin app.py --secret --once --expire 10m
# → https://<host>/p/<id>#k=<secret>

Development

npm install
cp .dev.vars.example .dev.vars   # Turnstile official test keys
npm run dev                      # local D1 migration + wrangler dev
npm test                         # 29 tests: unit, integration, security, concurrency
npm run deploy

Documentation

Doc Contents
Architecture system diagram, module layout, data flow
Security design threat model, mitigations, remaining risks
Operations free-tier limits, cost structure, runbook
Migration why legacy data was not migrated
ADRs five decision records, incl. deferring file uploads
Legacy analysis v1 post-mortem and the CVE root cause

About

재사용가능 코드 및 텍스트를 저장하고 공유할수 있는 웹서비스 alienbin 입니다. Anonymous Code and Text Sharing Web Services

Topics

Resources

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages