jb55 on Nostr: made some crazy progress on the damus.io #opengraph server. It uses #nostrdb for ...
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.
Published at
2023-12-17 04:27:00Event JSON
{
"id": "392239ed3541d8d1aed46c60ab0638c62c23d73f042e9278a33867dc74b66263",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1702787220,
"kind": 1,
"tags": [
[
"t",
"opengraph"
],
[
"t",
"nostrdb"
],
[
"r",
"https://cdn.jb55.com/s/nevent1qqstj0wgdgplzypp5fjlg5vdr9mcex5me7elhcvh2trk0836y69q9cgsn6gzr.png"
]
],
"content": "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!\n\nStill 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.\n\nThese 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.\n\nhttps://cdn.jb55.com/s/nevent1qqstj0wgdgplzypp5fjlg5vdr9mcex5me7elhcvh2trk0836y69q9cgsn6gzr.png",
"sig": "50360faf8b0b0fe6fc3d5ff195c5517bca1b34b8bd28374cf63086a5c73393803c67a846b21fc9d68094e995a0c8d377237d6ab44dd92c293d0f3be0a572bc67"
}