aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 1090e7718ce504e983cdc38cc621c6e8062b644c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# kj-clipboard

no frills, just a public clipboard on the internet that you can use to share snippets around. that's it.

## features

- paste text, get a shareable link
- syntax highlighting (highlight.js) with language selection
- password-protect pastes with [mojicrypt](https://github.com/kj-sh604/mojicrypt) (emojified aes-256-gcm)
- copy to clipboard
- raw paste view (for snippets with no encryption)
- sqlite 🐐
- single-file python server, no frameworks, no bloat

## dependencies

- python 3.12+
- [mojicrypt](https://github.com/kj-sh604/mojicrypt) (optional — only needed for encrypted pastes)

## run

```sh
python3 server.py
```

listens on `0.0.0.0:5555` by default. configure with environment variables:

```sh
KJ_CLIPBOARD_PORT=8080 KJ_CLIPBOARD_BIND=127.0.0.1 python3 server.py
```

## docker

```sh
docker build -t kj-clipboard .
docker run -p 5555:5555 -v kj-clipboard-data:/app/data kj-clipboard
```

## screenshot

it looks exactly how you'd expect — a textarea and a button.

TODO: add screenshot

## license

MIT