Skip to content

jacobhumston/rybbit.ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rybbit.ts

A TypeScript wrapper for rybbit.com API.

npm install rybbit.ts
# bun install rybbit.ts
# deno install npm:rybbit.ts

Example

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 }

custom-event

For more information, please see the documentation: rybbit.lovely.sh

About

rybbit.ts is a TypeScript wrapper for the rybbit.com API to be used on server runtimes such as Node.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors