# magicbell

> MagicBell API wrapper

Latest version **4.5.1** (published 2026-03-20) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.5.1 |
| Published | 2026-03-20 |
| First published | 2022-09-20 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 925.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 31 |
| Author | MagicBell |
| Maintainers | unamashana, smeijer, mattoxley |
| Keywords | magicbell, notifications, notification center, notification inbox, api |

## Links

- npm: https://www.npmjs.com/package/magicbell
- Repository: https://github.com/magicbell/magicbell-js
- Homepage: https://www.magicbell.com/docs/libraries
- Issues: https://github.com/magicbell/magicbell-js/issues
- npm.io page: https://npm.io/package/magicbell

## Dependencies (6)

- [debug](https://npm.io/package/debug.md) ^4.4.0
- [url-join](https://npm.io/package/url-join.md) ^4.0.1
- [@smeijer/ky](https://npm.io/package/@smeijer/ky.md) ^1.8.1
- [fetch-addons](https://npm.io/package/fetch-addons.md) ^1.3.0
- [json-schema-to-ts](https://npm.io/package/json-schema-to-ts.md) 3.1.0
- [reconnecting-websocket](https://npm.io/package/reconnecting-websocket.md) ^4.4.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 4.5.1 (latest) — 2026-03-20
- 4.5.0 — 2025-07-02
- 4.4.1 — 2025-03-28
- 4.4.0 — 2025-03-28
- 4.3.0 — 2025-03-28
- 4.2.0 — 2025-02-14
- 4.1.0 — 2024-09-16
- 4.0.0 — 2024-09-02
- 3.3.0 — 2024-07-19
- 3.2.1 — 2024-07-03
- 3.2.0 — 2024-06-18
- 3.1.4 — 2024-05-24
- 3.1.3 — 2024-05-16
- 3.1.2 — 2024-03-27
- 3.1.1 — 2024-02-13
- … 31 more at https://npm.io/package/magicbell/versions

## README

# `magicbell`

This package is deprecated. Please use [`magicbell-js`](https://www.magicbell.com/docs/libraries/magicbell-js) instead.

**Project Client**

```diff
- import { ProjectClient } from 'magicbell/project-client';
+ import { Client } from 'magicbell-js/project-client';

- const magicbell = new ProjectClient({
-  apiKey: 'your-api-key',
-  apiSecret: 'your-api-secret',
- });

+ const client = new Client({
+   token: 'your-access-token',
+ });
```

**User Client**

```diff
- import { Userclient } from 'magicbell/user-client';
+ import { Client } from 'magicbell-js/project-client';

- const magicbell = new Userclient({
-  apiKey: 'your-api-key',
-  apiSecret: 'your-api-secret',
- });

+ const client = new Client({
+   token: 'your-user-jwt',
+ });
```

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