Installation
Package manager
Section titled “Package manager”npm install auralog-sdkyarn add auralog-sdkpnpm add auralog-sdkThen import and initialize:
import { init, auralog } from "auralog-sdk";
init({ apiKey: "aura_your_api_key" });IIFE bundle (no build tool)
Section titled “IIFE bundle (no build tool)”For projects without a bundler, use the IIFE build directly in a <script> tag:
<script src="https://unpkg.com/auralog-sdk/dist/auralog.iife.js"></script><script> Auralog.init({ apiKey: "aura_your_api_key" }); Auralog.auralog.info("Hello from the browser");</script>The IIFE bundle exposes a global Auralog object with init, shutdown, and auralog properties.
Requirements
Section titled “Requirements”- Node.js: 18+ (uses
fetchglobally) - Browsers: All modern browsers (Chrome, Firefox, Safari, Edge)
- Cloudflare Workers: Supported — see Environments for the lazy init pattern.