utxo the webmaster 🧑💻 on Nostr: *If you hate frontend frameworks like react and svelte as much as I do, this project ...
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:

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
Published at
2024-03-23 16:54:46Event JSON
{
"id": "8f78a0d75d4560451ff16cd804db5809c09d809e3a156a8624bbfecf1f0db194",
"pubkey": "e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb",
"created_at": 1711212886,
"kind": 30023,
"tags": [
[
"client",
"31990:20986fb83e775d96d188ca5c9df10ce6d613e0eb7e5768a0f0b12b37cdac21b3:1700732875747"
],
[
"published_at",
"1711212886"
],
[
"d",
"QDXKDhO0iz4N9pe66pGkT"
],
[
"image",
"https://i.nostr.build/zdDmM.jpg"
],
[
"title",
"Notepress: a minimalist nostr blog reader"
],
[
"summary",
"If you hate frontend frameworks like react and svelte as much as I do, this project is for you."
],
[
"t",
"blogging"
],
[
"t",
"Open Source"
]
],
"content": "*If you hate frontend frameworks like react and svelte as much as I do, this project is for you.*\n\n## Introducing Notepress\n\n#### A vanilla javascript/html blog reader for your long form nostr notes.\n\nIt only does the very basics: it pulls notes from your relays and displays them in a simple, readable format. \n\nYou can view a live demo at https://utxo.one\n\n### Index View with Images and Summaries:\n\n\n\n### Index View with without images and summaries\n\n\n\n## Contributing\n\nPull requests are very strongy encouraged and appreciated :) The code is available on github under an MIT licence, do whatever you wish!\n\nhttps://github.com/utxo-one/notepress\n\n## Installation\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/utxo-one/notepress\ncd notepress\n```\n\n2. Install the dependencies\n\n```bash\nnpm install\n```\n\n3. Configure the blog\n\nEdit the `config.js` file to your liking.\n\n```bash\ncp config.example.js config.js\nnano config.js\n```\n\n```javascript\nexport const relays = [\n \"wss://relay.utxo.one\",\n \"wss://relay.bitcoinpark.com\",\n \"wss://relay.damus.io\",\n \"wss://nos.lol\",\n];\nexport const npub =\n \"npub1utx00neqgqln72j22kej3ux7803c2k986henvvha4thuwfkper4s7r50e8\";\nexport const hexkey =\n \"e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb\";\n\nexport const excludeNotes = [\n \"b2381de6b86e6e90971316e5866d4e7d9659ba44985f7b9bff0c449e25f9d566\",\n];\n```\n\n4. Bundle the code\n\n```bash\nnpx vite build\n```\n\n5. Deploy to your server\n\n```bash\ncp -r dist/* /var/www/notepress",
"sig": "7fe8c30e34bd04df1f3568ae03607ed7ffc5c5e0ab02626c7d8cfb8d444f5e7d12c06b022ad99ca668c3208e1ff922785197958eb59140e790a07eddae0add82"
}