A super simple, super fast way to transfer text and URLs between devices.
Author's Note: It's pronounced "receive", but you're free to call it whatever.
-
You can use the website directly: recv.live
-
You can install the website as a PWA, and share directly to it to instantly create a room
-
You can download and install the recv CLI app from the Releases page:
-
Windows:
- rename the
recv-windows-XX.exefile torecv.exeand add it to PATH - simply type
recvto create a room - type
recv <roomcode>to join a room, eg.recv 12345
- rename the
-
MacOS/Linux:
-
Extract
recvfrom therecv-PLATFORM-XX.tar.gzfile, and add it toPATHFor eg. on linux you can do:
tar -xvzf recv-linux-x86-64.tar.gz sudo install ./dist/recv /usr/local/bin
-
-
-
Server (Includes the website)
cd server go build ./cmd/server ./serverThis will run the web server on
localhost:8000You can specify a port using the
-pflag (defaults to 8000):./server -p 5000
-
CLI
cd server go build -o recv ./cmd/cli ./recv 12345
-
Server
Edit the default parameters at the top of the the
scripttag in index.html. These include the website's domain name, and whether or not to use HTTPS/WSS.During development, you'll have to edit
DOMAINto belocalhost:8000(or whichever port you choose to run it at), andSECUREto befalse.you will need air installed for hot reload
air -c .air.toml
You can specify a port using the
PORTenvironment variable:PORT=5000 air -c .air.toml
-
CLI
Edit the default parameters in
InitConfigin config.go. These include the website's domain name, and whether or not to use HTTPS/WSS.Note that in dev mode (when
APP_ENV=dev) you'll always use http and localhost.APP_ENV=dev go run ./cmd/cli
You can specify port and room code using environment variables:
PORT=5000 ROOM=12345 go run ./cmd/cli
