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

@neeharikaa/event-stormer

v2.0.3

Published

Distributed event-driven orchestration system built on Node.js, Redis, and BullMQ

Readme

@neeharikaa/event-stormer

A production-ready, distributed event-driven orchestration engine built on Node.js, Redis, and BullMQ. Define execution pipelines in YAML/JSON, automatically track state persistence (in local JSON database or MongoDB), and isolate faults with automatic retries and dead-letter queues (DLQ).


The Problem Statement

Coordinating multi-step asynchronous actions in Node.js backends often leads to fragile and unmanageable event flows.

Without a structured engine, developer setups suffer from:

  • Callback and Promise Hell: Deeply nested, fragile asynchronous code logic.
  • State Loss: If the server crashes mid-process, there is no automatic state recovery.
  • Lack of Isolation: A failure in one minor task crashes the entire execution pipeline.
  • Lack of Visibility: No unified method to track which tasks succeeded, retried, or failed.

eventFlow resolves this by providing a lightweight framework that structures your operations as clean pipelines with built-in retries, persistence, and a live web dashboard.


Installation

Install @neeharikaa/event-stormer in your project:

npm install @neeharikaa/event-stormer

Make sure you have a Redis instance running on localhost:6379.


Quick Start

1. Run the Dashboard

You can view and trigger your pipelines using our built-in web dashboard:

npx event-stormer-dashboard

Open http://localhost:3000 in your browser.

2. Run from JavaScript

Initialize the engine and queue a workflow:

import eventFlow from '@neeharikaa/event-stormer';

// Initialize engine (defaults to file-based store)
await eventFlow.initAsync({ useQueue: true });

// Define your pipeline
const pipelineYaml = `
name: "AWS S3 Auto-Backup Flow"
description: "Pushes local assets to S3 and registers the transaction"
tasks:
  upload_to_s3:
    description: "Uploading files to S3 bucket: eventflow-backups-us-east-1"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/testHandler.js"
    parameters:
      delay: 1200
      error: false
  register_backup_db:
    description: "Saves S3 transaction metadata locally"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/fileHandler.js"
    parameters:
      file:
        name: "./s3_backup_receipt.json"
        contents: {
          s3_url: "s3://eventflow-backups-us-east-1/backups/db-backup.tar.gz",
          bytes_uploaded: 45291880,
          region: "us-east-1",
          status: "SUCCESSFUL"
        }
`;

// Queue the workflow
const result = await eventFlow.queueWorkflowAsync(pipelineYaml);
console.log(`Pipeline enqueued successfully! Job ID: ${result.jobId}`);

Daily Developer Use Cases

Here are three real-world pipelines that developers run on a daily basis:

Use Case 1: AWS Database S3 Backup Sync

  • What it does: Uploads database assets to S3 and writes a local JSON receipt file.
name: "AWS S3 Auto-Backup Flow"
description: "Pushes local assets to S3 and registers the transaction"
tasks:
  upload_to_s3:
    description: "Uploading files to S3 bucket: eventflow-backups-us-east-1"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/testHandler.js"
    parameters:
      delay: 1200
      error: false
  register_backup_db:
    description: "Saves S3 transaction metadata locally"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/fileHandler.js"
    parameters:
      file:
        name: "./s3_backup_receipt.json"
        contents: {
          s3_url: "s3://eventflow-backups-us-east-1/backups/db-backup.tar.gz",
          bytes_uploaded: 45291880,
          region: "us-east-1",
          status: "SUCCESSFUL"
        }
  alert_completion:
    description: "Notifies team channels of successful backup"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/logHandler.js"
    parameters:
      level: "info"
      log: "[AWS-S3] Backup successfully verified. Object URL: s3://eventflow-backups-us-east-1/backups/db-backup.tar.gz"

Use Case 2: DevOps Database Migration Rollback Checker

  • What it does: Verifies active migration logs, executes a rollback task on failure, and stores a rollback manifest.
name: "Database Migration Rollback Flow"
description: "Checks migration status and triggers database rollback on warning thresholds"
tasks:
  verify_migration_status:
    description: "Checking migration error status logs"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/testHandler.js"
    parameters:
      delay: 500
      error: false
  trigger_rollback:
    description: "Executing rollback script for database recovery"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/testHandler.js"
    parameters:
      delay: 1500
      error: false
  write_rollback_receipt:
    description: "Saving rollback action log locally"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/fileHandler.js"
    parameters:
      file:
        name: "./db_rollback_manifest.json"
        contents: {
          status: "ROLLED_BACK",
          version: "V1.0.4",
          timestamp: "2026-07-12T00:50:00Z"
        }
  notify_admin:
    description: "Logs rollback operation details"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/logHandler.js"
    parameters:
      level: "warn"
      log: "[DEVOPS] Rollback executed successfully for version V1.0.4"

Use Case 3: API Rate Limit Monitoring & Webhook Alerting

  • What it does: Monitors request telemetry logs, writes an alert payload file, and prints warning alerts to console logs.
name: "API Rate Limit Monitoring"
description: "Monitors client traffic telemetry logs and dispatches system warnings"
tasks:
  analyze_rate_limits:
    description: "Scanning host connection rate telemetry"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/testHandler.js"
    parameters:
      delay: 600
  write_incident_report:
    description: "Writing rate limit alert info locally"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/fileHandler.js"
    parameters:
      file:
        name: "./api_alert_report.json"
        contents: {
          ip_blocked: "192.168.1.45",
          attempts: 120,
          limit: 60,
          status: "ALERT_TRIGGERED"
        }
  log_incident:
    description: "Prints incident log details to warning logs"
    blocking: true
    handler: "../node_modules/@neeharikaa/event-stormer/taskHandlers/logHandler.js"
    parameters:
      level: "warn"
      log: "[TRAFFIC-MONITOR] IP 192.168.1.45 blocked due to exceeding rate limit of 60 req/min"