open-index/open-npm huggingface dataset:
npm package: @statter/events
Description: statter events
Author: Statter 🚀
Latest version: 1.0.3

# @statter/events

Package for domain events, broker publishing, and outbox processing.

## What Is Included

- `EventDispatcher` and base event contracts.
- `EventPublisher` and `EventPublisherModule`.
- DI tokens (`BaseToken`).
- Outbox module and processor (`messaging`).
- `DbContext` for event registration/reading.

## DI Token Example

```ts
import { BaseToken } from "@statter/events"

@Injectable()
export class ExampleService {
  constructor(@Inject(BaseToken.EVENT_DISPATCHER) private readonly dispatcher: unknown) {}
}
```

## Build

```bash
npm run build -w @statter/events
```
npm package: @statter/mailer
Description: statter mailer
Author: Statter 🚀
Latest version: 1.0.3

# @statter/mailer

SMTP mailer for NestJS built on `nodemailer`.

## What Is Included

- `MailerModule` (global NestJS module).
- `MailerService` with a `sendMail` method.
- `MailerInput` type for the email payload.

## Important

Current `src/index.ts` is empty, so root-level package exports are not configured yet.

## Usage Example in Monorepo

```ts
import { MailerService } from "./mailer.service"

await mailerService.sendMail({
  to: "user@example.com",
  subject: "Hello",
  html: "<b>Welcome</b>"
})
```

## Build

```bash
npm run build -w @statter/mailer
```