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 😎
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 😎