nostr-post — PWA Web Share Target demo

This demo shows a minimal PWA that registers a Web Share Target. To test the Share Target you must:

  1. Serve this folder over http://localhost (or HTTPS).
  2. Open the page, install the site as a PWA (Chrome on Android recommended).
  3. Use another app to "share" text or files to this PWA — the service worker will capture the POST and forward the data to the client.

Last shared content

No shared content yet.

Quick manual test

You can simulate a POST to /examples/pwa-share/share-target with curl to see the redirect:

curl -v -X POST -F "title=Hello" -F "text=From curl" http://localhost:8080/examples/pwa-share/share-target