Git Product home page Git Product logo

redphone's Introduction

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

redphone's People

Contributors

pseudozach avatar johnongit avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.