https://github.com/vemetric/vemetric-node
The Vemetric SDK for Node.js, Bun, Deno
https://github.com/vemetric/vemetric-node
bun deno node-js npm sdk typescript vemetric
Last synced: 3 months ago
JSON representation
The Vemetric SDK for Node.js, Bun, Deno
- Host: GitHub
- URL: https://github.com/vemetric/vemetric-node
- Owner: Vemetric
- License: mit
- Created: 2025-05-05T12:02:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-05T13:08:12.000Z (about 1 year ago)
- Last Synced: 2025-05-05T13:53:39.445Z (about 1 year ago)
- Topics: bun, deno, node-js, npm, sdk, typescript, vemetric
- Language: TypeScript
- Homepage: https://vemetric.com/docs/sdks/nodejs
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# The Vemetric SDK for Node.js, Bun and Deno
Learn more about the Vemetric Node.js SDK in the [official docs](https://vemetric.com/docs/sdks/nodejs).
You can also checkout the [NPM Package](https://www.npmjs.com/package/@vemetric/node).
[](https://www.npmjs.com/package/@vemetric/node)
## Installation
```bash
npm install @vemetric/node
```
## Usage
```ts
import { Vemetric } from '@vemetric/node';
const vemetric = new Vemetric({
token: 'YOUR_PROJECT_TOKEN',
});
// Track an event
await vemetric.trackEvent('MyCustomEvent', {
userIdentifier: 'user-id',
userDisplayName: 'John Doe',
eventData: { key: 'value' },
});
// Update user data
await vemetric.updateUser({
userIdentifier: 'user-id',
userData: {
set: { key1: 'value1' },
setOnce: { key2: 'value2' },
unset: ['key3'],
},
});
```
## Configuration
The client can be configured with the following options:
```ts
const vemetric = new Vemetric({
token: 'YOUR_PROJECT_TOKEN', // Required
host: 'https://hub.vemetric.com', // Optional, defaults to https://hub.vemetric.com
});
```