bakeryjs
FBP-inspired library
Last updated 6 months ago by jslovan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bakeryjs 
SYNC missed versions from official npm registry.

BakeryJS

npm version Travis build status

BakeryJS is a Node.js framework for handling common data processing needs.

Why would you need it? Think of how you process data with many small-scale data manipulations. The data is retrieved, shaped, extended, stored, and sent to UI. Imagine you divide complex data processing tasks into smaller reusable components or “Boxes” (Black box with your business logic). BakeryJS gives you straightforward options to connect these boxes into data flows to solve your tasks.

BakeryJS runs your Boxes asynchronously and deals with different processing speed of each Box. With BakeryJS you will gain observability and various options to run your Data Flows.

Project Status

Initial Public Beta

In Socialbakers we use BakeryJS internally on production projects, but there are still many rough edges, especially regarding documentation and public API. We are looking for your feedback to know how to make BakeryJS generally useful outside of our company. Please write an issue if you have any questions or comments.

Features

  • Provides common abstraction for data processing,
  • supports prepared and dynamic flows,
  • works nicely with existing code,
  • no special deployment needs,
  • built-in observability and tracing (planned),
  • extensibility via plugins (planned).

Usage

Install the package via npm:

npm install bakeryjs

See the example folder for example project structure with explanation.

Namings

  • Program: The main entry point of the application, it loads Components and builds Data Flow from the given Job description.
  • Component / Box: A single piece of logic, it can require, provide and emit messages. Generally depending on its behavior it can be:
    • Generator: Generates messages, e.g. reads input queue or listens on socket.
    • Processor: Receives incoming messages and processes them further, e.g. enriches messages with additional data, converts them to different format or emits additional messages derived from incoming messages.
  • Message: An object exchanged between Components, its properties correspond to specific provides, emits, and requires definitions of component.
  • Data Flow: A configuration of Components which exchange data.
  • Job: A piece of work received by the Program, it contains Data Flow and optionally settings for boxes and input parameters.

Contributing

See Contribution Guidelines.

Acknowledgments

BakeryJS was originally inspired by Apache NiFi and Luigi by Spotify.

See Also

Resources

License

MIT

Current Tags

  • 0.0.2                                ...           latest (6 months ago)

21 Versions

  • 0.0.2                                ...           6 months ago
  • 0.0.1                                ...           6 months ago
  • 0.0.1-beta.19                                ...           a year ago
  • 0.0.1-beta.18                                ...           a year ago
  • 0.0.1-beta.17                                ...           a year ago
  • 0.0.1-beta.16                                ...           a year ago
  • 0.0.1-beta.15                                ...           a year ago
  • 0.0.1-beta.13                                ...           2 years ago
  • 0.0.1-beta.12                                ...           2 years ago
  • 0.0.1-beta.11                                ...           2 years ago
  • 0.0.1-beta.10                                ...           2 years ago
  • 0.0.1-beta.8                                ...           2 years ago
  • 0.0.1-beta.7                                ...           2 years ago
  • 0.0.1-beta.6                                ...           2 years ago
  • 0.0.1-beta.5                                ...           2 years ago
  • 0.0.1-beta.4                                ...           2 years ago
  • 0.0.1-beta.3                                ...           2 years ago
  • 0.0.1-beta.1                                ...           2 years ago
  • 0.0.1-alpha.2                                ...           2 years ago
  • 0.0.1-alpha.1                                ...           2 years ago
  • 0.0.1-alpha                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (21)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |