{"_id":"@mlflow/core","_rev":"5-8230fafa6a2f82877e01062ad313fe3f","name":"@mlflow/core","dist-tags":{"rc":"0.3.0-rc.0","latest":"0.5.0"},"versions":{"0.2.0":{"name":"@mlflow/core","version":"0.2.0","keywords":["mlflow","tracing","observability","opentelemetry","llm","javascript","typescript"],"author":{"url":"https://mlflow.org/","name":"MLflow"},"license":"Apache-2.0","_id":"@mlflow/core@0.2.0","maintainers":[{"name":"yuki_watanabe","email":"yuki.watanabe@databricks.com"}],"homepage":"https://mlflow.org/","bugs":{"url":"https://github.com/mlflow/mlflow/issues"},"dist":{"shasum":"5dd0ec57c765f726eb900fab09d972ddc89733d8","tarball":"https://registry.npmjs.org/@mlflow/core/-/core-0.2.0.tgz","fileCount":62,"integrity":"sha512-CZ/J3HN8WZ836rvmlFsqa3uPk9YrrzXXex5Gjv602bSzVVzzXaXkViNm8BszMwIZt9Xew205u6G2cAaBRD3GkA==","signatures":[{"sig":"MEYCIQCClYYUsdaX5nliVq4J7NjUip8vYaHTu9rlYfTns0vE6AIhAMZgiJbMgppGHz9plSIoyjmHcRZLewdMBOaQ0heESi1w","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":221956},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18"},"scripts":{"lint":"eslint . --ext .ts --max-warnings 0","test":"jest","build":"tsc","format":"prettier --write .","lint:fix":"eslint . --ext .ts --fix","format:check":"prettier --check ."},"_npmUser":{"name":"yuki_watanabe","email":"yuki.watanabe@databricks.com"},"repository":{"url":"git+https://github.com/mlflow/mlflow.git","type":"git"},"_npmVersion":"11.3.0","description":"TypeScript implementation of MLflow Tracing SDK for LLM observability","directories":{},"_nodeVersion":"24.1.0","dependencies":{"ini":"^5.0.0","bignumber.js":"^9.0.0","@opentelemetry/api":"^1.9.0","fast-safe-stringify":"^2.1.1","@opentelemetry/sdk-node":"^0.205.0","@databricks/sdk-experimental":"0.15.0"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.10.3","tsx":"^4.7.0","jest":"^29.6.2","eslint":"^8.57.1","ts-jest":"^29.1.1","prettier":"^3.5.3","@types/ini":"^4.1.1","typescript":"^5.8.3","@types/jest":"^29.5.3","@types/node":"^20.4.5","whatwg-fetch":"^3.6.20","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.2.0_1772190887790_0.8455068868583877","host":"s3://npm-registry-packages-npm-production"}},"0.3.0-rc.0":{"name":"@mlflow/core","version":"0.3.0-rc.0","keywords":["mlflow","tracing","observability","opentelemetry","llm","javascript","typescript"],"author":{"url":"https://mlflow.org/","name":"MLflow"},"license":"Apache-2.0","_id":"@mlflow/core@0.3.0-rc.0","maintainers":[{"name":"yuki_watanabe","email":"yuki.watanabe@databricks.com"}],"homepage":"https://mlflow.org/","bugs":{"url":"https://github.com/mlflow/mlflow/issues"},"bin":{"mlflow-trace-daemon":"bundle/daemon.cjs"},"dist":{"shasum":"e1071c60785e50c5e311486acad16a36276aec39","tarball":"https://registry.npmjs.org/@mlflow/core/-/core-0.3.0-rc.0.tgz","fileCount":101,"integrity":"sha512-+zIW1KlLuNZt9bo1xunXuD9727VE8MVDGKoUNsqYuFk/RWrkuvY//FW6EmlwIKr4gI2PJ7hAIshUA0P4s4q64A==","signatures":[{"sig":"MEQCIHPUGZieIiawKUzWm/LkELlcmq4z7wxkMYZl1PMbmk1MAiA+3a99JHbSlIkJ7X+suOryV3zOFkRzMc2dH7CyV9sjrg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4564693},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18"},"gitHead":"698eba177215764c11369c6716c93607750c97c8","scripts":{"lint":"eslint . --ext .ts --max-warnings 0","test":"jest","build":"tsc && node esbuild.config.mjs","format":"prettier --write .","lint:fix":"eslint . --ext .ts --fix","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1277ffd5-9488-45a4-87f6-c61eb75c6235"}},"repository":{"url":"git+https://github.com/mlflow/mlflow.git","type":"git"},"_npmVersion":"11.5.1","description":"TypeScript implementation of MLflow Tracing SDK for LLM observability","directories":{},"_nodeVersion":"22.22.3","dependencies":{"ini":"^5.0.0","bignumber.js":"^9.0.0","@opentelemetry/api":"^1.9.0","fast-safe-stringify":"^2.1.1","@opentelemetry/sdk-node":"^0.205.0","@databricks/sdk-experimental":"0.15.0","@opentelemetry/sdk-trace-base":"^2.1.0","@opentelemetry/exporter-trace-otlp-proto":"^0.205.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"msw":"^2.10.3","tsx":"^4.7.0","jest":"^29.6.2","eslint":"^8.57.1","esbuild":"^0.25.0","ts-jest":"^29.1.1","prettier":"^3.5.3","@types/ini":"^4.1.1","typescript":"^5.8.3","@types/jest":"^29.5.3","@types/node":"^20.4.5","whatwg-fetch":"^3.6.20","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.0-rc.0_1780544190950_0.7417420651914977","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@mlflow/core","version":"0.3.0","keywords":["mlflow","tracing","observability","opentelemetry","llm","javascript","typescript"],"author":{"url":"https://mlflow.org/","name":"MLflow"},"license":"Apache-2.0","_id":"@mlflow/core@0.3.0","maintainers":[{"name":"yuki_watanabe","email":"yuki.watanabe@databricks.com"}],"homepage":"https://mlflow.org/","bugs":{"url":"https://github.com/mlflow/mlflow/issues"},"bin":{"mlflow-trace-daemon":"bundle/daemon.cjs"},"dist":{"shasum":"7618cdd8009acb350b41e6f5c9ca593beb33b05d","tarball":"https://registry.npmjs.org/@mlflow/core/-/core-0.3.0.tgz","fileCount":103,"integrity":"sha512-KfLwQv9wvgA9eo0H/S+1JRrfb1+kv1L0rWenSaxQS+RlCJ8hEg3uc/sai0SdNB4SOqkkJNBM5WMD02iI22walg==","signatures":[{"sig":"MEYCIQCoaPiaxP/GHIvAv2f1YpCxiAkzQMKrR/2w8nI1Kr4E9wIhAKsAFHycffQxEekm882vFz75klHgntzBf38H8yPVBoUj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4601658},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18"},"gitHead":"9369186bc80eba725a1648c9a6b24dca666ac77a","scripts":{"lint":"eslint . --ext .ts --max-warnings 0","test":"jest","build":"tsc && node esbuild.config.mjs","format":"prettier --write .","lint:fix":"eslint . --ext .ts --fix","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1277ffd5-9488-45a4-87f6-c61eb75c6235"}},"repository":{"url":"git+https://github.com/mlflow/mlflow.git","type":"git"},"_npmVersion":"11.5.1","description":"TypeScript implementation of MLflow Tracing SDK for LLM observability","directories":{},"_nodeVersion":"22.23.1","dependencies":{"ini":"^5.0.0","bignumber.js":"^9.0.0","@opentelemetry/api":"^1.9.0","fast-safe-stringify":"^2.1.1","@opentelemetry/sdk-node":"^0.205.0","@databricks/sdk-experimental":"0.15.0","@opentelemetry/sdk-trace-base":"^2.1.0","@opentelemetry/otlp-transformer":"^0.205.0","@opentelemetry/exporter-trace-otlp-proto":"^0.205.0"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.10.3","tsx":"^4.7.0","jest":"^29.6.2","eslint":"^8.57.1","esbuild":"^0.25.0","ts-jest":"^29.1.1","prettier":"^3.5.3","@types/ini":"^4.1.1","typescript":"^5.8.3","@types/jest":"^29.5.3","@types/node":"^20.4.5","whatwg-fetch":"^3.6.20","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.0_1783408781852_0.9451185959822481","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@mlflow/core","version":"0.4.0","keywords":["mlflow","tracing","observability","opentelemetry","llm","javascript","typescript"],"author":{"url":"https://mlflow.org/","name":"MLflow"},"license":"Apache-2.0","_id":"@mlflow/core@0.4.0","maintainers":[{"name":"yuki_watanabe","email":"yuki.watanabe@databricks.com"}],"homepage":"https://mlflow.org/","bugs":{"url":"https://github.com/mlflow/mlflow/issues"},"bin":{"mlflow-trace-daemon":"bundle/daemon.cjs"},"dist":{"shasum":"b31c2232b3a6afe277df3eed994d5eed1ed67640","tarball":"https://registry.npmjs.org/@mlflow/core/-/core-0.4.0.tgz","fileCount":105,"integrity":"sha512-z80wUaXWRsw5xquvpBW2BRJgjA7M+dj67JqR08i+cH8DZK+DV5y8RpaJyFzxGZkAXsy5GO4W+ndeL8tB5nlQaw==","signatures":[{"sig":"MEQCIHat/NAVYR2UiH2MurmW3wpq4L2RTAPlNCtoOz0pWKPpAiB8JV6pT9593UBX3yOvUM+6yVdmXvsQa0kykGaqwNnotg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19928200},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18"},"gitHead":"50d4736d74453f4f58ca58a1b2748a1e3356a52c","scripts":{"lint":"eslint . --ext .ts --max-warnings 0","test":"jest","build":"tsc && node esbuild.config.mjs","format":"prettier --write .","lint:fix":"eslint . --ext .ts --fix","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1277ffd5-9488-45a4-87f6-c61eb75c6235"}},"repository":{"url":"git+https://github.com/mlflow/mlflow.git","type":"git"},"_npmVersion":"11.5.1","description":"TypeScript implementation of MLflow Tracing SDK for LLM observability","directories":{},"_nodeVersion":"22.23.2","dependencies":{"ini":"^5.0.0","bignumber.js":"^9.0.0","@opentelemetry/api":"^1.9.0","fast-safe-stringify":"^2.1.1","@opentelemetry/sdk-node":"^0.205.0","@databricks/sdk-experimental":"0.15.0","@opentelemetry/sdk-trace-base":"^2.1.0","@opentelemetry/otlp-transformer":"^0.205.0","@opentelemetry/exporter-trace-otlp-proto":"^0.205.0"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.10.3","tsx":"^4.7.0","jest":"^29.6.2","eslint":"^8.57.1","esbuild":"^0.25.0","ts-jest":"^29.1.1","prettier":"^3.5.3","@types/ini":"^4.1.1","typescript":"^5.8.3","@types/jest":"^29.5.3","@types/node":"^20.4.5","whatwg-fetch":"^3.6.20","@kubernetes/client-node":"^1.0.0","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"optionalDependencies":{"@kubernetes/client-node":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.4.0_1787821101978_0.1727792061707809","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"_id":"@mlflow/core@0.5.0","bin":{"mlflow-trace-daemon":"bundle/daemon.cjs"},"bugs":{"url":"https://github.com/mlflow/mlflow/issues"},"dist":{"shasum":"9dd98ed6055d2174160d4cba568db829e2bbd203","tarball":"https://registry.npmjs.org/@mlflow/core/-/core-0.5.0.tgz","fileCount":111,"integrity":"sha512-wHgNQNxQ8v+7SCbXWVSz4kh1ryhejEGkPc66gQbOIKVtdHMYg3SLJc3yoBw5a+fqcUpFyVAAeFf9q5Gt92HNCQ==","signatures":[{"sig":"MEYCIQDOjeUaY1iOY9wEtN47BaI1zUy9N+3ig4olsPUzysjeOAIhANiIFyfv8EMaFQ6b7Ece31PbvbNNrmcJoMkFPQ9B80oU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCM5zzHmOlHdUJEYdOczU9njujxPtvnh9mY4bQ7lKYyjQIhAKrI6C6b2iIEL7tXtw8KqFBnmqKscedbhj2/Lbk0U4Ld"}],"unpackedSize":20144461},"main":"dist/index.js","name":"@mlflow/core","types":"dist/index.d.ts","author":{"url":"https://mlflow.org/","name":"MLflow"},"engines":{"node":">=22"},"gitHead":"0bbd404a84408cf4e19ea489b953fd9159f6a159","license":"Apache-2.0","scripts":{"lint":"eslint . --ext .ts --max-warnings 0","test":"jest","build":"tsc && node esbuild.config.mjs","format":"prettier --write .","lint:fix":"eslint . --ext .ts --fix","format:check":"prettier --check ."},"version":"0.5.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"1277ffd5-9488-45a4-87f6-c61eb75c6235"}},"homepage":"https://mlflow.org/","keywords":["mlflow","tracing","observability","opentelemetry","llm","javascript","typescript"],"repository":{"url":"git+https://github.com/mlflow/mlflow.git","type":"git"},"_npmVersion":"11.5.1","description":"TypeScript implementation of MLflow Tracing SDK for LLM observability","directories":{},"maintainers":[{"name":"yuki_watanabe","email":"yuki.watanabe@databricks.com"}],"_nodeVersion":"22.23.4","dependencies":{"ini":"^5.0.0","bignumber.js":"^9.0.0","@opentelemetry/api":"^1.9.0","fast-safe-stringify":"^2.1.1","@opentelemetry/sdk-node":"^0.205.0","@databricks/sdk-experimental":"0.18.0","@opentelemetry/sdk-trace-base":"^2.1.0","@opentelemetry/otlp-transformer":"^0.205.0","@opentelemetry/exporter-trace-otlp-proto":"^0.205.0"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.10.3","tsx":"^4.7.0","jest":"^29.6.2","eslint":"^8.57.1","esbuild":"^0.25.0","ts-jest":"^29.1.1","prettier":"^3.5.3","@types/ini":"^4.1.1","typescript":"^5.8.3","@types/jest":"^29.5.3","@types/node":"^20.4.5","whatwg-fetch":"^3.6.20","@kubernetes/client-node":"^1.0.0","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"optionalDependencies":{"@kubernetes/client-node":"^1.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.5.0_1794463965245_0.08317265608339675"}}},"time":{"created":"2026-02-27T11:14:47.686Z","modified":"2026-11-12T06:12:45.763Z","0.2.0":"2026-02-27T11:14:47.937Z","0.3.0-rc.0":"2026-06-04T03:36:31.108Z","0.3.0":"2026-07-07T07:19:42.015Z","0.4.0":"2026-08-27T08:58:22.215Z","0.5.0":"2026-11-12T06:12:45.450Z"},"bugs":{"url":"https://github.com/mlflow/mlflow/issues"},"author":{"url":"https://mlflow.org/","name":"MLflow"},"license":"Apache-2.0","homepage":"https://mlflow.org/","keywords":["mlflow","tracing","observability","opentelemetry","llm","javascript","typescript"],"repository":{"url":"git+https://github.com/mlflow/mlflow.git","type":"git"},"description":"TypeScript implementation of MLflow Tracing SDK for LLM observability","maintainers":[{"name":"yuki_watanabe","email":"yuki.watanabe@databricks.com"}],"readme":"# MLflow Typescript SDK - Core\n\nThis is the core package of the [MLflow Typescript SDK](https://github.com/mlflow/mlflow/tree/main/libs/typescript). It is a skinny package that includes the core tracing functionality and manual instrumentation.\n\n| Package            | NPM                                                                                                                           | Description                                                |\n| ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |\n| [@mlflow/core](./) | [![npm package](https://img.shields.io/npm/v/%40mlflow%2Fcore?style=flat-square)](https://www.npmjs.com/package/@mlflow/core) | The core tracing functionality and manual instrumentation. |\n\n## Installation\n\n```bash\nnpm install @mlflow/core\n```\n\n## Quickstart\n\nStart MLflow Tracking Server. If you have a local Python environment, you can run the following command:\n\n```bash\npip install mlflow\nmlflow server --backend-store-uri sqlite:///mlruns.db --port 5000\n```\n\nIf you don't have Python environment locally, MLflow also supports Docker deployment or managed services. See [Self-Hosting Guide](https://mlflow.org/docs/latest/self-hosting/index.html) for getting started.\n\nInstantiate MLflow SDK in your application:\n\n```typescript\nimport * as mlflow from '@mlflow/core';\n\nmlflow.init({\n  trackingUri: 'http://localhost:5000',\n  experimentId: '<experiment-id>',\n});\n```\n\nFor a Databricks experiment that stores traces in Unity Catalog, set its existing trace\nlocation before calling `init()`:\n\n```bash\nexport MLFLOW_TRACE_LOCATION=my_catalog.my_schema.my_table_prefix\n```\n\nWhen non-empty, the value must have three non-empty parts. You can also pass the `traceLocation`\nobject to `init()`; an explicit object takes precedence over the environment variable.\nThe SDK does not discover the UC location from the experiment or create it. Without\nthis setting (or with an empty value), traces use the experiment-backed path instead of the UC table.\n\nCreate a trace:\n\n```typescript\n// Wrap a function with mlflow.trace to generate a span when the function is called.\n// MLflow will automatically record the function name, arguments, return value,\n// latency, and exception information to the span.\nconst getWeather = mlflow.trace(\n  (city: string) => {\n    return `The weather in ${city} is sunny`;\n  },\n  // Pass options to set span name. See https://mlflow.org/docs/latest/genai/tracing/quickstart\n  // for the full list of options.\n  { name: 'get-weather' },\n);\ngetWeather('San Francisco');\n\n// Alternatively, start and end span manually\nconst span = mlflow.startSpan({ name: 'my-span' });\nspan.end();\n```\n\n## Documentation 📘\n\nOfficial documentation for MLflow Typescript SDK can be found [here](https://mlflow.org/docs/latest/genai/tracing/quickstart).\n\n## License\n\nThis project is licensed under the [Apache License 2.0](https://github.com/mlflow/mlflow/blob/master/LICENSE.txt).\n","readmeFilename":"README.md"}