Hapi plugin that exposes an API for managing tasks and routes for task syncing
Last updated 3 years ago by hoodie .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hoodie/task-server 
SYNC missed versions from official npm registry.


Task API

hoodie-task-server is a Hapi plugin that exposes an API for managing tasks and defines all CouchDB endpoint routes that are necessary for replication so that task objects can be synced.


var Hapi = require('hapi')
var hoodieTask = require('@hoodie/task-server')
var PouchDB = require('pouchdb')

var server = new Hapi.Server()

  port: 8000

  register: hoodieTask,
  options: {
    PouchDB: PouchDB
}, function (error) {
  if (error) throw error

server.start(function () {
  console.log('Server running at %s', server.info.uri)



PouchDB constructor. Required

options: {
  PouchDB: require('pouchdb-core')

If you want connect to a CouchDB instance, use the pouchdb-adapter-http and set options.prefix to the CouchDB url. All requests will be proxied to CouchDB directly, the PouchDB constructor is only used for server.plugins.store.api

options: {
  PouchDB: require('pouchdb-core')
      prefix: 'http://localhost:5984',
      auth: {
        username: 'admin',
        password: 'secret'


Local setup

git clone https://github.com/hoodiehq/hoodie-task-server.git
cd hoodie-task-server
npm install

Run all tests and code style checks

npm test


Have a look at the Hoodie project's contribution guidelines. If you want to hang out you can join our Hoodie Community Chat.


Apache 2.0

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

2 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 3
Dependencies (11)
Dev Dependencies (14)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |