# expressbridge-node

> expressbridge is a event-driven microservice framework for Node.js

Latest version **1.0.0** (published 2022-02-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install expressbridge-node
pnpm add expressbridge-node
yarn add expressbridge-node
bun add expressbridge-node
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-02-06 |
| First published | 2022-02-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 20.9 KB |
| Known vulnerabilities | 0 (+24 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 16 |
| Maintainers | jackvhall |

## Links

- npm: https://www.npmjs.com/package/expressbridge-node
- Repository: https://github.com/oslabs-beta/expressbridge
- Homepage: https://github.com/oslabs-beta/expressbridge#readme
- Issues: https://github.com/oslabs-beta/expressbridge/issues
- npm.io page: https://npm.io/package/expressbridge-node

## Dependencies (2)

- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [axios](https://npm.io/package/axios.md) ^0.24.0

## Recent versions

- 1.0.0 (latest) — 2022-02-06

## README

<h1 align="center">
ExpressBridge v1.0
</h1>
<p align="center">
  <strong>
    A tiny microservice framework for Nodejs. 🚀
  </strong>
</p>

<p align="center">
ExpressBridge is a free and open source microservice framework for Nodejs-based microservices. It is appropriate for use in any microservice or FaaS environment and across all cloud vendors.
</p>
<p align="center">
  <a href="https://github.com/oslabs-beta/expressbridge/blob/dev/LICENSE">
    <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="Gatsby is released under the MIT license." />
  </a>
  <img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/oslabs-beta/expressbridge/DEV%20CI">
</p>

## What's in this document
- Overview
- Quickstart Guide
- Learning ExpressBridge
- Sample Project
- Release Notes
- Documentation Site
- How to Contribute

## Overview: ExpressBridge Fundamentals
ExpressBridge provides a fluid, easy to use API that enables developers to stand up new microservices that handle, process, and dispatch messages with ease. The API surface is small and straightforward. Consider the following example:

```ts
const handler = (message) => {
    const expressBridge = new ExpressBridge({
        alwaysRunHooks: true,
    });

    expressBridge.pre((message) => {
        // ... pre-process message
    });

    expressBridge.post((message) => {
        // ... post-process message
    });

    // respond to some generic AWS events
    const awsEventHandler = (message) => { /* ... write to db, log event, dispatch message, etc */ }
    expressBridge.use({ source: 'aws.*' }, awsEventHandler, (err) => { console.log(err) }) 

    expressBridge.process(message);
}
```

The above example represents the entire API surface of the framework in its simplest implementation. However, ExpressBridge is highly configurable so as to be suitable for a wide range of scenarios. Understanding this configurability will enable you to fully leverage the power of this framework.

---
_Source: https://npm.io/package/expressbridge-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
