@pushc/core
v0.1.0
Published
Runtime-neutral message push orchestration for pushc
Readme
@pushc/core
Runtime-neutral registries and orchestration primitives for pushc.
Installtion
npm i @pushc/core @pushc/adapter-webhookUsage
import { PushClient } from '@pushc/core';
import { WebhookAdapter } from '@pushc/adapter-webhook';
const client = new PushClient();
client.adapters.register(
'bark',
new WebhookAdapter({
url: 'https://api.day.app/push',
request: {
content_type: 'application/json',
body: {
device_key: process.env.BARK_DEVICE_KEY!,
body: '{{message}}',
title: '{{title:-pushc}}',
group: '{{param.group:-pushc}}',
level: 'active'
}
}
})
);
await client.send('bark', {
title: 'Production',
content: ['{{title}} build ', 'completed for {{param.environment}}'],
param: new Map([
['environment', 'production'],
['group', 'deployments']
])
});
await client.destroy();License
MIT License © 2026 OneKuma
