@tracemark/node
v0.1.0
Published
Node.js SDK for tracemark, self-hosted product analytics
Readme
@tracemark/node
Server SDK for tracemark: analytics, feature flags, error tracking and AI observability. Supports Node.js 20+, Bun, Deno and edge runtimes.
npm install @tracemark/nodeimport { Tracemark } from '@tracemark/node';
const tracemark = new Tracemark({
apiKey: 'fp_pub_…',
host: 'https://analytics.example.com'
});
tracemark.capture({ distinctId: 'user_123', event: 'invoice_paid' });
await tracemark.shutdown();Requires a running tracemark instance and its project key. Includes helpers for Hono, Express, Fastify and Elysia, and AI helpers at @tracemark/node/ai.
SDK documentation · AI observability
MIT licensed.
