# @event-scout/construct-contracts

> EventScout contracts: safe interactions between construct and client

Latest version **0.8.0** (published 2025-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @event-scout/construct-contracts
pnpm add @event-scout/construct-contracts
yarn add @event-scout/construct-contracts
bun add @event-scout/construct-contracts
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.8.0 |
| Published | 2025-03-05 |
| First published | 2022-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 298.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Author | fargito |
| Maintainers | fargito |
| Keywords | CDK, CDK Constructs, EventBridge, Serverless |

## Links

- npm: https://www.npmjs.com/package/@event-scout/construct-contracts
- Repository: https://github.com/fargito/event-scout
- Issues: https://github.com/fargito/event-scout/issues
- npm.io page: https://npm.io/package/@event-scout/construct-contracts

## Dependencies (2)

- [json-schema-to-ts](https://npm.io/package/json-schema-to-ts.md) ^3.0.0
- [@swarmion/serverless-contracts](https://npm.io/package/@swarmion/serverless-contracts.md) ^0.33.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.8.0 (latest) — 2025-03-05
- 0.7.7 — 2024-11-09
- 0.7.6 — 2024-06-21
- 0.7.5 — 2024-05-14
- 0.7.3 — 2024-05-12
- 0.7.2 — 2024-05-03
- 0.7.1 — 2024-04-29
- 0.7.0 — 2024-04-29
- 0.6.1 — 2024-04-18
- 0.6.0 — 2024-04-18
- 0.5.5 — 2024-01-17
- 0.5.4 — 2023-11-20
- 0.5.3 — 2023-11-19
- 0.5.2 — 2023-11-19
- 0.5.1 — 2023-11-19
- … 17 more at https://npm.io/package/@event-scout/construct-contracts/versions

## README

# Event Scout

Easy testing and monitoring for events flows on Amazon EventBridge.

## Why EventScout?

Debugging and testing asynchronous flows on Amazon EventBridge is hard, especially since AWS does not provide a simple way to monitor what events have transited through an Event Bus.

EventScout aims to provide this missing piece, both during development and in automated integration tests, by creating **event trails**. These trail record all events with a specific shape. You can then query the trail to see what events have transited through the bus.

For example, in an integration test, this could be used as such:

```mermaid
sequenceDiagram
    autonumber
    actor Test
    participant EventScout
    participant EventBridge
    Test->>EventScout: Start event trail with this pattern
    Test-->>EventBridge: Generate an event matching the pattern
    EventBridge-->>EventScout: Receive the monitored event
    EventScout->>EventScout: Store the monitored event in the trail
    Test->>EventScout: Query the events in the trail
    Test->>EventScout: Close the trail
```

## Features

- **Monitor your events easily**: EventScout allows you to create event trails with dynamic filter patterns on EventBridge
- **Scale your integration tests**: EventScout can create unlimited parallel event trails, event with overlapping patterns, so ou can rule all your integration tests in parallel
- **Pay only for what you use**: EventScout implements a fully Serverless architecture

## Installation

In order to properly work, EventScout needs to:

- deploy the necessary resources with [@event-scout/construct](./packages/construct/README.md)
- use event trails in your tests with [@event-scout/client](./packages/client/README.md)
- monitor your events in real-time with [event-scout](./packages/event-scout/README.md) CLI

And you're all set! The power of EventScout is yours!

---
_Source: https://npm.io/package/@event-scout/construct-contracts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
