Skip to content

Instantly share code, notes, and snippets.

@cblgh
Last active May 1, 2018 19:29
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cblgh/b40d664e8fc1e7687ce67b08d05e163a to your computer and use it in GitHub Desktop.
Save cblgh/b40d664e8fc1e7687ce67b08d05e163a to your computer and use it in GitHub Desktop.
make the p2p web with dat's primitives

low level primitives (in ascending abstraction)

  • hypercore works with individual posts in an append-only feed
  • hyperdrive abstracted filestore / works with files
  • hyperdiscovery create p2p swarms for hypercores, hyperdrives, and hyperdbs
  • hyperdb key-value database

higher level abstractions

  • webdb database; basically a document(?) store
  • dat-node built ontop of hypercore & hyperdrive, abstracts a bunch of stuff; less complex but also less flexible

hypercore + hyperdiscovery example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment