# NodeTuts inspectable examples

These original ESM examples target Node.js 24+. They are teaching components,
not a complete production service. Runtimes actually exercised: Node.js 24.22.3
(first edition) and 22.23.4 (22.18 or later is needed for the command-line demos). No production email or provider call was used in QA.

## Files

- `retry-policy.mjs`: bounded retries, explicit retry decisions, deadline and cancellation.
- `webhook-verify.mjs`: raw-byte HMAC verification for the **educational** timestamp/body format, freshness and malformed-signature handling.
- `concurrency-queue.mjs`: bounded asynchronous work and cooperative cancellation.
- `oveyon-send.mjs`: fixed-endpoint transactional-email adapter; inspected with mocked transport, not a live account.

Run an example with `node filename.mjs`. The examples use synthetic data and do
not perform a live email send. Import their functions to inspect or adapt them.
Do not paste credentials into a browser, commit them to source or include them in logs.

The HMAC format in the browser lab is educational. The webhook field guide also
shows a GitHub-specific example. A provider's header encoding, signed byte sequence,
timestamp and replay rules must be followed exactly; do not mix these contracts.

A deadline/cancellation signal only bounds callbacks that cooperate with it.
Add a durable queue/inbox/outbox, transaction boundaries, rate limits and deployment
controls appropriate to your application. A valid signature is not business authorization.

The complete project includes automated tests. Run `npm test` at its root.
API contract reference for the Oveyon adapter: https://api.oveyon.com/

## License

Original code examples in this directory are offered under the MIT license in
`../LICENSE-CODE`. Historical Node Tuts code is not included.
