(In the demo above, each color profile has its own set of curls, and the picker switches between curls you own.)
Curls is a minimalist text status host.
Users claim a curl (an ASCII lowercase alphanumeric identifier, up to 20 characters) and receive a one-time secret key to update its text status (up to 2,000 characters).
For example, https://curls.merkoba.com/funone returns the current plain-text status of funone.
There is no history, feed algorithm, comments, or tracking — only the current status text. HTML pages are provided for claiming, updating, and monitoring curls, and the API is designed to be called directly from your own scripts or apps.
Share your curl name with others so they can add it to a dashboard or polling script (e.g., checking for changes every 5 minutes) to see live statuses from many people at a glance.
It also works well for lightweight scripts or software that need a pointer to a small piece of dynamic plain text.
There are no user accounts. You claim a curl once and receive its secret key once.
- Keys are stored hashed on the server (never in plaintext).
- There is no way to recover a lost key — save it somewhere secure.
Public API endpoints (GET /<curl>, POST /curls, and POST /change) allow cross-origin (Access-Control-Allow-Origin: *) requests so external apps can read and update statuses directly.
curl https://curls.merkoba.com/<curl>200 OK— returns the status text (orNot updated yetif never set).404 Not Found— returnsNot claimed yet.400 Bad Request— invalid or reserved curl name.
curl -X POST -d "curl=mycurl&key=mykey&status=mystatus" https://curls.merkoba.com/change200 OK— returnsok.400 Bad Request— missing fields, invalid curl, or status exceeds 2,000 characters.401 Unauthorized—Error: Invalid key.413 Payload Too Large— request body exceeds 16 KiB.429 Too Many Requests— per-IP or per-curl rate limit exceeded.
curl -X POST -d "curl=somecurl&curl=othercurl" https://curls.merkoba.com/curlsReturns a JSON array of objects (created, curl, status, updated, changes) for up to 100 curls per request.
Visit /claim in a browser, solve the CAPTCHA, and save the returned key.
A built-in web dashboard is available at /dashboard (live demo: https://curls.merkoba.com/dashboard).
- Template: server/templates/dashboard.html
- Frontend code: server/static/dashboard
Each color profile maintains its own independent list of followed curls (up to 100 per color).
When you successfully update a curl, it is added to the picker (C button) so you can quickly switch between curls you own.
- Curl names are saved in
localStorageso your owned list persists across sessions. - Secret keys are kept in
sessionStorageonly (cleared when the browser tab closes) and are never persisted tolocalStorage.
Starting in v28, Curls stores curl keys as salted password hashes (scrypt/pbkdf2) rather than plaintext.
If you are upgrading an existing deployment from v27 or earlier, existing curls in server/curls.db still have plaintext keys and will return 401 Error: Invalid key on /change until migrated.
- Back up your existing database:
cp server/curls.db server/curls.db.bak
- Preview how many plaintext keys will be hashed:
(With Nix:
cd server venv/bin/python migrate_keys.py --dry-runnix develop --command python server/migrate_keys.py --dry-run) - Run the migration in place (safe and idempotent — already-hashed keys are skipped):
venv/bin/python migrate_keys.py
- Verify your curls update normally, then remove the plaintext backup:
rm server/curls.db.bak
- CAPTCHA secret is mandatory: The server no longer falls back to
"changeMe". Provide a random secret of at least 16 characters viaserver/captcha_key.txtorCURLS_CAPTCHA_KEY. - Reverse proxy IP handling:
CURLS_PROXY_COUNTdefaults to1(for a single reverse proxy like Apache). SetCURLS_PROXY_COUNT=0when running directly without a proxy, or increase it to match the exact number of trusted proxies in front of Gunicorn. - Dashboard picker keys: Any legacy plaintext keys previously saved in browser
localStorage["picker"]are automatically migrated tosessionStoragefor the current tab and scrubbed fromlocalStorageon first visit.
# Local development server (auto-generates dev captcha_key.txt and curls.db if missing)
nix run .#dev
# Initialize the SQLite database manually
nix run .#init-db
# Production Gunicorn server (requires CURLS_CAPTCHA_KEY or server/captcha_key.txt)
nix run .
# Enter development shell (Python env, Redis, SQLite, Ruff, Mypy, Pyright, Node.js)
nix developEverything runs from inside server/:
cd server
python3 -m venv venv
venv/bin/pip install -r requirements.txt
./init_db.shCreate a CAPTCHA secret (at least 16 random characters):
python3 -c "import secrets; print(secrets.token_hex(32))" > server/captcha_key.txt
chmod 600 server/captcha_key.txtcd server
CURLS_PROXY_COUNT=0 venv/bin/python -m flask --app app run --debug --port 5000To bypass the CAPTCHA while developing locally, create server/captcha_cheat.txt with your chosen cheat string. This bypass is only active when Flask runs with --debug.
- Pre-bundle dashboard JS assets:
cd server && venv/bin/python bundle.py
- Run with
gunicornunder a non-rootsystemdservice:gunicorn --workers 4 --bind 127.0.0.1:5000 app:app
- Place Apache (or Nginx) in front of Gunicorn as a reverse proxy, ensuring it sets/overwrites
X-Forwarded-Forcleanly so clients cannot spoof their IP. - Run a local
redisinstance for shared multi-worker rate limiting and CAPTCHA replay protection.
| Variable | Default | Description |
|---|---|---|
CURLS_CAPTCHA_KEY |
(from server/captcha_key.txt) |
Secret key (min 16 chars) used to sign CAPTCHA JWTs. Required. |
CURLS_REDIS_URI |
redis://localhost:6379 |
Redis connection URI for rate limiting and cross-worker CAPTCHA replay tracking (memory:// for local testing). |
CURLS_PROXY_COUNT |
1 |
Number of trusted reverse proxies in front of Gunicorn (0 when running without a proxy). |
CURLS_SERVER_DIR |
./server |
Server directory used by the Nix flake runner scripts. |
HOST / PORT / WORKERS |
127.0.0.1 / 5000 / 4 |
Bind address, port, and Gunicorn worker count for the Nix runner apps. |
CURLS_ALLOW_SEED |
(unset) | Must be 1 (alongside --force) to allow server/fill.py to wipe and seed curls.db with dev data. |
Dashboard JS files under server/static/dashboard/js/{libs,main} are concatenated into bundle.libs.js and bundle.main.js.
- On server startup,
bundle.ensure_bundles()checks file timestamps and rebuilds atomically (with file locking) only when bundles are missing or stale. - To force a rebuild manually (e.g., during deployment):
python3 server/bundle.py
- All endpoints use
Flask-Limiterwith amoving-windowstrategy backed byredis(with automatic in-memory fallback if Redis becomes unreachable). POST /changeenforces both per-IP (5/min) and per-curl (5/min) rate limits.- Solved CAPTCHA tokens are atomically claimed in Redis (
SET NX EX) so they cannot be replayed across Gunicorn workers. - Request bodies are capped at 16 KiB (
MAX_CONTENT_LENGTH).
The SQLite schema (WAL journal mode) is intentionally minimal — see server/schema.sql.
