piu.clj
is an open source application powering paste.in.ua - a simple pastebin service.
It's written in Clojure and compiles down to a single binary using GraalVM with Native Image plugin. See releases for the compiled binary.
- 800 lines of code (including HTML templates)
- simple file based store
- short random paste id
- editing your own paste
- click a line number and then press shift and click another one and you got a highlight
- a few shortcuts
- all of Highlight.js supported languages
- JSON pretty-printing
- rendering Markdown
- a simple API and, as a result: