Skip to content

Lunary AI JS Client (analytics and logging for AI apps) ๐Ÿ“ˆ

Notifications You must be signed in to change notification settings

lunary-ai/lunary-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Lunary JS SDK

๐Ÿ“ˆ JavaScript monitoring for AI apps and agent

website - docs - demo - npm version


Use it with any LLM model and custom agents (not limited to OpenAI).

This is a typed JS library compatible with Node.js, Deno, Vercel Edge functions and Cloudflare Workers.

It is compatible with Langchain JS, AutoGPT and other libraries.

To get started, get a project ID by registering here.

๐Ÿ› ๏ธ Installation

npm install lunary

๐Ÿš€ Basic Usage with OpenAI

import { monitorOpenAI } from "lunary/openai"

// This extends the openai object with the monitor
const openai = monitorOpenAI(new OpenAI())

// Use OpenAI as usual
const result = await openai.chat.completions.create({
  messages: [
    {
      role: "user",
      content: "Hello!",
    },
  ],
})

console.log(result.choices[0])

๐Ÿ“– Documentation

Full docs are available here.

About

Lunary AI JS Client (analytics and logging for AI apps) ๐Ÿ“ˆ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published