# Tinypaste showcase

A compact paste with the parts that usually break in chat tools: diagrams, math, media, tables, links, tasks, and code.

```mermaid
flowchart LR
  A[Draft Markdown] --> B{Need to share?}
  B -->|Yes| C[Pipe to curl]
  C --> D[Get short public URL]
  B -->|No| E[Keep it local]
```

Inline math: $a^2 + b^2 = c^2$

Random Giphy embed:

![](https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExMHBxMnR6N2V3c3p4ZGdwMWtpa3c1em1hcWszN3J1ZGZrNDJiZXFpdyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/BOkrqs9unFMXGn24bd/giphy.gif)

| Target | Why it works | Link |
| --- | --- | --- |
| Repository | Source and self-hosting path | https://github.com/martinopiaggi/tinypaste |
| Personal site | Plain URL linkification | https://martino.im |
| Raw Markdown | Same paste as text | Add `.md` to any paste URL |

- [x] Markdown renders
- [x] Mermaid renders as SVG
- [x] LaTeX renders
- [ ] Send to a teammate

```js
const markdown = await Deno.readTextFile("note.md");
const response = await fetch("https://tnypst.xyz/api/pastes", {
  method: "POST",
  headers: { "content-type": "text/markdown" },
  body: markdown,
});

console.log(await response.text());
```