Skip to content

pseudozach/redphone

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
August 10, 2021 11:36
August 12, 2021 14:43
August 9, 2021 11:21
August 12, 2021 15:09
August 7, 2021 01:04
August 7, 2021 01:04
August 7, 2021 01:04

Red ☎️

Telephone service for your lightning node powered by impervious.ai

Setup

  • prerequisites: Bitcoin + Lightning Node
  • download, configure and start impervious, follow instructions here
  • download and install cloudflared for your environment
  • clone the repo
    git clone https://github.com/pseudozach/redphone && cd redphone && npm i
  • start the app
    npm run start -- 8888 8882 (where 8888 is redphone webserver port, 8882 is impervious http/websocket port)
  • expose the app to public internet (optional if you want to access redphone from internet)
    cloudflared tunnel --url http://localhost:8888 (where 8888 is redphone webserver port)

2021-08-05T06:09:08Z INF +------------------------------------------------------------+
2021-08-05T06:09:08Z INF | Your free tunnel has started! Visit it: |
2021-08-05T06:09:08Z INF | https://fits-protest-featuring-mpegs.trycloudflare.com |
2021-08-05T06:09:08Z INF +------------------------------------------------------------+

  • go to the provided link to see your LN Phone

Use

  • Dial any Lightning node that has redphone by entering their Node ID into the box.
  • Receive notifications when another node is calling you, answer the call.
  • See call history
  • (Optional) Charge for calls (sats/minute)

How does it work?

  • This app allows you to set up a WebRTC connection between two peers on the internet.
  • Normally peers would visit the same website and talk to the server over websockets to setup their p2p webrtc connection, or use STUN/TURN servers.
  • Red Phone allows you to setup webrtc connection with anyone by doing the signaling over impervious which runs on top of Lightning Network.
  • And since you run your own bitcoin+lightning+impervious+redphone on your own node/server, no other centralized entity knows about your p2p webrtc connection with your peer.
  • If peer has price greater than 0, payment will be sent every 60 seconds, similarly for incoming calls will be checked for last 60 seconds and disconnected if not received. First 60 seconds are free.

Built for Impervious.AI Hackathon - https://www.impervious.ai/hack4freedom

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published