Skip to content

Installation

Terminal window
npm install auralog-sdk
Terminal window
yarn add auralog-sdk
Terminal window
pnpm add auralog-sdk

Then import and initialize:

import { init, auralog } from "auralog-sdk";
init({ apiKey: "aura_your_api_key" });

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.

  • Node.js: 18+ (uses fetch globally)
  • Browsers: All modern browsers (Chrome, Firefox, Safari, Edge)
  • Cloudflare Workers: Supported — see Environments for the lazy init pattern.