@aui-x/prism has 1,963 recorded weekly downloads on npm, a decrease of 16.7% over the past 30 days, ranking #1291 of 2,256 tracked listings.
About @aui-x/prism
@auix/prism
LLM tracing SDK for auix — collect LLM traces with zero friction.
Supports Vercel AI SDK, OpenAI, Anthropic, and manual tracing.
Install
Peer dependencies (install only what you use):
• ai (>=6.0.0) + @ai-sdk/provider (>=2.0.0) — for AI SDK integration • openai (>=4.0.0) — for OpenAI integration • @anthropic-ai/sdk (>=0.30.0) — for Anthropic integration
Quick Start
AI SDK (recommended)
prismAISDK wraps any AI SDK model and automatically captures traces, token usage, latency, and tool calls. It creates a root trace internally and returns { model, end }:
Multi-step tool use is handled correctly — each LLM call becomes a child span under the root trace, and token usage is automatically aggregated:
OpenAI
prismOpenAI returns a proxied client that traces chat.completions.create calls:
Anthropic
prismAnthropic returns a proxied client that traces messages.create calls:
Manual Tracing
For full control over trace structure:
API
new AuixPrism(config)
| Option | Type | Default | Description |
| apiKey | string | required | Your auix API key | | baseUrl | string | "https://api.auix.dev" | API endpoint | | sessionId | string | — | Group traces under a session | | transport | (events) => Promise | — | Custom transport (bypasses HTTP) | | onFlushError | (error) => void | — | Called when flush fails after retry |
prismAISDK(tracer, model, options?)
Returns { model, end }. The model is a wrapped AI SDK model. Call end(opts?) after the generation completes to finalize the root trace.
| Option | Type | Description |
| name | string | Trace name (defaults to model ID) | | tags | string[] | Tags for filtering | | metadata | Record | Arbitrary metadata | | endUserId | string | End user identifier |
prismOpenAI(tracer, client, options?)
Returns a proxied OpenAI client. Same options as prismAISDK plus parentTraceId for nesting under an existing trace.
prismAnthropic(tracer, client, options?)
Returns a proxied Anthropic client. Same options as prismOpenAI.
tracer.startTrace(options)
Returns a TraceHandle for manual tracing.
trace.startSpan(options)
Creates a child span. type can be "llm", "tool", "retrieval", or "custom".
tracer.destroy()
Flushes pending events and stops the background timer. Call this when done tracing.
License
Proprietary — see LICENSE.
Description from the npm listing.
- ai
- tracing
- observability
- ai-sdk
- llm
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm AI SDKs plugins
All 20 @aui-x/prism alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@aui-x/prism. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.