Notices
Public posts with image or .txt attachments, optional countdown timers, draft and hide controls.
A minimal, JavaScript-free self-hosted app. Post notices and files, and let visitors send anonymous messages with no account, e-mail or name. One Python file, built on Flask and SQLite. Runs on Linux, macOS and Windows.
Public posts with image or .txt attachments, optional countdown timers, draft and hide controls.
Visitors get a Ticket and Key. No account, e-mail or name. Messages are stored AES-256-GCM encrypted, and visitors can delete their own thread at any time.
Server-rendered pages with a strict Content-Security-Policy. Threads refresh through a meta-refresh iframe.
Operator-uploaded files of any type, served as attachments. Set an expiry and the file stops being served at once, then is scrubbed and securely deleted by the purge task.
CSRF tokens on every POST, Argon2 admin password, short-lived admin sessions, request size limits, rate limits, magic-byte checks on attachments.
Storage quotas, retention-based purge, expired-download purge, orphan file sweep, and a check command that verifies SHA-256 hashes.
Works on Linux, macOS and Windows. Use Gunicorn on Linux and macOS, and waitress on Windows.
Pick the tool that matches your threat model. Tiny Desk is a lightweight contact desk, not a whistleblowing platform.
Built mainly as a one-way tip line with PGP-encrypted messages. Choose it when the server operator must not read messages. Tiny Desk adds two-way threads, notices and downloads, but the operator can read messages.
Full whistleblowing platforms for newsrooms and organizations. Choose them for high-risk sources. Tiny Desk is far simpler to run and offers less protection.
A desktop app that starts a temporary onion service for sharing files, receiving files, hosting a page or chatting. Tiny Desk is a persistent server with threads, notices and downloads.
This section is generated automatically from the project's README.
Minimal, JavaScript-free notice board and anonymous message desk for Tor onion services.
Flask · SQLite · AES-256-GCM · one file
Website · Setup · Windows · Security
.txt attachments (up to 10 per upload, 50 per notice), optional countdown timers (set in UTC), draft and hide controls/burnpip install -r requirements.txt
On Windows, also install waitress (see Windows).
Pick your own directories and a hard-to-guess admin prefix (Linux and macOS shown; Windows users see Windows):
export ONION_SECRETS=/etc/tinydesk
export ONION_DATA=/var/lib/tinydesk
export ADMIN_PREFIX=$(python3 -c "import secrets;print(secrets.token_hex(8))")
python app.py init
python app.py setpass
python app.py status
init creates the private directories, the session and message keys, and the database. setpass asks for the admin password (14+ characters with upper case, lower case and a digit) and revokes all admin sessions.
ADMIN_PREFIX is required and has no default. It must be at least 10 characters, using only letters, digits, _ and - (segments separated by / are allowed), and must not start with a public path name such as downloads or contact. The admin login is at /<ADMIN_PREFIX>/signin.
On Linux and macOS the app checks ownership and permissions at startup. The secrets and data directories must belong to the running user and not be accessible to others, otherwise it refuses to start. On Windows these POSIX checks are skipped (see Windows).
Keep the same environment variables set for every command and for the service.
Sign in at /<ADMIN_PREFIX>/signin. Sessions end after 15 minutes of inactivity or 8 hours in total.
| Page | Purpose |
|---|---|
| Overview | Storage use, thread counts, expired files awaiting purge, pause or resume new threads |
| Posts | Create, edit, hide, delete notices. Manage attachments and timers |
| Files | Upload or delete downloads, set or change an expiry time (UTC) |
| Threads | Read and answer messages, delete threads |
Run exactly one Gunicorn process with threads, so one slow or stalled client cannot block everyone else while the in-memory limits stay in one place (Linux and macOS; on Windows use waitress, see Windows):
export ONION_WORKERS=1
gunicorn -w 1 --worker-class gthread --threads 16 --timeout 60 \
--graceful-timeout 15 --keep-alive 5 --limit-request-line 2048 \
--limit-request-fields 50 -b 127.0.0.1:8000 app:app
Do not enable Gunicorn access logging. Set ONION_WORKERS to the process count so the app can warn you if it is wrong.
Tor-side DoS defenses, in the HiddenServiceDir block of torrc (proof-of-work needs Tor 0.4.8+ built with it; tune the numbers):
HiddenServicePoWDefensesEnabled 1
HiddenServiceEnableIntroDoSDefense 1
HiddenServiceEnableIntroDoSRatePerSec 25
HiddenServiceEnableIntroDoSBurstPerSec 200
Schedule the maintenance commands with a systemd timer or cron (Task Scheduler on Windows): purge hourly, so expired downloads are deleted promptly, and check regularly.
Tiny Desk runs on Windows with a few differences:
pip install waitress
waitress-serve --listen=127.0.0.1:8000 --threads=16 app:app
``` $env:ONION_SECRETS = "$env:LOCALAPPDATA\tinydesk\secrets" $env:ONION_DATA = "$env:LOCALAPPDATA\tinydesk\data" $env:ADMIN_PREFIX = python -c "import secrets;print(secrets.token_hex(8))"
python app.py init python app.py setpass python app.py status ```
If you set no directories, they default to %LOCALAPPDATA%\onionsite\secrets and %LOCALAPPDATA%\onionsite\data. Use the same environment variables for every command and for the service.
python app.py purge (hourly) and python app.py check.torrc file of your Tor installation (for example the Tor Expert Bundle) with a Windows path for HiddenServiceDir, for example C:\tor\tinydesk\.purge removes the leftover file.Development, listening on 127.0.0.1:8000:
export COOKIE_SECURE=0
python app.py
On Windows PowerShell use $env:COOKIE_SECURE = "0" instead of export.
For production, use the Gunicorn command above (waitress on Windows).
Add this to torrc, then restart Tor and read your address from the hostname file in the service directory:
HiddenServiceDir /var/lib/tor/tinydesk/
HiddenServiceVersion 3
HiddenServicePort 80 127.0.0.1:8000
COOKIE_SECURE defaults to 1. When serving plain HTTP, such as an onion address without HTTPS or local testing, set COOKIE_SECURE=0, otherwise browsers may drop the session cookie and you cannot stay signed in.
| Variable | Default | Meaning |
|---|---|---|
ONION_SECRETS |
/etc/onionsite (Windows: %LOCALAPPDATA%\onionsite\secrets) |
Directory for session.key, msg.key, admin.hash |
ONION_DATA |
/var/lib/onionsite (Windows: %LOCALAPPDATA%\onionsite\data) |
Database and uploaded files |
ADMIN_PREFIX |
none (required) | URL prefix of the admin area, 10+ characters. The app will not start without it |
OWNER_NOTE |
built-in text | Text on the home page |
MAX_FILE_MB |
25 |
Largest upload. Must not exceed QUOTA_MB |
ATTACH_MB |
8 |
Largest notice attachment |
QUOTA_MB |
500 |
Total space for files and attachments |
CONV_QUOTA_MB |
200 |
Total space for messages |
RETENTION_DAYS |
30 |
Delete threads idle this long on purge. 0 keeps everything |
COOKIE_SECURE |
1 |
Set 0 only when serving plain HTTP |
ONION_WORKERS |
1 |
Number of server processes, used to warn about per-process rate limits |
LOG_LEVEL |
INFO |
Python logging level |
python app.py init create keys, directories and database
python app.py setpass set or change the admin password
python app.py check report orphaned, stale or missing files and verify SHA-256 hashes
python app.py purge delete old threads, expired sessions, expired downloads and orphans
python app.py status print database path, file path and quota
check exits with an error if a file is missing or a hash does not match, so it works well in cron, Task Scheduler or monitoring. purge also scrubs the database write-ahead log after deleting threads.
purge handles expired downloads in steps. It scrubs the name, description, size and hash from the database, then securely shreds the stored file. It keeps only a small record (the id and expiry time) for 30 days, so visitors with an old link see an "expired" page instead of "not found".
| Path | Purpose |
|---|---|
/ |
Notices |
/downloads |
File list (expired files are hidden) |
/downloads/<id> |
A single file's page, or the "expired" page |
/contact |
How messaging works |
/contact/start |
Write a first message |
/resume |
Return with a Ticket and Key |
/thread |
Your open thread |
/burn |
Permanently delete a thread |
ONION_SECRETS. Losing msg.key makes stored messages unreadable.Tiny Desk is a minimal, JavaScript-free notice board and anonymous message desk for Tor onion services, built with Flask and SQLite in a single Python file.
No. Pages are server-rendered. Message threads refresh through a meta-refresh iframe.
No. Messages are encrypted at rest with AES-256-GCM, but the operator can read them. Tor protects the transport.
No. Visitors receive a Ticket and Key after sending a message. No account, e-mail or name is required.
Yes, for local or internal use. Set COOKIE_SECURE=0 when serving plain HTTP and keep the default 1 behind HTTPS.
Those projects target whistleblowing and tip lines, where messages should stay unreadable to the server. Tiny Desk is a lighter self-hosted desk with public notices, downloads and two-way anonymous threads using a Ticket and Key. Messages are encrypted at rest, but the operator can read them, so it is not a substitute for a whistleblowing platform.
The latest release is v0.1.6, published 2026-11-17.
If Tiny Desk helps you, star the repository, open an issue with your use case, or send a pull request. Source code: https://github.com/Sheikhlipu123/tinydesk.