All Projects → poga → Hyperfeed

poga / Hyperfeed

Licence: mit
decentralized rss publishing

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hyperfeed

Dat React Native
Browse through the web with the Dat protocol in your device!
Stars: ✭ 25 (-58.33%)
Mutual labels:  dat, p2p, decentralization
Nkn
Official Go implementation of NKN full node.
Stars: ✭ 287 (+378.33%)
Mutual labels:  p2p, decentralization
Dathttpd
Replaced by Homebase! See https://github.com/beakerbrowser/homebase.
Stars: ✭ 282 (+370%)
Mutual labels:  dat, p2p
Datr
R package to interface with the decentralized dat network.
Stars: ✭ 56 (-6.67%)
Mutual labels:  dat, p2p
nconnect
Securely connect to remote machines without the need of any server, public IP address, or publicly exposed ports.
Stars: ✭ 38 (-36.67%)
Mutual labels:  p2p, decentralization
Decsync
Synchronize RSS, contacts, calendars, tasks and more without a server
Stars: ✭ 257 (+328.33%)
Mutual labels:  rss, p2p
Hyperdb Examples
a small introduction to getting started with hyperdb
Stars: ✭ 53 (-11.67%)
Mutual labels:  dat, p2p
Enoki
ultralight tools for creating p2p sites
Stars: ✭ 222 (+270%)
Mutual labels:  dat, p2p
Sciencefair
The futuristic, fabulous and free desktop app for working with scientific literature 🔬 📖
Stars: ✭ 561 (+835%)
Mutual labels:  dat, p2p
Gateway
🏰 Serving distributed Web Annotations from the decentralized web
Stars: ✭ 25 (-58.33%)
Mutual labels:  p2p, decentralization
Design Document
Architectural specification and design of p2🐼
Stars: ✭ 56 (-6.67%)
Mutual labels:  p2p, decentralization
paperslip
share hard-to-transmit snippets with easy-to-pronounce names using dht magic
Stars: ✭ 37 (-38.33%)
Mutual labels:  dat, p2p
dat-workshop
How to build web apps using Dat. A workshop by GEUT.
Stars: ✭ 50 (-16.67%)
Mutual labels:  dat, p2p
Iwant
Commandline tool for searching and downloading files in LAN network, without any central server
Stars: ✭ 268 (+346.67%)
Mutual labels:  p2p, decentralization
Datbase
[DEPRECATED] Open data sharing powered by Dat
Stars: ✭ 251 (+318.33%)
Mutual labels:  dat, p2p
Podcastgenerator
Open Source Podcast Publishing Solution since 2006
Stars: ✭ 344 (+473.33%)
Mutual labels:  rss, publishing
Hypercloud
A hosting server for Dat. [ARCHIVED - Use Hashbase instead!]
Stars: ✭ 96 (+60%)
Mutual labels:  dat, p2p
Sdk
Write your own dat app!
Stars: ✭ 215 (+258.33%)
Mutual labels:  dat, p2p
Go Spacemesh
Go Implementation of the Spacemesh protocol full node. 💾⏰💪
Stars: ✭ 389 (+548.33%)
Mutual labels:  p2p, decentralization
Toxic
An ncurses-based Tox client (please make pull requests on the development fork: https://github.com/toktok/toxic)
Stars: ✭ 987 (+1545%)
Mutual labels:  p2p, decentralization

Hyperfeed

NPM Version JavaScript Style Guide

Hyperfeed is a self-archiving P2P live feed. You can convert any RSS/ATOM/RDF feed to a P2P live update publishing network.

  • Self-archiving: Items and it's linked page will be archived within hyperfeed.
  • Decentralized: Feed contents can still be distributed between readers even if the original host is down.
  • Live: No need to poll the original feed. Updates will be pushed to you.
npm install hyperfeed

Synopsis

Publish your RSS feed through hyperfeed:

const request = require('request')
const hyperfeed = require('hyperfeed')
const hyperdrive = require('hyperdrive')
const swarm = require('hyperdiscovery')

const url = 'https://medium.com/feed/google-developers'

var archive = hyperdrive('./feed')
var feed = hyperfeed(archive)
feed.ready(() => {
  swarm(archive)
  console.log(feed.key.toString('hex'))
  feed.update(request(url), (err) => {
    console.log('feed imported')
  })
})

Now you can replicate the hyperfeed through a p2p network:

const Hyperfeed = require('hyperfeed')
const swarm = require('hyperdiscovery')
const hyperdrive = require('hyperdrive')

var archive = hyperdrive('./anotherFeed', '<KEY FROM ABOVE>')
var feed = hyperfeed(archive)
swarm(archive) // load the feed from the p2p network
feed.list((err, entries) => {
  console.log(entries) // all entries in the feed (include history entries)
})

API

var feed = hyperfeed(archive, [opts])

Create a new Hyperfeed instance. opts includes:

{
  scrapLink: true // set to false to stop archiving linked page for each feed item
}

feed.key

The public key identifying the feed.

feed.discoveryKey

A key derived from the public key that can be used to discovery other peers sharing this feed.

feed.meta

The metadata of the feed.

feed.ready(cb)

Wait for feed is fully ready and all properties has been populated.

feed.update(feedStream, cb(err, feed))

import a RSS feed into feed. Accept a stream.

feed.setMeta(metadataObject, cb(err))

Set feed's metadata.

feed.list(cb(err, entries))

List archived item in the feed.

feed.save(item, [scrappedData], cb(err))

Save a new feed item. Check https://github.com/jpmonette/feed for item detail.

If you already have scrapped data for the given item, you can pass it to scrappedData to avoid redundant requests.

feed.export(count, cb(err, rss))

Export a RSS-2.0 Feed containing latest count items.

License

The MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].