A local browser playground for checking Web Share API support, composing share payloads, handling cancellation, and using a clipboard fallback.
- 📤 Check navigator.share and navigator.canShare support.
- ✍️ Edit title, text, and URL before sharing.
- ↩️ Handle user cancellation and unsupported browsers.
- 📋 Copy the payload when native sharing is unavailable.
No hosted demo is provided. Start the local server and open the address printed in your terminal. Sharing and clipboard behavior depend on browser support and permissions.
npm start- Node.js 18+ · HTML · CSS · JavaScript
- Node.js built-in HTTP server; no third-party dependencies
browser-share-api-lab/
├── server.js
├── package.json
├── public/index.html
├── public/styles.css
├── public/app.js
├── assets/mark.svg
├── .gitignore
├── LICENSE
└── README.md
- Core browser API interactions
- Local server and custom SVG
- Add browser compatibility notes from community testing
Issues and focused pull requests are welcome. Keep the app local-first and explain browser permission requirements clearly.
MIT License. See LICENSE.