DETERMINISTIC OPTIMISM 🌞

Oct 8, 2024

What's the easiest way to host a single page site on a domain where the content is a long form post pulled from relays?

See translation

39
8
1
0
0


Do you have thoughts?

Log in to leave a comment


Replies

ben

@ben

Oct 11, 2024

do not accept some slow ass, javascript bloated webapp as a solution to this problem.

See translation

0

0
0
0
0

atyh

@atyh

Oct 11, 2024

this, minus ‘as solution to this problem’

See translation

0

0
0
0
0

teatwo

@teatwo

Oct 8, 2024

problem is the ip routing, so NWS(nostr web service)

See translation

0

0
0
0
0

Danny Morabito

@DannyMorabito

Oct 8, 2024

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 😛)

See translation

0

0
0
0
0

minestr.app

@minestrApp

Oct 8, 2024

node app + caddy

See translation

0

0
0
0
0

Asara

@Asara

Oct 8, 2024

I have also been looking for something like this. Kind of the reverse of pluja/blogo which backs up a static site to nostr, and instead something that just reads kind 8s from a relay and displays them.

See translation

0

0
0
0
0

hzrd149

@hzrd149

Oct 8, 2024

Check out https://nsite.lol
@florian @Lez and I are working on static websites on nostr

See translation

0

0
0
0
0

Asara

@Asara

Oct 8, 2024

This is pretty cool but what I'm envisioning is a replacement to Hugo/ghost/etc where you out of band write longform content (as markdown), publish it to your relays, and have a static site just pull every kind 8 from a set of npubs and display them. The hope is to not have to run a server at all (other than your own relay if you want)

See translation

0

0
0
0
0

nbyte

@nByte

Oct 9, 2024

This is what I am most interested in. A simple CMS Site Displaying from a list of npubs. Something like nocomment: https://github.com/fiatjaf/nocomment

See translation

0

0
0
0
0

Asara

@Asara

Oct 9, 2024

This looks great. Along with a static site rendering long form content this is essentially a full fledged blogging engine.

See translation

0

0
0
0
0

01 more reply(ies)

florian

@florian

Oct 8, 2024

You can create a https://npub.pro/ site and set it to "long form posts" only. Then you have a hosted website that shows your longform content. It's just limited to a single npub.

See translation

0

0
0
0
0

brugeman

@brugeman

Oct 9, 2024

It's not limited to single npub, you can add many contributors

See translation

0

0
0
0
0

teatwo

@teatwo

Oct 8, 2024

you are dispatching to SOCKS5, aren't you. cool!

See translation

0

0
0
0
0

florian

@florian

Oct 8, 2024

Socks is just used for Tor and I2P support (to access NOSTR relays and blossom servers).

See translation

0

0
0
0
0

teatwo

@teatwo

Oct 8, 2024

yeah, i had the NWS in mind, and i said cool.

See translation

0

0
0
0
0

hzrd149

@hzrd149

Oct 8, 2024

No this is just a simple nginx reverse proxy and the files are stored on blossom servers
Hopefully going to have a NIP for it shortly

See translation

0

0
0
0
0

teatwo

@teatwo

Oct 8, 2024

yes, i.m sure it's reverse proxy. neverthless,
i think it evolved more one step than pluja/blogo :)

See translation

0

0
0
0
0

DETERMINISTIC OPTIMISM 🌞

@NVK

Oct 8, 2024

that's cool, wen?

See translation

0

0
0
0
0

01 more reply(ies)

utxo the webmaster 🧑‍💻

@utxo the webmaster 🧑‍💻

Oct 8, 2024

Zap a dev 10,000 sats to write a few lines of Javascript for you

See translation

0

0
0
0
0

Danny Morabito

@DannyMorabito

Oct 8, 2024

I accept the 10,000 sats for a few lines of Javascript deal, @DETERMINISTIC OPTIMISM 🌞

See translation

0

0
0
0
0

TURI$MO

@Turiz

Oct 8, 2024

do a cheap web hosting service

See translation

0

0
0
0
0

BTCrevolutionary

@BTCrevolutionary

Oct 8, 2024

Here is what my website looks like.

https://the-orange-revolution.npub.pro/post/19493e61/

See translation

0

0
0
0
0

Rogue Money Hodler

@rogue

Oct 8, 2024

So you could just add a custom CNAME and have your own domain

See translation

0

0
0
0
0

DETERMINISTIC OPTIMISM 🌞

@NVK

Oct 8, 2024

That's not a custom domain

See translation

0

0
0
0
0

Rogue Money Hodler

@rogue

Oct 8, 2024

Can’t you just CNAME to that?

See translation

0

0
0
0
0

DETERMINISTIC OPTIMISM 🌞

@NVK

Oct 8, 2024

only if npub.prob supports it

See translation

0

0
0
0
0

brugeman

@brugeman

Oct 9, 2024

We do now. There's Custom domain section in settings, released to public access as you are asking. You can also self host on GitHub https://blog.npub.pro/post/how-to-self-host-on-github/

See translation

0

0
0
0
0

BTCrevolutionary

@BTCrevolutionary

Oct 8, 2024

If you DM @brugeman I think he can set you up with one if you use npub.pro He wanted to test it out.

See translation

0

0
0
0
0

BTCrevolutionary

@BTCrevolutionary

Oct 8, 2024

Npub.pro for sure

See translation

0

0
0
0
0

AVB

@AVBpodcast

Oct 8, 2024

Post the content on highlighter dot com then point a domain name towards it with redirect Dot pizza.

See translation

0

0
0
0
0

Logen

@Logen

Oct 8, 2024

build it locally (hard part) then use caddy to reverse proxy it to a cloudflare tunnel

See translation

0

0
0
0
0

₿logging₿itcoin

@₿logging₿itcoin

Oct 8, 2024

I'm learning so much from this thread which is great because reverse TOR proxy = hellfire & brimstone.

See translation

0

0
0
0
0

sudocarlos

@sudocarlos

Oct 8, 2024

https://npub.pro is pretty easy. Havent tried to self host the domain but that seems simple too.

See translation

0

0
0
0
0

After Math

@aftermath

Oct 8, 2024

Npub pro seems to not have a dark theme

See translation

0

0
0
0
0

brugeman

@brugeman

Oct 9, 2024

You mean npub.pro itself? Themes have dark modes

See translation

0

0
0
0
0

sudocarlos

@sudocarlos

Oct 8, 2024

Yea, quite painful

See translation

0

0
0
0
0

After Math

@aftermath

Oct 8, 2024

Cloudflare Pages

See translation

0

0
0
0
0