npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kazana

v8.5.10

Published

A modular data warehouse system

Downloads

265

Readme

kazana

A modular data warehouse system

NPM version Build Status Coverage Status Dependency Status

Kazana is a data warehouse system framework. It provides high level APIs to extract, transform and index data for analysis.

  1. Quick start
  2. Core philosophies
  3. Features
  4. How it works

See also: Glossary

Quick start

Create a folder and create a package.json

mkdir myapp
cd myapp
npm init --yes

Add kazana as dependency

npm install --save kazana

Add a "start" script to the package.json

{
  "name": "myapp",
  "scripts": {
    "start": "kazana"
  },
  "dependencies": {
    "kazana": "^8.4.0"
  }
}

Create myapp/index.js with the following content:

module.exports = {
  name: 'myapp',
  version: '1.0.0'
}

In future, that will be enough, but for now the public option must be set, see https://github.com/eHealthAfrica/kazana/issues/195.

So add a public option like this:

module.exports = {
  name: 'myapp',
  version: '1.0.0',
  public: 'public'
}

And create a public/index.html file with this content.

Now start the app

npm start

You need to create a test user at http://localhost:4999/_utils/#/database/_users/new

with this content

{
    "_id": "org.couchdb.user:[email protected]",
    "type": "user",
    "name": "[email protected]",
    "roles": [
        "kazana-id:testadmin",
        "kazana-data-provider",
        "kazana-data-reviewer",
        "kazana-analyst",
        "kazana-admin"
    ],
    "password": "secret",
    "createdAt": "2016-01-01T00:00:00.000Z",
    "fullname": "Test Admin"
}

Now start the app

npm start

Once running, you can open http://localhost:5000. It will show a simple html app that lets you submit data.

Congratulations, you have built your first Kazana app and can already start accepting data submissions!

What’s next?

Core philosophies

  1. Quick deployments

    Kazana accepts all kind of data out of the box through its generic REST API and client SDKs.

  2. Iterative development

    Transform scripts are not required to accept raw data reports, they simply start integrating existing raw data when they are ready.

  3. Tiny core, many plugins

    Instead of a monolithic architecture, Kazana is focussed on a tiny core with great code quality and stability. Context-specific features can be added with plugins.

Features

  1. Flexible Raw Data Reports handling Zero-setup, secure raw data warehouse
  2. Asynchronous Data Transformation
    Integrate existing and new raw data
  3. Indices map & reduce integrated data for analysis
  4. Entities
    e.g. involved agencies, locations, projects, etc
  5. Custom routes
    e.g. for hook APIs from 3rd party services
  6. Events✸
    e.g. send notifications when new data submitted
  7. Auditing✸
    Get notified if data is missing
  8. Services
    e.g. to constantly pull data from 3rd party services)
  9. Plugins
    (reusable) modules with all extension points above
  10. User authentication & permissions✸
    Built-in user management and role-based permissions
  11. Client APIs with Offline Support✸
    Capture data while offline, sync later

✸ Work in progress

How it works

Kazana is a server built on top of the Hapi framework and uses CouchDB as its data store✸.

A Kazana app is defined by a Kazana Manifest. It’s the app’s main file (index.js by default) and exports an object with pre-defined properties. A minimal manifest looks like this:

module.exports = {
  name: 'myapp'
}

Starting the app will serve a generic app for data submissions at http://localhost:5000. (TODO: https://github.com/eHealthAfrica/kazana/issues/195)

✸ Kazana spawns a PouchDB Server as a CouchDB drop-in replacement by default, unless otherwise configured, so CouchDB is not a hard requirement for development, but recommended for production use.

Local setup and Testing

devDependency Status

git clone [email protected]:eHealthAfrica/kazana.git
cd kazana
npm install
npm test

CI test with selenium / chrome

npm run test:ci

CI test with Saucelabs

SAUCE_USERNAME=*** SAUCE_ACCESS_KEY=*** TEST_CLIENT="saucelabs:internet explorer:10:Windows 8" npm run test:ci

Credit

Brought to you by eHealth Africa — good tech for hard places.

License

Apache-2.0