Simple static site, one page only, content only from nostr, no formatting, you may want to change it a bit if you want it to look nice (you asked for the easiest, so just as a joke I wrote the truly simplest website possible that does that!)

```js

const noteId = "fdf3d23250bea5008dc5d361ab195eef81942fe938f7aa7ae128379fc4161755";

const relay = "wss://nos.lol/";

const ws = new WebSocket(relay);

ws.onmessage = (e) => {

let event = JSON.parse(e.data);

if(event[0] == 'EOSE') return;

document.body.innerText = event[2].content;

};

ws.onopen = () => ws.send(JSON.stringify(["REQ", "science", { ids: [noteId] }]));

```

(naturally this is not production ready, but I had to do it as a joke 😛)

Reply to this note

Please Login to reply.

Discussion

No replies yet.