staticpeer-api

0.0.1 • Public • Published

staticpeer-api

A work in progress implementation of the dat pinning service api.

npm travis standard conduct

About

The goal is to create a kind of combination of hypercored and homebase that allows user registration via JSON API and provides additional useful API endpoints.

Example

var createServer = require('staticpeer-api')
 
var app = createServer({
  databaseDirectory: './tmp/db',
  archiverDirectory: './tmp/archiver'
})
 
app.listen(4040, (err, address) => {
  if (err) throw err
  app.log.info(`server listening on ${address}`)
})

Install

npm install --save staticpeer-api

Contributing

Contributions are welcome! Please read the contributing guidelines first.

Code of conduct

Help keep this project open and inclusive. Read and follow our Code of Conduct.

Change log

Read about the changes to this project in CHANGELOG.md. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Contact

License

ISC

Package Sidebar

Install

npm i staticpeer-api

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

16.6 kB

Total Files

11

Last publish

Collaborators

  • sethvincent