open-index/open-npm huggingface dataset:
npm package: @mingsterism/events
Description: > events package
Latest version: 2.5.10

# @sudoavian/events

> events package

## commands

```bash
# build package
$ npm run build
```

## How to publish trpc services updates to npm

1. `cd` into events folder and `npm login`
2. delete dist folder
3. increase package version in package.json
4. `npm i` and `npm run build`
5. `git push`
6. `npm publish`
7. update all the services using @sudoavian/events to the latest version
npm package: @mingsterism/microservices
Description: > microservices package
Latest version: 1.6.11

# @sudoavian/microservices

> microservices package

## commands

```bash
# build package
$ npm run build
```

## How to publish trpc services updates to npm

1. `cd` into microservices folder and `npm login`
2. delete dist folder
3. increase package version in package.json
4. `npm i` and `npm run build`
5. `git push`
6. `npm publish`
7. update all the services using @sudoavian/microservices to the latest version
npm package: @mingsterism/prisma
Description: > prisma package
Latest version: 1.7.10

# @sudoavian/prisma

> prisma package

## commands

```bash
# build package
$ npm run build
```

## How to publish trpc services updates to npm

1. `cd` into prisma folder and `npm login`
2. delete dist folder
3. increase package version in package.json
4. `npm i` and `npm run build`
5. `git push`
6. `npm publish`
7. psql into db url and update the db by running `npm run prisma:push`
8. update all the services using @sudoavian/prisma to the latest version
npm package: @mingsterism/simulator
Description: 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
Latest version: 1.2.2

## 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.
npm package: @mingsterism/trpc-autodoc
Description: > autodoc trpc service to manage api and events
Latest version: 2.3.11

# @mingsterism/trpc-autodoc

> autodoc trpc service to manage api and events

## required

- create .env file with variables:

```
NPM_TOKEN=<npm-token>
APP_BASE_URL=<app-base-url>
DATABASE_URL=<database-url>
SUPABASE_JWT_SECRET=<supabase-jwt-secret>
ACL_MICROSERVICE_URL=<acl-microservice-url>
STRIPE_SECRET_KEY=<stripe-secret-key>
```

## setup

```bash
# install dependencies
$ npm install

# run development app
$ npm run dev

# build production app
$ npm run build

# start production app
$ npm run start
```
npm package: @mingsterism/trpc-form
Description: > form trpc service to manage api and events
Latest version: 2.4.10

# @mingsterism/trpc-form

> form trpc service to manage api and events

## required

- create .env file with variables:

```
NPM_TOKEN=<npm-token>
PORT=<port>
APP_ENV=<app-env>
APP_BASE_URL=<app-base-url>
NATS_URL=<nats-url>
DATABASE_URL=<database-url>
SUPABASE_JWT_SECRET=<supabase-jwt-secret>
ACL_MICROSERVICE_URL=<acl-microservice-url>
STRIPE_SECRET_KEY=<stripe-secret-key>
```

## setup

```bash
# install dependencies
$ npm install

# run development app
$ npm run dev

# build production app
$ npm run build

# start production app
$ npm run start
```
npm package: @mingsterism/trpc-trigger
Description: > trigger trpc service to manage api and events
Latest version: 1.2.11

# @mingsterism/trpc-trigger

> trigger trpc service to manage api and events

## required

- create .env file with variables:

```
NPM_TOKEN=<npm-token>
APP_BASE_URL=<app-base-url>
NATS_URL=<nats-url>
REDIS_HOST=<redis-host>
REDIS_PORT=<redis-port>
REDIS_USERNAME=<redis-username>
REDIS_PASSWORD=<redis-password>
DATABASE_URL=<database-url>
SUPABASE_JWT_SECRET=<supabase-jwt-secret>
ACL_MICROSERVICE_URL=<acl-microservice-url>
STRIPE_SECRET_KEY=<stripe-secret-key>
```

## setup

```bash
# install dependencies
$ npm install

# run development app
$ npm run dev

# build production app
$ npm run build

# start production app
$ npm run start
```
npm package: @mingsterism/trpc-user
Description: > user trpc service to manage api and events
Latest version: 1.3.12

# @mingsterism/trpc-user

> user trpc service to manage api and events

## required

- create .env file with variables:

```
NPM_TOKEN=<npm-token>
PORT=<port>
APP_ENV=<app-env>
APP_BASE_URL=<app-base-url>
DATABASE_URL=<database-url>
SUPABASE_JWT_SECRET=<supabase-jwt-secret>
GOOGLE_CLIENT_ID=<google-client-id>
GOOGLE_CLIENT_SECRET=<google-client-secret>
GOOGLE_DRIVE_ROOT_FOLDER_NAME=<google-drive-root-folder-name>
ACL_MICROSERVICE_URL=<acl-microservice-url>
STRIPE_SECRET_KEY=<stripe-secret-api-key>
```

## setup

```bash
# install dependencies
$ npm install

# run development app
$ npm run dev

# build production app
$ npm run build

# start production app
$ npm run start
```