made some crazy progress on the damus.io #opengraph server. It uses #nostrdb for storage, and renders png note previews in about 50ms on the cpu (could get this down to fractions of a millisecond with a gpu server, but this isn’t bad!
Still working on the design, but something is rendering at least! these image previews are rendered in realtime using rust + egui (same tech used to render notes in notedeck and damus android). Since we’re on the server with no gpu it uses skia for cpu rendering.
These images will appear in twitter and other apps when you paste a damus.io link, giving you a rich preview and a way to springboard into native apps like how njump does.
https://cdn.jb55.com/s/nevent1qqstj0wgdgplzypp5fjlg5vdr9mcex5me7elhcvh2trk0836y69q9cgsn6gzr.png
#damus links get rich preview for sharing
sweet 🤙🏻🔥
nostr:nevent1qqsrjg3ea565rkx34m2xcc9tqcuvvtpr6ulsgt5j0z3nse7uwjmxyccpp4mhxue69uhkummn9ekx7mqzyqewrqnkx4zsaweutf739s0cu7et29zrntqs5elw70vlm8zudr3y2qcyqqqqqqgc3egzl
Very cool, interested in see where this goes