This is a web application for exchanging items between devices on the same local network.
Its noteworthy quality is that you can copy the received images without having to save them to gallery/downloads first.
I think it is a neat if you tend to send reference images to an iOS/Android tablet and send the finished artwork back.
- Install node.js.
Just about any semi-recent version should work. - Download this repository.
That's❮❯ Code
➜Download ZIP
, or "clone" it if you know Git - If you have downloaded a ZIP, extract it somewhere.
- Open a Command Prompt/terminal in the "bin" directory.
On Windows, this is done by shift-right-clicking an empty spot in Explorer. - Run the app like so:
See below for other command-line arguments.
node main.js --port 35000
- The first time you run the app, you might get an offer to allow it in firewall or have to do that yourself.
- Open the web application from the local address of computer that's running it.
Usually this will be something likehttp://192.168.0.101:35000/
.
On Windows, you can find out your local IP address by runningipconfig
in a Command Prompt.
On Linux, it isifconfig
instead (look forinet
under network interfaces). - You can send items by pasting them into the page.
On mobile, this is done by tapping on the input field and then opening the context menu by long-tapping it. - On desktop, you can also send items by drag-and-dropping them onto the page.
- You can copy or save-as the received items.
- Supported item types are:
- Images
- Text (shown as a text box that you can copy from)
- Links (shown as a link that you can copy/open)
- Other files (save only)
Specifies the port that the web server should be opened on. Required.
Automatically deletes items after the specified number of minutes.
This is handy if you don't like cleaning these out by hand.
Highly rudimentary password protection support.
This prevents getting/adding/removing items without authorization.
If you intend to run the app on a public network or would prefer to have communications encrypted in general, you can provide a self-signed certificate to run the server with TLS.
See here for basic instructions on generating a certificate.
As far as this app's functions are concerned:
Feature \ Browser | Safari¹ | Chrome | Firefox | DDG |
---|---|---|---|---|
Save image | ✔ | ✔ | ✔ | ✔ |
Copy image | ✔ | ✔ | ✔ | ❌ |
Paste image | ✔ | ✔ | ❌ | ✔ |
¹ And seemingly any other iOS browser since they all run on Safari's engine and inherit the context menus.
Evidently both major mobile operating systems have one or more browsers where you can both copy and paste images.
You'll need Haxe installed.
haxe server.hxml
haxe client.hxml
If all is well, bin/main.js
and bin/web/script.js
will be updated.
Could be good to have a little UI for server setup, but I wouldn't want to use Electron for an app that uses just a couple megabytes of memory most of the time.
Apparently people commonly send images to themselves on one or other chat program, and isn't that a little silly?
So you're sending a file to a computer hundreds of miles away just so that you can download it on a device right next to you.
A tool by YellowAfterlife!
Written in Haxe.
Icons from the Silk Icon Scalable.