How abh14am/tempbin works
TempBin is a self-hosted, zero-knowledge pastebin: users compose notes in the browser, which encrypts content before sending it through the notes API to Redis; viewing retrieves ciphertext and decrypts it locally using the URL fragment key and, optionally, a password. The README also documents expiration, burn-after-read, search, recent notes, and an authenticated admin dashboard. The excerpts show the API, storage, and encryption calls; frontend rendering and some documented capabilities are included, but their unsampled implementation details are not inferred.
Main entry points: notes.py Notes endpoints · app.js Pastebin interface · main.py FastAPI app · db.py Note records
Components 12
Browser app
- Pastebin interface
static/app.js - Client encryption
static/app.js - Markdown rendering
static/app.js - Admin dashboard
static/admin.html
Notes API
- FastAPI app
main.py - Notes endpoints
routers/notes.py
Note storage
- Note records
db.py - Search and listings
db.py
Admin security
- Admin authentication
auth.py
Other components
- Note user
- Redis Stack
- Web Crypto API
Connections 14
- Note user → Pastebin interface: creates or views
static/app.js - Pastebin interface → Client encryption: encrypts and decrypts
static/app.js - Client encryption → Web Crypto API: uses
static/app.js - Pastebin interface → FastAPI app: requests notes
static/app.js - FastAPI app → Notes endpoints: routes requests
main.py - Notes endpoints → Note records: creates, reads, deletes
routers/notes.py - Notes endpoints → Search and listings: searches and lists
routers/notes.py - Note records → Redis Stack: reads and writes
db.py - Search and listings → Redis Stack: queries index
db.py - FastAPI app → Admin authentication: guards dashboard
main.py - Notes endpoints → Admin authentication: guards admin list
routers/notes.py - Pastebin interface → Markdown rendering: renders decrypted text
static/app.js - Note user → Admin dashboard: opens dashboard
README.md - Notes endpoints → Note records: applies expiration
routers/notes.py