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

@mingsterism/simulator

v1.2.2

Published

This TypeScript-based simulator models a business process using event-driven architecture. It's designed to simulate various processes based on provided templates and handles parallel and exclusive gateway nodes, including approval/decision nodes, which a

Downloads

10

Readme

Process Simulator

This TypeScript-based simulator models a business process using event-driven architecture. It's designed to simulate various processes based on provided templates and handles parallel and exclusive gateway nodes, including approval/decision nodes, which are essential components in business process modeling.

Setup

To set up the simulator, follow these steps:

  1. Install the dependencies:

    npm install
  2. For testing, select one of the four different process templates from example_processes.ts, and run the tests to simulate the business process:

    npm run test

Features

  • Event-Driven Architecture: Uses an event-driven approach to model the flow of the business process.
  • Gateway Nodes: Supports both parallel and exclusive gateway nodes (including approval/decision nodes) to replicate complex business logic.
  • Loopback Handling: Throws an error if a loopback scenario is detected; currently unable to simulate processes with loopback scenarios.

Structure

The Simulator is located in the src/ directory. It contains the following files:

  • main.ts: Contains the process simulator.
  • utils.ts: Contains the helper functions of the simulator.
  • types.ts: Contains data types used in the simulator and helper functions.
  • example_processes.ts: Contains four different types of process templates for testing.
  • test.ts: A playground for simulating different process templates.

Configuration

You can configure the Simulator by modifying the files in the src/ directory. The core function is simulateNode in utils.ts, which is responsible for simulating the metrics of a single node and recursively processing subsequent nodes to provide a live simulation of the entire process. By adjusting the parameters and logic within this function, you can tailor the simulation to fit specific business process requirements.