@glyphhq/node
v0.2.1
Published
Glyph Node.js SDK.
Readme
@glyphhq/node
Node.js SDK for sending server-side customer events to Glyph.
import { GlyphNode } from "@glyphhq/node";
const glyph = new GlyphNode({ writeKey: process.env.GLYPH_WRITE_KEY! });
await glyph.profile("user_123", {
email: "[email protected]",
plan: "pro",
});
await glyph.track("user_123", "Invoice paid", {
amount: 4900,
currency: "USD",
});
await glyph.flush();Use a glyph_pk_... key for live customer traffic or a glyph_test_... key to
verify an integration in Glyph's isolated test environment.
profile() requires a non-empty email trait because Glyph uses email as a
primary customer identity and communication channel.
