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 🙏

© 2026 – Pkg Stats / Ryan Hefner

bloom-engine

v2.0.0

Published

Turn Your Excel Spreadsheet into a Powerful Web Calculator

Readme

Bloom Client

Bloom Client is an npm package designed to interact with the Bloom Engine API. It simplifies the process of sending inputs and retrieving outputs by providing a user-friendly interface.

Features

  • Set inputs and outputs for API calls
  • Add inputs and outputs individually
  • Calculate results by calling the API
  • Retrieve outputs one by one

Installation

Install the package using npm:

npm install bloom-client

Usage

Here is an example of how to use the Bloom Client:

Import and Initialize

const BloomEngine = require('bloom-client');

const apiKey = 'your-api-key';
const apiVersion = 'v3.0';

const bloomEngine = new BloomEngine(apiKey, apiVersion);

How to Create an API Key

  1. Visit bloom-engine.cloud.
  2. Upload an Excel Spreadsheet.
  3. Get your own API key.

Set Inputs and Outputs

You can set all inputs and outputs at once:

bloomEngine.inputs({
    "Sheet1!B2": 10,
    "Sheet1!B3": 300000,
})
.outputs([
    "Sheet2!B5",
    "Sheet2!B6",
]);

Or add them individually:

bloomEngine
    .addInput("Sheet1!B12", "Manitoba")
    .addInput("Sheet1!B4", 0.1)
    .addOutput("Sheet2!B7")
    .addOutput("Sheet2!B8");

Calculate Results

Call the calculate method to interact with the API:

(async () => {
    try {
        const results = await bloomEngine.calculate();

        // Retrieve outputs by key
        console.log(results.get("Sheet2!B5"));
        console.log(results.get("Sheet2!B6"));
    } catch (error) {
        console.error('Error:', error);
    }
})();

API Reference

Constructor

new BloomEngine(apiKey, apiVersion)
  • apiVersion: The version of the API to use (e.g., 'v3.0').
  • apiKey: Your client key.

Methods

inputs(inputs)

  • Description: Sets multiple inputs at once.
  • Parameters:
    • inputs (Object): Key-value pairs of inputs.
  • Returns: The instance for chaining.

outputs(outputs)

  • Description: Sets multiple outputs at once.
  • Parameters:
    • outputs (Array): List of output keys.
  • Returns: The instance for chaining.

addInput(key, value)

  • Description: Adds a single input.
  • Parameters:
    • key (string): The input key.
    • value (any): The input value.
  • Returns: The instance for chaining.

addOutput(output)

  • Description: Adds a single output.
  • Parameters:
    • output (string): The output key.
  • Returns: The instance for chaining.

calculate()

  • Description: Calls the API and retrieves the results.
  • Returns: A Map containing the output key-value pairs.

Error Handling

If the API call fails, the calculate method throws an error. Use try...catch to handle exceptions gracefully.

License

This project is licensed under the MIT License.


For more information, feel free to reach out to the development team or consult the official documentation.