What is Nostr?
jb55 / Will
npub1xts…kk5s
2023-12-29 06:07:40

jb55 on Nostr: spent the past few days getting a note content parser into nostrdb. When you get ...

spent the past few days getting a note content parser into nostrdb. When you get notes off the wire and dump them into the db, note contents will be parsed for you.

It chops the note up into its constituent parts:

“follow nostr:nevent… #coffeechain https://example.com”

<text ‘follow’> <mention nevent…> <hashtag ‘coffeechain’> <url ‘http://example.com’>;

And stores them. I built this for use in notecrumbs (the attached note preview could use some proper colored hashtags). Going to use it for the notecrumb http note preview, damus android/notedeck, and ios as well.

It’s nice to have this available in the database anytime you need to render something. Frontend devs can focus on ui and not worry about the complex stuff. Let nostrdb do all the hard work. #nostrdb already has stats and search, now note blocks! It’s a swiss army knife for native nostr client devs 😎

Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s