# standardwebhooks

> Standard Webhooks for TypeScript

Latest version **1.1.1** (published 2026-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install standardwebhooks
pnpm add standardwebhooks
yarn add standardwebhooks
bun add standardwebhooks
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2026-08-28 |
| First published | 2024-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1745 |
| Author | Standard Webhooks |
| Maintainers | tasn |
| Keywords | webhooks, typescript |

## Links

- npm: https://www.npmjs.com/package/standardwebhooks
- Repository: https://github.com/standard-webhooks/standard-webhooks
- Homepage: https://github.com/standard-webhooks/standard-webhooks/tree/main/libraries/javascript
- Issues: https://github.com/standard-webhooks/standard-webhooks/issues
- npm.io page: https://npm.io/package/standardwebhooks

## Dependencies (2)

- [fast-sha256](https://npm.io/package/fast-sha256.md) ^1.3.0
- [@stablelib/base64](https://npm.io/package/@stablelib/base64.md) ^1.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2026-08-28
- 1.1.0 — 2026-08-28
- 1.0.0 — 2024-03-04

## README

Typescript/Javascript library for Standard Webhooks 

# Example

Verifying a webhook payload:

```javascript
import { Webhook } from "standardwebhooks"

const wh = new Webhook(base64_secret);
wh.verify(webhook_payload, webhook_headers);
```

# Development

## Requirements

 - node
 - npm

## Building the library
```sh
npm install
npm run build
```

## Contributing

Before opening a PR be sure to format your code!

```sh
npm run check:fix
```

## Running Tests

Simply run:

```sh
npm test
```

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