0.0.1 • Published 6 years ago

staticpeer v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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