A TypeScript wrapper for rybbit.com API.
npm install rybbit.ts
# bun install rybbit.ts
# deno install npm:rybbit.tsimport 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

