• Stars
    star
    209
  • Rank 188,325 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

❀️ Decentralized P2P Publishing Using Browser Cache & Torrents

πŸ”₯πŸ”₯ Check out my latest project - diff.blog


Peerdium is a peer to peer publishing platform. The posts are stored as torrents in the browser. Only the people with link to the post can see the content of the post. Peerdium is built using WebTorrent.

Peerdium was featured in the front page of Hacker News. There was a lot of interesting discussions in the comment section and you should defintely check it out.

How it works?

When the publish button is clicked the browser encrypts the post using a random 15 digit key, creates a torrent and starts seeding the torrent. Each post has a URL in the format https://peerdium.com/#post_id. The first 40 characters of the post_id is the magnet URI of the torrent and the rest 15 is the key used for encrypting the content of the torrent. When someone open a post for the first time the magnet URI encoded in the link is used for fetching the torrent from other seeders and the key is used for decrypting the torrent.

Click on the heart button If you like a post and want to to access it later. The post would be saved to your browser and you can see the content of the post even if no one else is seeding.

How to contribute

Setting up peerdium development environment is quite easy. There is no backend involved. All you need to do is start a static file server that can serve the index.html and the static assets in /static folder.

Here is how to do this in Linux. Make sure that you have python3 and git installed.

git clone https://github.com/hackerkid/peerdium
cd peerdium
python3 -m http.server

You are all set. Now head over to localhost:8000 in browser and start experimenting.

More Repositories

1

Mind-Expanding-Books

πŸ“š Find your next book to read!
JavaScript
10,720
star
2

bots

⚑ Tools for building bots
1,362
star
3

LightOJ-Solutions

✨ LightOJ Solutions with hints
C++
54
star
4

Wikifeedia

β˜” Wikipedia turned into a newsfeed
JavaScript
45
star
5

Awesome-Data-Structures

C++ implementation of basic data structures and algorithms
C++
15
star
6

pluto

πŸŒ” peer to peer decentralized social network
JavaScript
10
star
7

HEFT-Scheduling

Performance-effective and low-complexity task scheduling for heterogeneous computing
C++
9
star
8

peerchat

Peer to peer multi chat application with encryption made in Java
Java
8
star
9

snowden

yet another proxy server in C++
C
7
star
10

help

:octocat: Get help from the awesome people of Github
6
star
11

FaceMash

πŸ’₯ The Infamous FaceMash Built In PHP
HTML
6
star
12

Awesome-P2P

Curated list of awesome Peer to Peer projects
5
star
13

blog

πŸŒ€ Source code of my blog
SCSS
5
star
14

talks

4
star
15

advent-of-code-solutions

Solutions to advent of code puzzle series C++ / Python / JS
C++
4
star
16

Hackernews-Syncer-for-Wordpress

βš“ A Wordpress plugin for syncing the Hackenews posts with Wordpress blog
PHP
3
star
17

awesome-copy

3
star
18

hacktilities

Utilities and hacks to get simple things done!
Python
3
star
19

mentorships

ToDos and Materials for students who are mentored by me
3
star
20

project-buterin-backend

Python
3
star
21

node-github-notification

Get Github notifications in Node.js
JavaScript
2
star
22

garden

HTML
2
star
23

web-design-in-4-minutes

2
star
24

program-filename-extensions

2
star
25

Wikifeedia-Backend

The back end that powers Wiki Feedia
PHP
2
star
26

slides

1
star
27

scikit-learn-sample-codes

Python
1
star
28

obsidian-todo-timer

Timer for todo items
TypeScript
1
star
29

Codemonk

Solutions to HackerEarth codemonk series
C++
1
star
30

sixthsense

Automatically exported from code.google.com/p/sixthsense
1
star
31

Data-Structures-And-Algorithms

C++
1
star
32

awesome-gem

My first gem
Ruby
1
star
33

USACO

C++
1
star
34

Library

Collection of awesome functions and powerups
C++
1
star
35

hackerkid.github.io

HTML
1
star
36

snowden-docs

Docs for the HTTP proxy server
1
star
37

til

Today I Learned
1
star
38

compiler-design

Compiler Design course solutions
C++
1
star
39

dbs

1
star
40

the-art-of-network-programming

A handbook on Network Programming in Unix
1
star
41

knight-chrome

JavaScript
1
star
42

codeforces

Solutions to Codeforces round
Java
1
star
43

learn-elixir

My notes on learning Elixir
1
star
44

Awesome-Programming-Problems

Collection of awesome programming problems with solutions
1
star
45

habit

1
star
46

hacker-shellscripts

Collection of useful shell scripts
Shell
1
star
47

humans.txt

Because it sucks when someone submit your website to hacker news/ product hunt when you are not prepared
1
star
48

favorites

1
star
49

hero

JavaScript
1
star
50

yoda

A clean Jekyll install. Jekyll is a simple, blog-aware, static site generator perfect for personal, or organizational sites
CSS
1
star
51

HackerFeed

JavaScript
1
star
52

jekyll-desktop

An easy to use Jekyll Desktop Client
CSS
1
star
53

knight

Python
1
star
54

issues

1
star