Giter Club home page Giter Club logo

simple-p2p-social-network's Introduction

Simple P2P Social Network

An experimental effort to build a simple serverless, fully decentralized peer-to-peer social network.

The service can run directly in a browser tab without any need for server hosting by simply downloading index.html and opening it in a browser. It can also be hosted, but everything happens in the browser. There is no server-side code to speak of.

At present, the service is completely experimental (expect some bugs)--researching, testing and playing around with various decentralized APIs like Bugout, AvionDB, js-ipfs among others.

Current Features

  • Create a 'pop-up' P2P social network that can be accessed by anyone who has the generated URL
  • Once connected to the instance, peers can share new posts and comments between each other
  • Posts and comments allow HTML tags. Be careful when using out of date/insecure browsers--they may process scripts!

Screenshot

Current Limitations

  • Post & comment history is not sent to new joiners, yet
  • Many familiar social network features are not yet available (hashtags, likes, post sharing, searchs, followers, etc)
  • Code security has not been evaluated
  • Connections using Chrome for Android do not work, but other browsers on Android seem to work okay

Usage

Online Demo

  1. Demo available at https://social.peer.ooo
  2. Share the generated URL with friends, or open in a different browser/browser tab to test it out yourself

Run locally

  1. Download and launch index.html
  2. Copy the URL into another browser or browser tab
  • Note: what makes the magic happen is the 'Peer ID' portion of the URL (the search string after "?r=").
  • Anyone with that string may add the search parameter "?r=" to the URL followed by the generated string to connect to your instance and communicate

file:///index.html?r=47321648ef3de6d1bffee634ab3aeba24d775f23

simple-p2p-social-network's People

Contributors

draeder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

simple-p2p-social-network's Issues

Connections failing

Connections are failing currently. The reason for this is the unreliability of tracker servers used to make the WebRTC connections between peers. Working on a solution...

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.