Oddbean new post about | logout
 Can’t wait to try it on my Kobo e-reader. It has internet access! 
 Could you try out this note, on it, when you have the chance? Is it possible to read it well?

https://highlighter.com/a/naddr1qvzqqqr4tqpzpzh8f3sc53cn7vsjjptmylwagdz2z9u79s6xjm5cfkw0usxfzwyfqyt8wumn8ghj7cn9wehjumn0wd68yvfwvdhk6tcqzpkrzceev4urwvtyxpm8y7n2v46qv699k8 
 Won’t load 🙃 also such long URLs aren’t friendly on an eReader. I used an URL shortener or I would have spent ages typing that 🤣
https://nostrcheck.me/media/134743ca8ad0203b3657c20a6869e64f160ce48ae6388dc1f5ca67f346019ee7/c2a5c414bc518a5080a96376b167a7d8a59a9abfad6227072d646e3b6972bd6a.webp 
 Yeah, that's what I figured.

Okay @Michael J @liminal you see the challenge. 
 We'll need URL aliasing.  Nostr nevent IDs are not user-friendly in the least. 
 /nip-05/book-title ? 
 For now there's also https://w3.do (if it works) 
 Ah, okay. I might try that, in a minute. My e-reader is doing an update. 
 Needed that. No way to type that loooooong string in. 😂 
 if you hash the hash and then trim it to 8 bytes and render that as base32 it's pretty concise and almost impossible it will collide... youtube uses a similar scheme, it's 13 characters 
 just for clarity, the value of 64 bytes gives you a total of 18446744073709551615 
 Which e-reader are you using that has a browser?  How well does it support the web? 
 It’s a Kobo Aura H2O. I can browse many websites but that’s a broad question. 
 Maybe WebSockets aren’t supported. 🙃 
 this seems most likely 
 i guess then you have to make a webserver that does all that legwork and spits out HTML then 
 The library I posted was for websockets. 
 need to make a RESTful API for filter queries and a scheme for converting notes into HTML 
 How is @fiatjaf  doing it with njump? 
 does it have a link to the web app that powers it? 
 lol i mean github 
 yes, one minute  
 https://github.com/fiatjaf/njump 
 beautiful example of the most common type of Go application, a custom webserver

a nip-05 can be written in Go with like 10 lines of code

anyhow, https://github.com/fiatjaf/njump/blob/master/go.mod here you see it uses khatru, go-nostr and nostr-sdk code, that's the "legwork" part for taking notes and making them into HTML (using templates)

if you ever got inclined to learn #golang a simple one like that, connect up to a set of relays, then accept URLs with nevent and event IDs and really it's then just a matter of writing a truncated hash scheme like i was talking about, and each event can have a 13 character base32 identifier, and for these index/section/contents pages they can then fan out to pick up the referenced articles 
 So our reader could download/upload everything as notes, but display them in the browser as HTML, so that they can be viewed on simpler or weaker devices? 
 yeah, you would need to write a html renderer, basically

a webapp on a more powerful device can do that in place but a lower spec device would need it done for it, as someone mentioned, most likely because of websockets 
 That explains why every other web app is just a blank screen. 
 for the task you have in mind, i think that the MVP is making the web app that opens at your top level curated index page, and then uses those shortened URLs and each page is rendered and cached on the web server

it would be easy to even put such a thing on umbrel or start9 also 
 i think it would be pretty reasonable to expect that such a project would be able to find funding... a replacement for kindle, built on nostr... with a local mini pc deployment possibility for semi-offline use that also can put highlights and annotations back upstream to share with other bookstr and biblestr relays 
 Yeah, sounds like a bigger project, but something very fundamental that is great for eBooks and eMagazines.

Might be worth an @OpenSats grant or something.  
 i hope it happens... it's such a clear use case for nostr... books, documentation, would go nice alongside the git repo systems, they could become standard help text systems for web and other apps 
 Agree. This is Nostr Core Development, IMO, like Blossom and Cashu. 
 I think peak nostr-educational resource will happen when we combine modular articles with external/specialized functionality. ereader functionality is a must, but this goes soooo much further.

https://www.youtube.com/watch?v=5-4wd3dVtEk

https://distill.pub/2020/growing-ca/ 
 Ereader/book/blog functionality* 
 I have a hunch the reader doesn’t support WebSockets or secp256k library 🤔  
 okok 
 https://www.npmjs.com/package/epaperjs/v/1.3.5 
 Michael J I think we would need something like this.