{"id":22959197,"url":"https://github.com/log10-io/log10js","last_synced_at":"2025-08-24T22:33:34.544Z","repository":{"id":160732267,"uuid":"632284342","full_name":"log10-io/log10js","owner":"log10-io","description":"JavaScript client library for managing your LLM data in one place","archived":false,"fork":false,"pushed_at":"2023-05-03T00:54:19.000Z","size":21,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-14T00:39:04.691Z","etag":null,"topics":["ai","artificial-intelligence","autonomous-agents","debugging","javascript","langchain","langchain-js","llmops","logging","monitoring","openai","openai-api","rlhf"],"latest_commit_sha":null,"homepage":"https://log10.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/log10-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-25T05:11:22.000Z","updated_at":"2024-11-28T07:20:58.000Z","dependencies_parsed_at":"2023-05-14T17:15:29.932Z","dependency_job_id":null,"html_url":"https://github.com/log10-io/log10js","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"4f09fc98ed029124292992d70c5a3b00af34ff1e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log10-io%2Flog10js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log10-io%2Flog10js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log10-io%2Flog10js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log10-io%2Flog10js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/log10-io","download_url":"https://codeload.github.com/log10-io/log10js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230848329,"owners_count":18289481,"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","artificial-intelligence","autonomous-agents","debugging","javascript","langchain","langchain-js","llmops","logging","monitoring","openai","openai-api","rlhf"],"created_at":"2024-12-14T18:16:15.042Z","updated_at":"2024-12-22T15:27:14.549Z","avatar_url":"https://github.com/log10-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log10\n\n⚡ Unified LLM data management ⚡\n\n\u003c!-- [![pypi](https://github.com/log10-io/log10/actions/workflows/release.yml/badge.svg)](https://github.com/log10-io/log10/actions/workflows/release.yml) --\u003e\n[![](https://dcbadge.vercel.app/api/server/CZQvnuRV94?compact=true\u0026style=flat)](https://discord.gg/CZQvnuRV94)\n\n## Quick Install\n\n``` bash\nnpm install log10js\nyarn add log10js\n```\n\n## 🤔 What is this?\n\nA JavaScript integration to manage your LLM data.\n\n```javascript\nconst { Configuration, OpenAIApi } = require(\"openai\");\nconst log10 = require(\"log10js\");\n\nconst configuration = new Configuration({\n  apiKey: process.env.OPENAI_API_KEY,\n});\n\nconst log10_OpenAIApi = log10(OpenAIApi);\nconst openai = new log10_OpenAIApi(configuration);\n```\n\nAccess your LLM data at [log10.io](https://log10.io)\n\n[See full example](./examples/completions.js)\n\n\n## 🚀 What can this help with?\n\n**🔍🐞 Prompt chain debugging**\n\nPrompt chains such as those in [Langchain](https://github.com/hwchase17/langchain) can be difficult to debug. Log10 provides prompt provenance, session tracking and call stack functionality to help debug chains.\n\n```javascript\nconst { OpenAI } = require(\"langchain/llms/openai\");\nconst { Configuration, OpenAIApi } = require(\"openai\");\nconst log10 = require(\"log10js\");\n\nconst log10_OpenAIApi = log10(OpenAIApi);\nconst openai = new log10_OpenAIApi(\n  new Configuration({\n    apiKey: process.env.OPENAI_API_KEY,\n  })\n);\nlet model = new OpenAI();\nmodel.client = openai;\n\n// Run any chain here...\n```\n\n[See full example](./examples/langchain_summarize.js)\n\n**📝📊 Logging**\n\nLog all your OpenAI calls to compare and find the best prompts, store feedback, collect latency and usage metrics, and perform analytics and compliance monitoring of LLM powered features.\n\n**🧠🔁 Readiness for RLHF \u0026 self hosting**\n\nUse your data and feedback from users to fine-tune custom models with RLHF with the option of building and deploying more reliable, accurate and efficient self-hosted models. \n\n**👥🤝 Collaboration**\n\nCreate flexible groups to share and collaborate over all of the above features\n\n## ⚙️ Setup\n\nCreate a free account at [log10.io](https://log10.io) to get a `LOG10_TOKEN` and a `LOG10_ORG_ID`. Please add these to your environment along with `LOG10_URL=https://log10.io`. \n\n## 💬 Community\n\nWe welcome community participation and feedback. Please leave an issue, submit a PR or join our [Discord](https://discord.gg/CZQvnuRV94).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog10-io%2Flog10js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog10-io%2Flog10js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog10-io%2Flog10js/lists"}