Skip to content
beepr logobeepr logo

beepr

One signal. Every listener.

Typed events and composable notification adapters for your application.

beepr is not published to npm yet. Install it from GitHub:

Terminal window
pnpm add github:techmefr/beepr
Terminal window
import { createNotify, mergeEventHandlers } from 'beepr'
const global = createNotify({
onError: error => console.error('global', error.message),
})
const local = createNotify({
onSuccess: data => console.log('ok', data),
})
const handler = mergeEventHandlers(global, local)
handler?.('success', { id: 1 })

One handler contract

A single SdkEventHandler shape, (event, data) => void, for request · success · error · data · connected · disconnected.

Redacted by default

Every payload is masked before it reaches an adapter. Secrets stay out of your logs.

Gated debug

Debug output only runs in environments you allow. Never in production.

Zero framework lock-in

No runtime dependency. Works alone, or beside nexdk.

Each library works on its own. None of them depends on another.

Project Role
nexdk One resource grammar for REST, GraphQL and WebSocket backends.
shamock Schema-validated mock data, fixtures and offline fallback.
dialectr One query builder that compiles to lomkit, Strapi and PocketBase.