tinypaste readme
Tinypaste
Tiny public Markdown pastebin.
Rendered Markdown, Mermaid as zoomable SVG, LaTeX math
No account. No token.
Works from any shell, script, or agent.
Self-hosts free on Deno Deploy in under a minute.
Most paste tools are cluttered editing environments that require an account or token and don’t render Markdown, Mermaid, and LaTeX all in one. This one is for quickly sharing: paste Markdown, get a short public URL, move on.
Example: https://tnypst.xyz/6XvGcED
API
POST Markdown. The default response is the short URL.
curl -X POST https://tnypst.xyz/api/pastes \<br>-H "Content-Type: text/plain" \<br>--data-binary '# hello'
curl -X POST https://tnypst.xyz/api/pastes \<br>-H "Content-Type: application/json" \<br>-H "Accept: application/json" \<br>-d '{"markdown":"# hello\n\n- one\n- two"}'
curl -X POST https://tnypst.xyz/api/pastes \<br>-H "Content-Type: text/markdown" \<br>--data-binary @README.md
Self-host
You can deploy it on Deno quickly:
Fork this repo and push it to GitHub.
Open https://console.deno.com.
Create an app from the GitHub repo.
Use this build config: no preset, dynamic runtime, entrypoint main.js, empty install and build command.
Provision a Deno KV database.
Assign that KV database to the app.
Raycast
Easy to integrate with existing tools. Here’s the script to use it with Raycast.
#!/usr/bin/env pwsh
$content = Get-Clipboard -Raw
if ([string]::IsNullOrEmpty($content)) {<br>Write-Output "Clipboard is empty"<br>exit 1
try {<br>$url = Invoke-RestMethod -Uri "https://tnypst.xyz/api/pastes" `<br>-Method Post `<br>-ContentType "text/plain" `<br>-Body $content<br>} catch {<br>Write-Output "Failed: $_"<br>exit 1
Set-Clipboard -Value $url<br>Write-Output "Copied: $url"
Legal
The instance at https://tnypst.xyz is live and free. Do not paste secrets, private data, illegal material, or content you do not have the right to publish. Pastes are public.