@layers/client
v0.1.1-alpha.1
Published
Javascript Client SDK for Layers Analytics
Keywords
Readme
@layers/client
JavaScript client SDK for Layers Analytics. Suitable for web or Node environments.
Install
npm install @layers/client
# or
pnpm add @layers/clientQuick start
import { LayersClient } from '@layers/client';
const client = new LayersClient({
apiKey: 'your-api-key',
appId: 'your-app-id',
environment: 'production',
enableDebug: true
});
await client.init();
await client.track('app_open', { source: 'home' });Links
- Repo: https://github.com/layersai/sdks
- Issues: https://github.com/layersai/sdks/issues
License
ISC
