Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 1 min read

Magic Nearby Transfer for PasteDB β€” Send Code to Nearby Devices Without QR Codes or Links πŸš€

Ever wanted to send a code snippet from one device to another without generating a QR code, copying a link, or messaging yourself? I built Nearby Transfer into PasteDB. It lets you send a public paste directly to another

Ever wanted to send a code snippet from one device to another without generating a QR code, copying a link, or messaging yourself?
I built Nearby Transfer into PasteDB. It lets you send a public paste directly to another nearby device with just a few taps.
It feels a bit like magic.

Nearby Transfer in PasteDB

Normally, sharing a paste means:
Copying a URL
Sending it through WhatsApp/Discord
Scanning a QR code
Nearby Transfer skips all of that.
If the receiver is nearby, you simply select their device and send the paste instantly.

πŸ§‘β€πŸ’» Receiver

Open PasteDB.
Go to Transfer Page.
Become discoverable:
Mobile: Hold 3 fingers on the screen for 3 seconds, or press and hold the Be Discoverable button for 3 seconds.

Desktop/Laptop: Press and hold the Be Discoverable button for 3 seconds.
Your device becomes visible to nearby users for 10 seconds.

πŸ“€ Sender

Open any public paste to share.
Click Nearby Share.
Nearby discoverable devices appear.
Select the device.
The paste opens instantly on the receiver's device.

No QR code.
No copy-paste.
No messaging apps.

πŸ“ Location Permission

Nearby Transfer uses your approximate location to find nearby devices.
For the best experience, both the sender and receiver should allow location access.
Location is only used to improve nearby discovery.

🌐 Try it

PasteDB
https://pastedb.netlify.app⁠

Transfer Page
https://pastedb.netlify.app/transfer⁠

GitHub
https://github.com/sorathiya903/pastedb⁠

I'd love to hear your feedback or ideas for improving the feature!

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.