@nyraxis/sdk
v0.2.0
Published
Universal AI agent observability & governance for JavaScript/TypeScript — trace every LLM provider and framework with 17 built-in governance providers
Maintainers
Readme
@nyraxis/sdk
Universal AI agent observability for JavaScript/TypeScript.
Automatically traces every LLM provider, framework, and vector DB.
Install
npm install @nyraxis/sdkQuick Start
import { init, shutdown } from "@nyraxis/sdk";
// Initialize once at app startup
init({
apiKey: "nyx_...",
baseUrl: "https://your-nyraxis-backend.com",
agentName: "my-agent",
});
// All LLM calls are now auto-traced — no code changes needed.
// Works with: OpenAI, Anthropic, Google, Cohere, Mistral, Bedrock, etc.
// Before process exit:
await shutdown();Trace Grouping
import { withWorkflow, withTask } from "@nyraxis/sdk";
// Group related LLM calls into a single trace
const result = await withWorkflow({ name: "research-agent" }, async () => {
const summary = await withTask({ name: "summarize" }, async () => {
return await openai.chat.completions.create({ ... });
});
return summary;
});Auto-Instrumented
LLM Providers
OpenAI, Anthropic, Google (Gemini/PaLM/VertexAI), Cohere, Mistral, AWS Bedrock, Azure OpenAI, Ollama, Together AI, Groq, Replicate, HuggingFace, AI21, Aleph Alpha, DeepSeek, Fireworks, Perplexity, WatsonX, SageMaker
Frameworks
LangChain.js, Vercel AI SDK
Vector Databases
Pinecone, Chroma, Weaviate, Qdrant, Milvus, PGVector, Redis, LanceDB
License
MIT
