Nostr Market simply fetches and displays posts with the hashtag #nostrmarket. No custom post types, payment processing, escrow, etc.
The source code is public domain: https://codeberg.org/Anarkio/nostrmarket/ Feel free to adapt it for your own projects (e.g. different hashtag, better UI, more features).
I made something based on your work: Pricestr.
reply
Looks good. :) Happy to see you were able to make use of my (messy) JavaScript code.
reply
reply
Added a regex to scrape the price. If a listing includes the price in BTC or sats, the price will display in a box.
It would also be possible to add a product form + regex to scrape the attributes (price, location, category, etc.). But I want to keep it simple right now.
reply