{"id":16252378,"url":"https://github.com/remarkablemark/paccurate","last_synced_at":"2026-04-02T11:31:07.946Z","repository":{"id":37821521,"uuid":"481412820","full_name":"remarkablemark/paccurate","owner":"remarkablemark","description":":package: Node.js library for Paccurate.","archived":false,"fork":false,"pushed_at":"2024-10-29T09:14:47.000Z","size":2323,"stargazers_count":3,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-29T10:59:35.682Z","etag":null,"topics":["api","javascript","node","nodejs","npm","paccurate","typescript"],"latest_commit_sha":null,"homepage":"https://b.remarkabl.org/paccurate","language":"TypeScript","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/remarkablemark.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["remarkablemark"],"patreon":"remarkablemark","open_collective":null,"ko_fi":"remarkablemark","tidelift":null,"community_bridge":null,"liberapay":"remarkablemark","issuehunt":null,"otechie":null,"custom":["https://b.remarkabl.org/teespring"]}},"created_at":"2022-04-14T00:18:17.000Z","updated_at":"2024-10-29T09:12:42.000Z","dependencies_parsed_at":"2024-11-12T10:38:21.247Z","dependency_job_id":null,"html_url":"https://github.com/remarkablemark/paccurate","commit_stats":{"total_commits":516,"total_committers":4,"mean_commits":129.0,"dds":"0.16860465116279066","last_synced_commit":"77bdb70670e854143693c80a3e7930d336de6d4f"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fpaccurate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fpaccurate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fpaccurate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fpaccurate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remarkablemark","download_url":"https://codeload.github.com/remarkablemark/paccurate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244501315,"owners_count":20462839,"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":["api","javascript","node","nodejs","npm","paccurate","typescript"],"created_at":"2024-10-10T15:13:28.404Z","updated_at":"2026-04-02T11:31:07.941Z","avatar_url":"https://github.com/remarkablemark.png","language":"TypeScript","funding_links":["https://github.com/sponsors/remarkablemark","https://patreon.com/remarkablemark","https://ko-fi.com/remarkablemark","https://liberapay.com/remarkablemark","https://b.remarkabl.org/teespring"],"categories":[],"sub_categories":[],"readme":"# paccurate\n\n[![NPM](https://nodei.co/npm/paccurate.png)](https://nodei.co/npm/paccurate/)\n\n[![NPM version](https://img.shields.io/npm/v/paccurate.svg)](https://www.npmjs.com/package/paccurate)\n[![build](https://github.com/remarkablemark/paccurate/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablemark/paccurate/actions/workflows/build.yml)\n[![codecov](https://codecov.io/gh/remarkablemark/paccurate/branch/master/graph/badge.svg?token=LQAQTQE0QI)](https://codecov.io/gh/remarkablemark/paccurate)\n\nNode.js client library for [Paccurate](https://paccurate.io/). The types are generated from [Paccurate OpenAPI](https://api.paccurate.io/static/api/).\n\nSee [docs](https://remarkabl.org/paccurate/).\n\n## Quick Start\n\n```ts\nimport { pack } from 'paccurate'\n\nconst data = await pack({\n  key: 'YOUR_API_KEY',\n  itemSets: [\n    {\n      refId: 0,\n      dimensions: { x: 5.5, y: 6, z: 6 },\n      quantity: 3,\n      weight: 4.5,\n    },\n  ],\n  boxTypeSets: ['customer'],\n})\n\nconsole.log(data)\n```\n\n## Documentation\n\n- [TypeDoc](https://remarkabl.org/paccurate/)\n- [Paccurate docs](https://docs.paccurate.io/)\n- [API docs](https://api.paccurate.io/docs/)\n\n## Prerequisites\n\n- [Node.js](https://nodejs.org/)\n- [Paccurate account](https://manage.paccurate.io/sign_up)\n\n## Installation\n\n[NPM](https://www.npmjs.com/package/paccurate):\n\n```sh\nnpm install paccurate\n```\n\n[Yarn](https://yarnpkg.com/package/paccurate):\n\n```sh\nyarn add paccurate\n```\n\n## Usage\n\nThe package needs to be configured with your account's secret key:\n\n```ts\nconst { Paccurate } = require('paccurate')\n\nconst paccurate = new Paccurate('YOUR_API_KEY')\n\npaccurate\n  .pack({\n    // ...\n  })\n  .then((data) =\u003e console.dir(data, { depth: null }))\n  .catch((error) =\u003e console.error(error.code, error.message))\n```\n\nThe same can be done with ES Modules and async-await:\n\n```ts\nimport { Paccurate } from 'paccurate'\n\nconst paccurate = new Paccurate('YOUR_API_KEY')\n\nasync function main() {\n  try {\n    const data = await paccurate.pack({\n      // ...\n    })\n    console.dir(data, { depth: null })\n  } catch (error) {\n    console.error(error.code, error.message)\n  }\n}\n\nmain()\n```\n\n### API Endpoint\n\nThe request can be sent to two endpoints:\n\n| Endpoint                        | Description                                         |\n| ------------------------------- | --------------------------------------------------- |\n| https://api.paccurate.io/       | 30-second timeout, best for real-time               |\n| https://cloud.api.paccurate.io/ | 1 hour timeout, best for large, parallel batch jobs |\n\nThe default endpoint is https://api.paccurate.io/. To send to a different endpoint, you can:\n\n1. Instantiate with endpoint:\n\n   ```ts\n   import { Paccurate } from 'paccurate'\n\n   const paccurate = new Paccurate('YOUR_API_KEY', 'https://cloud.api.paccurate.io/')\n   await paccurate.pack(data)\n   ```\n\n2. Call method with endpoint:\n\n   ```ts\n   import { Paccurate } from 'paccurate'\n\n   const paccurate = new Paccurate('YOUR_API_KEY')\n   await paccurate.pack(data, 'https://cloud.api.paccurate.io/')\n   ```\n\n3. Call function with endpoint:\n\n   ```ts\n   import { pack } from 'paccurate'\n\n   await pack(data, 'https://cloud.api.paccurate.io/')\n   ```\n\n### TypeScript\n\nThe following types can be imported:\n\n```ts\nimport type { Body, Response } from 'paccurate'\n```\n\n## Migration\n\n### v2\n\nUpdated Paccurate OpenAPI version from 1.7.0 to 1.7.1.\n\n**BREAKING CHANGE:** Pack property `key` has been removed from the OpenAPI schema.\n\n## Contributing\n\nContributions are welcome! See our [guide](https://github.com/remarkablemark/paccurate/blob/master/.github/CONTRIBUTING.md) on how to proceed. 👋\n\n## License\n\n[MIT](https://github.com/remarkablemark/paccurate/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Fpaccurate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremarkablemark%2Fpaccurate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Fpaccurate/lists"}