#nostr #parser #content #zero-copy

shatter

A fast, zero-copy nostr content parser

3 releases

0.1.2 Jul 7, 2023
0.1.1 Jul 3, 2023
0.1.0 Jul 3, 2023

#56 in #nostr

Download history 35/week @ 2024-02-26 5/week @ 2024-03-04 39/week @ 2024-03-11 23/week @ 2024-03-18 26/week @ 2024-03-25 44/week @ 2024-04-01 161/week @ 2024-04-08 118/week @ 2024-04-15 82/week @ 2024-04-22 38/week @ 2024-04-29 82/week @ 2024-05-13 32/week @ 2024-05-20 46/week @ 2024-05-27 2/week @ 2024-06-03 7/week @ 2024-06-10

88 downloads per month

MIT license

21KB
524 lines

shatter

A fast, zero-copy nostr content parser.


lib.rs:

This crate is a fast, zero-copy nostr content parser. What is a nostr content parser? There can be many elements within the body of a note on nostr, and to render them properly they need to be parsed out. shatter will find all the locations of the elements of interest and mark them so that can pick them out and render them properly.

Dependencies

~3–4.5MB
~71K SLoC