@coboxcoop/superusers

1.0.7-alpha.1 • Public • Published

Superusers

standard-readme compliant

Table of Contents

About

CoBox is an encrypted p2p file system and distributed back-up tool. README provides a map of the project.

superuser provides a superuser space which is like a special kind of @coboxcoop/space. Rather than managing an archive of files together, it represents the space who manage a cobox hardware seeder, the superuser space, allowing them to control which spaces it replicates.

This is done by sending encrypted messages to @coboxcoop/seeder.

An superuser space simply contains a @coboxcoop/log which uses a kappa-core and multifeed instance, inherited from @coboxcoop/replicator, kappa-view-query for querying the log, and wraps it all with a cryptographic value encoder so the log is fully encrypted.

Install

npm install @coboxcoop/superusers

Usage

const crypto = require('@coboxcoop/crypto')
const Superusers = require('./')

const storage = tmp()
const address = crypto.address()
const encryptionKey = crypto.encryptionKey()
const identity = crypto.boxKeyPair()
const superusers = Superusers(storage, address, identity, { encryptionKey })

let query = { $filter: { value: { type: 'peer/about' } } }
let stream = superusers.log.read({ query })
stream.on('data', console.log)

superusers.log.publish({ type: 'peer/about', content: { name: 'Magpie' } })
superusers.swarm()

API

See swagger documentation... (we won't have this for a while).

Contributing

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

AGPL-3.0-or-later

Package Sidebar

Install

npm i @coboxcoop/superusers

Homepage

cobox.cloud

Weekly Downloads

1

Version

1.0.7-alpha.1

License

AGPL-3.0-only

Unpacked Size

49.8 kB

Total Files

8

Last publish

Collaborators

  • kyphae
  • ameba23