All Projects → joehand → Hypertweet

joehand / Hypertweet

Licence: other
concept tweet -> hypercore thingy

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Hypertweet

portal
🔗 zero-config peer-to-peer encrypted live folder syncing that respects your `.gitignore`
Stars: ✭ 284 (+311.59%)
Mutual labels:  dat
Pycftrackers
Python re-implementation of some correlation filter based tracker
Stars: ✭ 313 (+353.62%)
Mutual labels:  dat
Random Access Http
Continuous reading from a http(s) url using random offsets and lengths for peers in a distributed system
Stars: ✭ 39 (-43.48%)
Mutual labels:  dat
decent-dat-intro
a buffet of tiny demos for easing in everyone with developing decentralized apps
Stars: ✭ 67 (-2.9%)
Mutual labels:  dat
Migrations
SQL database migrations for Golang go-pg and PostgreSQL
Stars: ✭ 251 (+263.77%)
Mutual labels:  dat
Docs
Documentation resources for dat and the surrounding ecosystem
Stars: ✭ 532 (+671.01%)
Mutual labels:  dat
hyperdrive-network-speed
track upload and download speed on a hyperdrive archive [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
Stars: ✭ 18 (-73.91%)
Mutual labels:  dat
Dat
💾 peer-to-peer sharing & live syncronization of files via command line
Stars: ✭ 8,259 (+11869.57%)
Mutual labels:  dat
Dathttpd
Replaced by Homebase! See https://github.com/beakerbrowser/homebase.
Stars: ✭ 282 (+308.7%)
Mutual labels:  dat
Dat React Native
Browse through the web with the Dat protocol in your device!
Stars: ✭ 25 (-63.77%)
Mutual labels:  dat
TKViewer
NexusTK DAT Object Viewer
Stars: ✭ 18 (-73.91%)
Mutual labels:  dat
hyperhealth
Monitor the health of a hyperfeed (hypercore or hyperdrive), including peer count and peer mirror percentages.
Stars: ✭ 38 (-44.93%)
Mutual labels:  dat
Sciencefair
The futuristic, fabulous and free desktop app for working with scientific literature 🔬 📖
Stars: ✭ 561 (+713.04%)
Mutual labels:  dat
paperslip
share hard-to-transmit snippets with easy-to-pronounce names using dht magic
Stars: ✭ 37 (-46.38%)
Mutual labels:  dat
Hyperdb Examples
a small introduction to getting started with hyperdb
Stars: ✭ 53 (-23.19%)
Mutual labels:  dat
datdot-node-rust
datdot blockchain node in rust
Stars: ✭ 43 (-37.68%)
Mutual labels:  dat
Dat Node
Node module for creating dat compatible tools on file systems
Stars: ✭ 503 (+628.99%)
Mutual labels:  dat
Hyperfeed
decentralized rss publishing
Stars: ✭ 60 (-13.04%)
Mutual labels:  dat
Datr
R package to interface with the decentralized dat network.
Stars: ✭ 56 (-18.84%)
Mutual labels:  dat
Dat Desktop
Peer to peer data syncronization
Stars: ✭ 627 (+808.7%)
Mutual labels:  dat

hypertweet

Proof of concept Twitter + Dat feed stream thingy.

Streams your twitter feed to a hypercore feed. Pretty print your feed or stream it anywhere with hyperpipe.

hypertweet

Install

npm install -g hypertweet

hypertweet --help # see help!

Set twitter tokens

Get Twitter developer key and either set them as environment variables or copy .sample.env to .env file.

process.env.TWITTER_CONSUMER_KEY,
process.env.TWITTER_CONSUMER_SECRET
process.env.TWITTER_ACCESS_TOKEN_KEY,
process.env.TWITTER_ACCESS_TOKEN_SECRET

Usage

Use hypertweet --help to see all the options.

Collect Feed Data

Streams your feed into a hypercore feed:

❯ hypertweet --dir=/joe/my-twitter-data/
sharing 0c3ec59a8111fde379e7ef82e6610ec02daf6bd3b704f41554cd5fe76afd5cc4

2017-04-21T02:20:24.205Z tweet by: 'some twitter user'
2017-04-21T02:20:25.000Z tweet by: 'more chirps'
2017-04-21T02:20:30.043Z tweet by: 'asdf'

Print anywhere

Pretty print it in another terminal (or another computer anywhere):

❯ hypertweet 0c3ec59a8111fde379e7ef82e6610ec02daf6bd3b704f41554cd5fe76afd5cc4

# pretty tweets here

Or pipe

Pipe anywhere to anything.

npm install -g hyperpipe
hyperpipe /db 0c3ec59a8111fde379e7ef82e6610ec02daf6bd3b704f41554cd5fe76afd5cc4 > data.json

API

hypertweet(dir|storage, [opts], callback(err, feed))

Create a stream from the twitter API and share via hypercore feed. Automatically joins network via discovery-swarm.

  • dir|storage: directory or random access module, e.g random-access-memory.
  • opts.streamUrl: the twitter streaming api endpoint you want. defaults to user.
  • opts.streamOpts: stream opts

License

MIT

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].