quoting naddr1qq…7gdvIf you hate frontend frameworks like react and svelte as much as I do, this project is for you.
Introducing Notepress
A vanilla javascript/html blog reader for your long form nostr notes.
It only does the very basics: it pulls notes from your relays and displays them in a simple, readable format.
You can view a live demo at https://utxo.one
Index View with Images and Summaries:
Index View with without images and summaries
Contributing
Pull requests are very strongy encouraged and appreciated :) The code is available on github under an MIT licence, do whatever you wish!
https://github.com/utxo-one/notepress
Installation
- Clone the repository
git clone https://github.com/utxo-one/notepress cd notepress
- Install the dependencies
npm install
- Configure the blog
Edit the
config.js
file to your liking.cp config.example.js config.js nano config.js
export const relays = [ "wss://relay.utxo.one", "wss://relay.bitcoinpark.com", "wss://relay.damus.io", "wss://nos.lol", ]; export const npub = "npub1utx00neqgqln72j22kej3ux7803c2k986henvvha4thuwfkper4s7r50e8"; export const hexkey = "e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb"; export const excludeNotes = [ "b2381de6b86e6e90971316e5866d4e7d9659ba44985f7b9bff0c449e25f9d566", ];
- Bundle the code
npx vite build
- Deploy to your server
”`bash cp -r dist/* /var/www/notepress