Socket
Socket
Sign inDemoInstall

lunary

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lunary

Lunary is an open-source platform for AI developers.


Version published
Weekly downloads
4.5K
decreased by-9.65%
Maintainers
2
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 26 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc