Why Nostr? What is Njump?
2024-12-22 06:16:11

ted555 on Nostr: ...

If 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:

image

Index View with without images and summaries

image

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

  1. Clone the repository
git clone https://github.com/utxo-one/notepress
cd notepress
  1. Install the dependencies
npm install
  1. 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",
];
  1. Bundle the code
npx vite build
  1. Deploy to your server

”`bash cp -r dist/* /var/www/notepress

Author Public Key
npub1r4llq2jcvq4g2tgha5amjz07zk7mrrcj89wllny9xwhhp5zzkklqk4jwja