version feed for trusted application delivery
appfeed generate Generate a keypair for signing application releases. appfeed id Print the public key. appfeed versions Print a list of versions with their hashes. appfeed trusted appfeed trusted REF Print a list of currently trusted nodes or if a version or hash REF is given, print the list of trusted nodes for REF. appfeed trust ID Trust ID. appfeed revoke ID Revoke trust in ID. appfeed show REF Print the contents of REF, a version or hash. appfeed publish --version=VERSION Publish data from stdin as VERSION. appfeed replicate Replicate using stdin and stdout. OPTIONS are: --dir -d Where to save the appfeed data --keyfile -k Use this keyfile. Default: ~/.config/appfeed/keys.json
var appfeed = require('appfeed')
var feed = appfeed(db, sodium, opts)
Instantiate a feed from a leveldb handle
a sodium implementation,
opts.secretKey- sodium private key
opts.publicKey- sodium public key
opts.store- abstract-blob-store implementation to store blobs
var dup = feed.replicate(opts, cb)
Return a duplex stream to replicate with another appfeed.
false, only replicate metadata, not blobs
true, only pull down the latest version of blobs to save bandwidth
var wstream = feed.publish(doc, cb)
Return a writable stream
wstream to publish content for
doc.version- the version to publish this payload as.
cb(err, doc) fires with the
doc.key of this release.
Add trust for
Revoke trust in
Get an array of
cb(err, ids) which are trusted at
from, or the
latest update if
npm install -g appfeed npm install appfeed
Thanks to blockai for sponsoring this project.