An extremely minimal paste implementation.
  • Python 60.8%
  • Nix 35.6%
  • Dockerfile 3.6%
Find a file
2026-04-09 21:41:00 -05:00
poki fix: avoid token in homepage being parsed as HTML tag 2026-04-09 21:41:00 -05:00
.envrc feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
.gitignore feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
.python-version feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
Dockerfile feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
flake.lock feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
flake.nix feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
LICENSE chore: license under AGPL 2026-04-09 04:04:58 -05:00
main.py feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
pyproject.toml feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
README.md feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00
uv.lock feat: MVP v0.1.0 2026-04-09 04:02:24 -05:00

Poki

Poki is an extremely minimal pastebin-like server where users can upload files to the server from a command line.

To start the server, run it with

POKI_API_KEY="<your api key here>" uvicorn main:app

You can generate the API key with openssl rand -base64 32. Or it can be anything you want /shrug

Uploading Files

You can make an upload to the server using cURL like

cat file.txt | curl --data-binary @- https://poki.example.com/ -H "Authorization: Bearer <your api key here>"

It will return the URI of the file.

I recommend making an alias for that curl command.

Deleting Files

curl -X DELETE https://poki.example.com/lipu/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -H "Authorization: Bearer <your api key here>"