如何使用
- 打开
/ 会新建一条随机笔记并跳转过去。
- 自定义路径即笔记 id,须匹配
[a-z0-9_-]{1,64},例如 /meeting-notes。
- 编辑器会在输入后自动保存(约 800ms 防抖)。
GET /:id?raw=1 返回纯文本。
- 也可用 curl 写入:
PUT 或 POST。
- 约 30 天 TTL,每次保存刷新(
NOTE_TTL_SECONDS)。
- 单次写入上限约 1MiB。
- 无密码、无目录、无列表。知道 URL 即可读写。
How to use
- Opening
/ creates a random new note and redirects to it.
- A custom path is the note id:
[a-z0-9_-]{1,64}, e.g. /meeting-notes.
- The editor autosaves as you type (about 800ms debounce).
GET /:id?raw=1 returns plain text.
- Write with curl via
PUT or POST.
- ~30 day TTL, refreshed on last save (
NOTE_TTL_SECONDS).
- ~1MiB write limit.
- No password, no list. Anyone with the URL can read and write.
curl -sI "$HOST/" | grep -i ^location
curl -s -o /dev/null -w "%{http_code}\n" -X PUT --data-binary 'hello' "$HOST/scratch"
curl -s "$HOST/scratch?raw=1"