http server for Nostr ogp/event data fetching. It ask data from relays and return it to client in simple HTTP.
the main point is that NostrPreview doesn't store the full event json but only the mapping of event_id => preview metadata so anyone can run it on shitty machines.
todo:
- get event by id
- store data on rocksdb
- generate preview image on CPU
- reuse relay connections
- simple memory cache(LRU)
- get replaceable event by addr
- get profile event by pubkey
- choose smart relays to fetch data instead of hardcode