Text hosting site like Pastebin, powered by a TwineMedia server https://txt.termer.net
  • Nim 95.5%
  • CSS 2.6%
  • Dockerfile 1.2%
  • Shell 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-29 15:50:35 -04:00
src fix headers not being terminated correctly 2022-05-12 11:18:21 -04:00
static initial commit 2022-04-11 22:19:13 -04:00
templates allow use of nonce values for CSP 2022-04-14 01:38:47 -04:00
.gitignore initial commit 2022-04-11 22:19:13 -04:00
build-and-publish.sh docker build 2026-07-29 15:50:35 -04:00
build.sh docker build 2026-07-29 15:50:35 -04:00
config.nims initial commit 2022-04-11 22:19:13 -04:00
Dockerfile docker build 2026-07-29 15:50:35 -04:00
LICENSE Initial commit 2022-04-06 03:12:55 +00:00
pages.example.json initial commit 2022-04-11 22:19:13 -04:00
README.md fix malformed markdown link 2022-05-14 23:34:03 -04:00
txt.nimble make build maybe work again 2026-07-29 15:30:31 -04:00

txt

Text hosting site like Pastebin, powered by a TwineMedia server

Compile

Run nimble build -d:release and it will be compiled as a binary named txt.

User-defined pages

To define pages, you need to copy pages.example.json to pages.json and modify the file. The keys in the file are the paths that the pages will be accessible at, and the file property is the filename of the template inside of the pages directory. You must create pages yourself. Templates are compiled using Nimja, and typically use .nwt as their extension.

Page templates are compiled into procs and are included in the binary, so you need to recompile the software after making changes to them.