How nxfu/binthere works
binthere is a zero-knowledge, one-time note-sharing service with both browser and CLI clients. In the main workflow, a writer encrypts locally, uploads ciphertext, and shares a URL whose fragment retains the key; a recipient fetches and decrypts, while the Worker atomically consumes burn-after-read notes. The graph also preserves CLI operations, rendering/sharing, storage, and rate limiting. Edges reflect shown calls or README-described behavior; unsampled subsystems are included only where documented, with evidence limits represented by omitted links.
Main entry points: index.js API Worker · app.js Web workflow · cli.js CLI dispatch · wizard.js Interactive wizard
Components 25
Browser client
- Web workflow
public/js/app.js - Browser crypto
public/js/crypto.js - Browser API
public/js/api.js - Safe rendering
public/js/markdown.js - Syntax highlighting
public/js/highlight.js - Sharing UI
public/js/ui.js
Command-line client
- CLI dispatch
cli/src/cli.js - Interactive wizard
cli/src/wizard.js - Create command
cli/src/commands/create.js - Read command
cli/src/commands/get.js - Delete command
cli/src/commands/delete.js - Self-update
cli/src/commands/update.js - HTTP client
cli/src/client.js - Terminal interface
cli/src/tui/screen.js
Worker service
- API Worker
src/index.js - Atomic burn
src/burn-do.js - Paste storage
src/lib/store.js - Create rate limit
src/lib/ratelimit.js - Public star count
src/lib/stars.js
Shared protocol
- IDs and tokens
src/lib/ids.js - Wire validation
public/js/format.js - Byte primitives
public/js/bytes.js
Other components
- Note writer
- Note recipient
- Cloudflare services
Connections 39
- Note writer → Web workflow: writes note
README.md - Web workflow → Browser crypto: encrypts locally
public/js/app.js - Web workflow → Browser API: uploads ciphertext
public/js/app.js - Web workflow → Browser API: fetches ciphertext
public/js/app.js - Web workflow → Browser crypto: decrypts locally
public/js/app.js - Web workflow → Safe rendering: renders Markdown
public/js/app.js - Web workflow → Sharing UI: offers sharing
public/js/app.js - Web workflow → Syntax highlighting: highlights code
public/js/app.js - Note recipient → Web workflow: opens share link
README.md - Web workflow → API Worker: requests note
README.md - CLI dispatch → Create command: dispatches create
cli/src/cli.js - CLI dispatch → Read command: dispatches read
cli/src/cli.js - CLI dispatch → Delete command: dispatches delete
cli/src/cli.js - CLI dispatch → Self-update: dispatches update
cli/src/cli.js - CLI dispatch → Interactive wizard: opens menu
cli/src/cli.js - Interactive wizard → Create command: creates note
cli/src/wizard.js - Interactive wizard → Read command: views note
cli/src/wizard.js - Interactive wizard → Delete command: deletes note
cli/src/wizard.js - Interactive wizard → Terminal interface: draws screens
cli/src/wizard.js - Create command → HTTP client: uploads ciphertext
cli/src/commands/create.js - Read command → HTTP client: fetches and consumes
cli/src/commands/get.js - Delete command → HTTP client: deletes paste
cli/src/commands/delete.js - Create command → API Worker: creates paste
- Read command → API Worker: reads paste
- Delete command → API Worker: requests deletion
- HTTP client → API Worker: calls API
- API Worker → Create rate limit: checks create rate
src/index.js - API Worker → IDs and tokens: validates IDs
src/index.js - API Worker → IDs and tokens: creates token hash
src/index.js - API Worker → Wire validation: validates payload
src/index.js - API Worker → Atomic burn: creates or consumes
src/index.js - API Worker → Paste storage: reads and writes
src/index.js - API Worker → Public star count: fetches star count
src/index.js - Atomic burn → IDs and tokens: parses IDs
src/burn-do.js - IDs and tokens → Byte primitives: uses byte helpers
src/lib/ids.js - Wire validation → Byte primitives: decodes bytes
public/js/format.js - Cloudflare services → API Worker: hosts API
README.md - Cloudflare services → Paste storage: provides KV
README.md - Cloudflare services → Atomic burn: runs Durable Object
README.md