{"_id":"@acjlabs/receipt-extraction-client","_rev":"10-62a9c0e5e41105a405be7ea0e15f510f","name":"@acjlabs/receipt-extraction-client","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.3":{"name":"@acjlabs/receipt-extraction-client","version":"0.1.3","keywords":["receipt","invoice","ocr","mcp","australia","gst","abn"],"author":{"url":"https://acjlabs.com","name":"ACJ Labs","email":"contact@acjlabs.com"},"license":"MIT","_id":"@acjlabs/receipt-extraction-client@0.1.3","maintainers":[{"name":"acjlabsdev","email":"npm@acjlabs.com"}],"homepage":"https://github.com/acjlabs/receipt-extraction#readme","bugs":{"url":"https://github.com/acjlabs/receipt-extraction/issues"},"dist":{"shasum":"2520dd0280dc13c2c9f09430f8a917f3ae97fdaa","tarball":"https://registry.npmjs.org/@acjlabs/receipt-extraction-client/-/receipt-extraction-client-0.1.3.tgz","fileCount":7,"integrity":"sha512-xIy98jB8c8prbY5NkLedOL4BDLsp0tBiY0fNdDDiQAdWaA6oVQ86BIGR8V+qO51AbLxhAV/83r8CwxuNiaVXLw==","signatures":[{"sig":"MEUCIEMdPvsaFxr3GvjiQi4ZPgE4Jr9oReV+DLsKSQyAMTXcAiEA2/JQNptlQNHTPDVdTzE2Fsyk3GpzxeFAi2H3vJylZis=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9303},"main":"./dist/index.js","type":"module","_from":"file:acjlabs-receipt-extraction-client-0.1.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"bun test","build":"rm -rf dist && tsc -p tsconfig.build.json","prepack":"node ../../../scripts/npm-prepack.mjs","postpack":"node ../../../scripts/npm-postpack.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"acjlabsdev","email":"npm@acjlabs.com"},"_resolved":"/tmp/acjlabs-publish/acjlabs-receipt-extraction-client-0.1.3.tgz","overrides":{"fast-uri":"3.1.4"},"_integrity":"sha512-xIy98jB8c8prbY5NkLedOL4BDLsp0tBiY0fNdDDiQAdWaA6oVQ86BIGR8V+qO51AbLxhAV/83r8CwxuNiaVXLw==","repository":{"url":"git+https://github.com/acjlabs/receipt-extraction.git","type":"git"},"_npmVersion":"10.9.2","description":"Typed TypeScript client for the ACJ Labs Receipt Extraction MCP server — call extract_receipt without wiring up a full MCP client.","directories":{},"sideEffects":false,"_nodeVersion":"22.17.1","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/receipt-extraction-client_0.1.3_1784763022331_0.28397891938058173","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@acjlabs/receipt-extraction-client","version":"0.1.4","keywords":["receipt","invoice","ocr","mcp","australia","gst","abn"],"author":{"url":"https://acjlabs.com","name":"ACJ Labs","email":"contact@acjlabs.com"},"license":"MIT","_id":"@acjlabs/receipt-extraction-client@0.1.4","maintainers":[{"name":"acjlabsdev","email":"npm@acjlabs.com"}],"homepage":"https://github.com/acjlabs/receipt-extraction#readme","bugs":{"url":"https://github.com/acjlabs/receipt-extraction/issues"},"dist":{"shasum":"a4d2492d8f9ef0e077b98913bd848416c660f904","tarball":"https://registry.npmjs.org/@acjlabs/receipt-extraction-client/-/receipt-extraction-client-0.1.4.tgz","fileCount":7,"integrity":"sha512-5e6QaaxucHak0d9BF4PeOuXevvJJr0lmufEoFB6Bm+FoYo52Bb7KlmSPpitN5UiaD7/qqdoqWINdCC+qOZOphw==","signatures":[{"sig":"MEUCIHFDZ2RYhLneDQh+MYd6qLX9jDe2o59TzvDGwYfl4Tp8AiEA5pXxWmt02pKCXR3kUNHR6TGJP74HgpEqhmA3XX76Ez0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9565},"main":"./dist/index.js","type":"module","_from":"file:acjlabs-receipt-extraction-client-0.1.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"bun test","build":"rm -rf dist && tsc -p tsconfig.build.json","typecheck":"tsc --noEmit"},"_npmUser":{"name":"acjlabsdev","email":"npm@acjlabs.com"},"_resolved":"/tmp/acjlabs-publish/acjlabs-receipt-extraction-client-0.1.4.tgz","overrides":{"fast-uri":"3.1.4"},"_integrity":"sha512-5e6QaaxucHak0d9BF4PeOuXevvJJr0lmufEoFB6Bm+FoYo52Bb7KlmSPpitN5UiaD7/qqdoqWINdCC+qOZOphw==","repository":{"url":"git+https://github.com/acjlabs/receipt-extraction.git","type":"git"},"_npmVersion":"10.9.2","description":"Typed TypeScript client for the ACJ Labs Receipt Extraction MCP server — call extract_receipt without wiring up a full MCP client.","directories":{},"sideEffects":false,"_nodeVersion":"22.17.1","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/receipt-extraction-client_0.1.4_1784784969170_0.6927557539363138","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@acjlabs/receipt-extraction-client","version":"0.1.5","keywords":["receipt","invoice","receipt-extraction","invoice-extraction","ocr","mcp","australia","gst","abn","tax"],"author":{"url":"https://acjlabs.com","name":"ACJ Labs","email":"contact@acjlabs.com"},"license":"MIT","_id":"@acjlabs/receipt-extraction-client@0.1.5","maintainers":[{"name":"acjlabsdev","email":"npm@acjlabs.com"}],"homepage":"https://acjlabs.com/products","bugs":{"url":"https://github.com/acjlabs/receipt-extraction/issues"},"dist":{"shasum":"60ce4f0c33145ef3a30a9cd1692d570c8faa31a2","tarball":"https://registry.npmjs.org/@acjlabs/receipt-extraction-client/-/receipt-extraction-client-0.1.5.tgz","fileCount":7,"integrity":"sha512-EHkPT72SU+3niG90N9quH0nfYQwXkUnPS3o39AlBpEmRCOvk1pZuCCJFUdFmnD85zV0HmLPrcM1ek8OlbtGDGA==","signatures":[{"sig":"MEQCIFohiVZ+dixMnJrBUriYcYamIBoOPGz63g4xg9n8NftCAiB/mv40aYfT4WVRu2DuSP2cA1osT60k+N8+DJgo8TdvpQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9785},"main":"./dist/index.js","type":"module","_from":"file:acjlabs-receipt-extraction-client-0.1.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"bun test","build":"rm -rf dist && tsc -p tsconfig.build.json","typecheck":"tsc --noEmit"},"_npmUser":{"name":"acjlabsdev","email":"npm@acjlabs.com"},"_resolved":"/tmp/acjlabs-publish/acjlabs-receipt-extraction-client-0.1.5.tgz","overrides":{"fast-uri":"3.1.4"},"_integrity":"sha512-EHkPT72SU+3niG90N9quH0nfYQwXkUnPS3o39AlBpEmRCOvk1pZuCCJFUdFmnD85zV0HmLPrcM1ek8OlbtGDGA==","repository":{"url":"git+https://github.com/acjlabs/receipt-extraction.git","type":"git"},"_npmVersion":"10.9.2","description":"AU GST/ABN-aware receipt & invoice extraction — gets entertainment/ITC tax treatment right, not just OCR. Typed TypeScript client for the ACJ Labs MCP server; call extract_receipt with no MCP wiring.","directories":{},"sideEffects":false,"_nodeVersion":"22.17.1","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/receipt-extraction-client_0.1.5_1784964916250_0.09983780535570297","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@acjlabs/receipt-extraction-client","version":"0.1.6","description":"AU GST/ABN-aware receipt & invoice extraction — applies documented AU entertainment/ITC tax-code rules per line item, returning a tax_code, a confidence and a rationale for each, not just OCR text. Typed TypeScript client for the ACJ Labs MCP server; call","license":"MIT","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"sideEffects":false,"scripts":{"build":"rm -rf dist && tsc -p tsconfig.build.json","test":"bun test","typecheck":"tsc --noEmit"},"dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"overrides":{"fast-uri":"3.1.4"},"keywords":["receipt","invoice","receipt-extraction","invoice-extraction","ocr","mcp","australia","gst","abn","tax"],"repository":{"type":"git","url":"git+https://github.com/acjlabs/receipt-extraction.git"},"homepage":"https://acjlabs.com/products","bugs":{"url":"https://github.com/acjlabs/receipt-extraction/issues"},"author":{"name":"ACJ Labs","email":"contact@acjlabs.com","url":"https://acjlabs.com"},"_id":"@acjlabs/receipt-extraction-client@0.1.6","_integrity":"sha512-ZCpZeETvuhcqMIF2hhl8GcPy0Pjx6cHmD3iE8bdSOcMqolS1ZI3WmImUCUvm03lqxgNXuFOoi79xLzTrvxcgvw==","_resolved":"/tmp/acjlabs-publish/acjlabs-receipt-extraction-client-0.1.6.tgz","_from":"file:acjlabs-receipt-extraction-client-0.1.6.tgz","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-ZCpZeETvuhcqMIF2hhl8GcPy0Pjx6cHmD3iE8bdSOcMqolS1ZI3WmImUCUvm03lqxgNXuFOoi79xLzTrvxcgvw==","shasum":"49fca17f35a510d22a77a9e18d3bc9aa6750d72b","tarball":"https://registry.npmjs.org/@acjlabs/receipt-extraction-client/-/receipt-extraction-client-0.1.6.tgz","fileCount":7,"unpackedSize":10587,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCDfBHY/ZiSz4A1hoKpTjv7meUYiG62aqDczvONUUpSawIgTPrxTw6ugvBZ7aZKcg9oz5Anvp/+JBxi0QkMelh+nHs="}]},"_npmUser":{"name":"acjlabsdev","email":"npm@acjlabs.com"},"directories":{},"maintainers":[{"name":"acjlabsdev","email":"npm@acjlabs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/receipt-extraction-client_0.1.6_1785459971475_0.7859438615971839"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-22T22:15:21.277Z","modified":"2026-07-31T01:06:11.833Z","0.1.0":"2026-07-22T22:15:21.614Z","0.1.1":"2026-07-22T22:30:26.326Z","0.1.2":"2026-07-22T22:36:08.810Z","0.1.3":"2026-07-22T23:30:22.493Z","0.1.4":"2026-07-23T05:36:09.307Z","0.1.5":"2026-07-25T07:35:16.394Z","0.1.6":"2026-07-31T01:06:11.646Z"},"bugs":{"url":"https://github.com/acjlabs/receipt-extraction/issues"},"author":{"name":"ACJ Labs","email":"contact@acjlabs.com","url":"https://acjlabs.com"},"license":"MIT","homepage":"https://acjlabs.com/products","keywords":["receipt","invoice","receipt-extraction","invoice-extraction","ocr","mcp","australia","gst","abn","tax"],"repository":{"type":"git","url":"git+https://github.com/acjlabs/receipt-extraction.git"},"description":"AU GST/ABN-aware receipt & invoice extraction — applies documented AU entertainment/ITC tax-code rules per line item, returning a tax_code, a confidence and a rationale for each, not just OCR text. Typed TypeScript client for the ACJ Labs MCP server; call","maintainers":[{"name":"acjlabsdev","email":"npm@acjlabs.com"}],"readme":"# @acjlabs/receipt-extraction-client\n\n**AU GST/ABN-aware receipt & invoice extraction** — applies documented AU entertainment/ITC tax-code\nrules per line item, returning a `tax_code`, a `confidence`, and a one-line `rationale` for each, not\njust OCR text. Typed TypeScript client for the [ACJ Labs Receipt Extraction](https://github.com/acjlabs/receipt-extraction)\nMCP server — call `extract_receipt` without wiring up a full MCP client yourself.\n\n```sh\nnpm install @acjlabs/receipt-extraction-client\n```\n\n## Usage\n\n```ts\nimport { createReceiptExtractionClient } from \"@acjlabs/receipt-extraction-client\";\n\nconst client = createReceiptExtractionClient({\n  baseUrl: \"https://receipt-extraction.acjlabs.com\", // no trailing slash, no \"/mcp\"\n  apiKey: \"your-api-key\",\n});\n\nconst receipt = await client.extractReceipt(base64EncodedImageOrPdf, \"image/png\");\n// receipt: { schema_version, vendor: { name, abn, abn_valid }, date, line_items, totals }\n```\n\n`https://acjlabs-receipt-extraction.acjlabs.workers.dev` is an alternate base URL for the same\ndeployment and keeps working — if you already have it configured, nothing needs to change.\n\n`extractReceipt` throws if extraction/normalization fails for the document (a malformed image, a\nvision-provider error) — there is no partial result to fall back to (the service processes one\ndocument per call).\n\n## Design notes\n\n- **Only runtime dependency is `@modelcontextprotocol/sdk`** — installing this client doesn't pull in\n  the server's own dependencies transitively.\n- **Connects fresh per call.** The server's MCP transport is stateless (no session state is kept\n  between HTTP requests), so there's no session worth holding open between calls.\n- Types (`Receipt`, `Vendor`, `LineItem`, `Totals`, `TaxCode`) are hand-kept in sync with the server's\n  wire schema — not imported from the server package, on purpose (see the dependency note above).\n\n## Scope\n\nEach line item's `tax_code` is the code the service's documented rule set assigns, with the rule it\napplied named in `rationale` so you can check the call rather than just take it. GST handling reflects\npublicly documented Australian tax law and is provided as software output, not tax advice.\n","readmeFilename":"README.md"}