rybbit.ts
v1.0.10
Published
TypeScript wrapper for the rybbit.com API to be used on server runtimes such as Node.
Maintainers
Readme

A TypeScript wrapper for rybbit.com API.
npm install rybbit.ts
# bun install rybbit.ts
# deno install npm:rybbit.tsExample
import rybbit from 'rybbit.ts';
// create a rest instance
const analytics = new rybbit({
domain: 'https://example.rybbit.com',
siteId: 1,
apiKey: process.env.RYBBIT_API_KEY
});
// track a custom event
const result = await analytics.track({
type: 'custom_event',
ip_address: '8.8.8.8',
event_name: 'server sided event',
properties: { test_property: 'yes' }
});
// Result: { success: true }
For more information, please see the documentation: rybbit.lovely.sh
