Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MKRhere/bin
Minimal pastebin alternative with no hard frontend JavaScript dependency
https://github.com/MKRhere/bin
hastebin mithril mithril-ssr pastebin
Last synced: 3 months ago
JSON representation
Minimal pastebin alternative with no hard frontend JavaScript dependency
- Host: GitHub
- URL: https://github.com/MKRhere/bin
- Owner: MKRhere
- License: mit
- Created: 2018-09-22T21:31:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T15:47:15.000Z (over 4 years ago)
- Last Synced: 2024-06-21T13:31:28.375Z (5 months ago)
- Topics: hastebin, mithril, mithril-ssr, pastebin
- Language: JavaScript
- Homepage: https://bin.mkr.pw
- Size: 38.1 KB
- Stars: 22
- Watchers: 3
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - MKRhere/bin - Minimal pastebin alternative with no hard frontend JavaScript dependency (others)
README
# mkr/bin
A lightweight pastebin/hastebin alternative with no hard frontend JS dependency.
## Starting the app
You know the drill:
```shell
git clone https://github.com/MKRhere/bin
cd bin
npm install
```Start the app with the ENV variables:
+ `BIN_MONGO_CSTRING`: your Mongo connection string.
+ `BIN_PORT`: port on which `bin` should listen to.```shell
BIN_MONGO_CSTRING=mongodb://localhost:27017/bin-store \
BIN_PORT=4000 \
npm start
```## Customising `mkr/bin`
To customise your self-hosted version of `mkr/bin`, you can add these two files to `/custom` at the root directory:
```txt
└─ custom
├─ style.css
└─ addon.js
```## A boring note about JavaScript
I wrote `mkr/bin` because as much as I love JavaScript, I found the heavy clientside JavaScript dependency in hastebin undesirable. I tried to avoid using clientside JavaScript as much as possible, and `mkr/bin` will work completely fine on JavaScript disabled browsers. The only things that will not work are keybindings and small things that you can live without. `mkr/bin` also sends nothing back to my server except the data you want to store. I don't process or store anything else on the server. Settings such as toggling the sidebar is stored on the clientside, so if you clear or if you don't persist your localStorage, you'll see that the sidebar will reappear every time you reload. I will not also accept any PR that creates hard JS dependency for the client. Cheers!