{"_id":"@davothebigafro/metrics","name":"@davothebigafro/metrics","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@davothebigafro/metrics","version":"0.0.0","private":false,"main":"./src/index.ts","types":"./src/index.ts","exports":{".":"./src/index.ts","./metadata":"./src/metadata.ts"},"license":"UNLICENSED","publishConfig":{"access":"public"},"dependencies":{"zod":"3.25.76","@davothebigafro/eval":"0.0.0"},"devDependencies":{"@types/node":"^22","eslint":"10.2.0","typescript":"5.9.3","vitest":"^3.0.0","@davothebigafro/eslint-config-custom":"0.0.0","@davothebigafro/prettier-config-custom":"0.0.0","@davothebigafro/tsconfig":"0.0.0"},"prettier":"@davothebigafro/prettier-config-custom","scripts":{"build":"tsc --noEmit","eslint":"eslint --quiet src","eslint:fix":"pnpm eslint --fix","prettier":"prettier -c src package.json tsconfig.json vitest.config.ts eslint.config.mjs","prettier:fix":"prettier --write src package.json tsconfig.json vitest.config.ts eslint.config.mjs","lint":"pnpm eslint && pnpm prettier","lint:fix":"pnpm eslint:fix && pnpm prettier:fix","typecheck":"tsc --noEmit","test":"vitest run"},"_id":"@davothebigafro/metrics@0.0.0","description":"Built-in metric factories for Shipwright evaluations.","_integrity":"sha512-qr9pjnUpD3Pdfb4nlUJKHoazIb64i1IjwtXakZ8T6uVtOVAMlh+iWwVADbK4JwCpVh0BxHQPQuM1090dOktGDg==","_resolved":"/private/var/folders/x5/018vz7px3155y464gmw2xv5r0000gn/T/fb10df264467f821b6a15584fc5bc2c6/davothebigafro-metrics-0.0.0.tgz","_from":"file:davothebigafro-metrics-0.0.0.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-qr9pjnUpD3Pdfb4nlUJKHoazIb64i1IjwtXakZ8T6uVtOVAMlh+iWwVADbK4JwCpVh0BxHQPQuM1090dOktGDg==","shasum":"24a7946e5fd2ec02ff1fc5e5069e5930cce6ce3a","tarball":"https://registry.npmjs.org/@davothebigafro/metrics/-/metrics-0.0.0.tgz","fileCount":33,"unpackedSize":177255,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCbVO820TIxp3v8f6SGf8Huzlaw3zNzwKWkkxtZbsmKMwIhALkOayi2MA2foDjTS4DLNRRbclD68b0mjaprAt3l83yD"}]},"_npmUser":{"name":"davothebigafro","email":"davoxdkj@gmail.com"},"directories":{},"maintainers":[{"name":"davothebigafro","email":"davoxdkj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/metrics_0.0.0_1778357952752_0.5259671227485689"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-09T20:19:12.699Z","0.0.0":"2026-05-09T20:19:12.893Z","modified":"2026-05-09T20:19:13.044Z"},"maintainers":[{"name":"davothebigafro","email":"davoxdkj@gmail.com"}],"description":"Built-in metric factories for Shipwright evaluations.","license":"UNLICENSED","readme":"# `@davothebigafro/metrics`\n\nBuilt-in metric factories for Shipwright evaluations.\n\n## Install\n\n```bash\npnpm add @davothebigafro/metrics @davothebigafro/eval --filter <your-package>\n```\n\nInside this workspace, keep local dependencies on `workspace:*`. For unreleased local installs, use the tarball workflow in the root contributing guide.\n\n## Minimal Usage\n\n```ts\nimport { evaluate } from '@davothebigafro/eval';\nimport { answerRelevancy, faithfulness } from '@davothebigafro/metrics';\n\nconst result = await evaluate({\n  judge,\n  testCases,\n  metrics: [answerRelevancy({ threshold: 0.7 }), faithfulness({ threshold: 0.7 })],\n});\n```\n\nThe package includes RAG, agentic, safety, conversational, G-Eval, and registry helpers. Use `buildMetric()` when metric specs come from config.\n\n## Docs\n\n- [Evaluations](../../docs/evals.md)\n- [Architecture](../../docs/architecture.md)\n- [Root README](../../README.md)\n","readmeFilename":"README.md","_rev":"1-f75f8d984f2349e5cd6229059fae4077"}