New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@aioproductoscom/node

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aioproductoscom/node

AIOProductOS server-side analytics for Node.js — identity-first backend events (signup, payment, subscription, churn) onto the AIOProductOS spine. Zero dependencies.

latest
npmnpm
Version
0.1.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@aioproductoscom/node

Server-side analytics for AIOProductOS. Send identity-first backend events — signup, payment, subscription, churn — straight to the AIOProductOS spine, where they join the same customer record as your web/product analytics, feedback, and revenue. Zero dependencies, Node 18+.

Install

npm install @aioproductoscom/node

Quick start

import { ProductOS } from "@aioproductoscom/node";

// Use a SECRET ingest key (sk_live_…) from your AIOProductOS workspace —
// server-side only, never ship to a browser.
const pos = new ProductOS({ apiKey: process.env.PRODUCTOS_KEY! });

// A backend truth event the browser can't be trusted to report:
pos.capture({
  event: "subscription_started",
  distinctId: user.id,
  properties: { plan: "scale", mrr: 99, currency: "EUR" },
});

pos.identify({ distinctId: user.id, traits: { email: user.email, plan: "scale" } });
pos.revenue(user.id, 99, "EUR", { plan: "scale" });

// On graceful shutdown, flush anything queued:
await pos.shutdown();

Events are queued and flushed in batches automatically (and on shutdown()), so calls never block your request path. The region is read from your key.

Why server-side

A browser can drop events (ad blockers, closed tabs) and can't be trusted for money. Revenue, signups, and subscription changes are reported from your backend — so the numbers your dashboards, funnels, and AI teammates reason about are real.

Keywords

analytics

FAQs

Package last updated on 11 Jul 2026

Related posts