{"id":18737617,"url":"https://github.com/lunary-ai/lunary-js","last_synced_at":"2025-06-18T22:40:44.931Z","repository":{"id":170095970,"uuid":"640253108","full_name":"lunary-ai/lunary-js","owner":"lunary-ai","description":"Lunary AI JS Client (analytics and logging for AI apps) 📈","archived":false,"fork":false,"pushed_at":"2025-02-06T21:00:48.000Z","size":1584,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T23:51:47.218Z","etag":null,"topics":["ai","analytics","langchain-js","logging","openai"],"latest_commit_sha":null,"homepage":"https://lunary.ai/docs/js","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lunary-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-13T13:34:47.000Z","updated_at":"2025-02-06T21:00:52.000Z","dependencies_parsed_at":"2024-02-20T18:56:09.704Z","dependency_job_id":"b06e8486-1583-473c-8b7a-a7bf17468e31","html_url":"https://github.com/lunary-ai/lunary-js","commit_stats":null,"previous_names":["llmonitor/llmonitor-js","lunary-ai/lunary-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunary-ai%2Flunary-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunary-ai%2Flunary-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunary-ai%2Flunary-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunary-ai%2Flunary-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lunary-ai","download_url":"https://codeload.github.com/lunary-ai/lunary-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248621303,"owners_count":21134803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","analytics","langchain-js","logging","openai"],"created_at":"2024-11-07T15:26:00.152Z","updated_at":"2025-04-12T19:32:26.754Z","avatar_url":"https://github.com/lunary-ai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://lunary.ai/logo.png\" style='border-radius: 12px;' width=\"50\"/\u003e \n\u003ch1\u003eLunary JS SDK\u003c/h1\u003e\n\n**📈 JavaScript monitoring for AI apps and agent**\n\n[website](https://lunary.ai) - [docs](https://lunary.ai/docs/js/) - [demo](https://app.lunary.ai/demo) - [![npm version](https://badge.fury.io/js/lunary.svg)](https://badge.fury.io/js/lunary)\n\n---\n\n\u003c/div\u003e\n\nUse it with any LLM model and custom agents (not limited to OpenAI).\n\nThis is a typed JS library compatible with Node.js, Deno, Vercel Edge functions and Cloudflare Workers.\n\nIt is compatible with Langchain JS, AutoGPT and other libraries.\n\nTo get started, get a project ID by registering [here](https://lunary.ai).\n\n## 🛠️ Installation\n\n```bash\nnpm install lunary\n```\n\n## 🚀 Basic Usage with OpenAI\n\n```javascript\nimport { monitorOpenAI } from \"lunary/openai\"\n\n// This extends the openai object with the monitor\nconst openai = monitorOpenAI(new OpenAI())\n\n// Use OpenAI as usual\nconst result = await openai.chat.completions.create({\n  messages: [\n    {\n      role: \"user\",\n      content: \"Hello!\",\n    },\n  ],\n})\n\nconsole.log(result.choices[0])\n```\n\n## 📖 Documentation\n\nFull docs are available [here](https://lunary.ai/docs/js).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunary-ai%2Flunary-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunary-ai%2Flunary-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunary-ai%2Flunary-js/lists"}