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

alchemist-etl

v0.1.2

Published

Alchemist is an JavaScript ETL(**E**xtract, **T**ransform, **L**oad) engine focused on managing data coming from multiple sources, in an efficient and streamlined way, by using pipelines. ![Alchemist](./alchemist.png)

Downloads

23

Readme

Alchemist

Alchemist is an JavaScript ETL(Extract, Transform, Load) engine focused on managing data coming from multiple sources, in an efficient and streamlined way, by using pipelines. Alchemist

NPM Version CircleCI

If your data-related needs oscillate around any of the following:

  1. loading data from multiple sources, reacting to triggers,
  2. clean-up and transformation to desired format,
  3. formatting data between stages and engines in a custom data processing workflow,

then Alchemist will be the right tool for you!

The concept of Alchemist

Alchemist was designed with 2 goals in mind:

  1. Be lightweight: Alchemist can be installed and used in any JavaScript project.
  2. Be flexible: Alchemist comes with built-in adapters, while being extensible with custom adapters as needed.

While the typical flow of data in an ETL engine is:

  • E(xtract): read data from source,
  • T(ransform): process the data,
  • L(load): load the data into the next processing stage or engine,

Alchemist offers more flexibility, by storing both valid (parseable) and invalid (malformed) data between steps in a pipeline. This distinction allows for deeper and more detailed processing of valid data, while keeping seemingly invalid data safely stored for further analysis and improvements.

The full data processing pipeline is demonstrated in the following diagram:

alchemist_pipeline

Additional resources

A more in depth look about how we use alchemist

Installation TODO

Use npm to add the dependency in your package.json file:

$ npm install alchemist

Or install it globally with:

$ npm install --global alchemist

Usage

Each pipeline is an AWS Lambda function, e.g.:

async call() {
  // Step 1: Define input from Kinesis:
  let input = Input.instanceFor(this.adapterRegistry, 'KinesisInput', { events: this.event.events() })

  // Step 2: Define transformations sequence:
  let transformations = [
    Transformation.instanceFor(this.adapterRegistry, 'FirstEventTransformation'),
    Transformation.instanceFor(this.adapterRegistry, 'SecondEventTransformation'),
    Transformation.instanceFor(this.adapterRegistry, 'ThirdEventTransformation')
  ]

  // Step 3: Define output to Kinesis:
  let output = Output.instanceFor(this.adapterRegistry, 'KinesisOutput', {stream_name: 'output-kinesis-stream'})

  // Step 4: Use console for invalid output
  // Note: ConsoleOutput is a preregistered Adapter!
  let invalidOutput = Output.instanceFor(this.adapterRegistry, 'ConsoleOutput', { })

  // Step 5: Execute the pipeline:
  let pipeline = new Pipeline({
    input:            input,
    transformations:  transformations,
    output:           output,
    invalidOutput:    invalidOutput
  })

  await pipeline.call()
}

Review a complete example to learn more about the complete pipeline structure.

Development

After checking out the repo, run yarn install to install dependencies. Then, run docker-compose run --rm test to run the tests.

To install this library onto your local machine, run npm install. To release a new version, run npm version <update_type> to update the version number in package.json, and then run npm publish, which will push the library to npmjs.com.

License

The npm package is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Alchemist project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.