Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bakeryjs

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bakeryjs

FBP-inspired library

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
increased by2.38%
Maintainers
4
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 19 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc