New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@mindlytics/core

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mindlytics/core

The core package for the Mindlytics TypeScript SDK.

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
-66.67%
Maintainers
2
Weekly downloads
 
Created
Source

@mindlytics/core

The core package for the Mindlytics TypeScript SDK.

Installation

npm install @mindlytics/core

Usage

import { MindlyticsClient } from '@mindlytics/core';

const client = new MindlyticsClient({
  apiKey: 'your-api-key',
  projectId: 'your-project-id',
});

const { data, error } = await client.startSession({
  session_id: 'your-session-id',
});

const { data, error } = await client.endSession({
  session_id: 'your-session-id',
});

const { data, error } = await client.trackEvent({
  session_id: 'your-session-id',
  event: 'your-event',
  properties: {
    user: 'your-user',
  },
});

Context Manager

import { MindlyticsClient } from '@mindlytics/core';

const client = new MindlyticsClient({
  apiKey: 'your-api-key',
  projectId: 'your-project-id',
});

const session = await client.startSession({
  session_id: 'your-session-id',
});

await session.end();

FAQs

Package last updated on 21 Jul 2025

Related posts