staticpeer-api
v0.0.1
Published
static, remote peers for dat archives
Downloads
12
Maintainers
Readme
staticpeer-api
A work in progress implementation of the dat pinning service api.
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
- issues – Please open issues in the issues queue