
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
Reduce fulfillment costs and wasted material by finding the optimal way to pack every shipment, in real time.
Node.js client library for Paccurate. The types are generated from Paccurate OpenAPI.
See docs.
import { pack } from 'paccurate'
const data = await pack({
key: 'YOUR_API_KEY',
itemSets: [
{
refId: 0,
dimensions: { x: 5.5, y: 6, z: 6 },
quantity: 3,
weight: 4.5,
},
],
boxTypeSets: ['customer'],
})
console.log(data)
NPM:
npm install paccurate
Yarn:
yarn add paccurate
The package needs to be configured with your account's secret key:
const { Paccurate } = require('paccurate')
const paccurate = new Paccurate('YOUR_API_KEY')
paccurate
.pack({
// ...
})
.then((data) => console.dir(data, { depth: null }))
.catch((error) => console.error(error.code, error.message))
The same can be done with ES Modules and async-await:
import { Paccurate } from 'paccurate'
const paccurate = new Paccurate('YOUR_API_KEY')
async function main() {
try {
const data = await paccurate.pack({
// ...
})
console.dir(data, { depth: null })
} catch (error) {
console.error(error.code, error.message)
}
}
main()
The request can be sent to two endpoints:
| Endpoint | Description |
|---|---|
| https://api.paccurate.io/ | 30-second timeout, best for real-time |
| https://cloud.api.paccurate.io/ | 1 hour timeout, best for large, parallel batch jobs |
The default endpoint is https://api.paccurate.io/. To send to a different endpoint, you can:
Instantiate with endpoint:
import { Paccurate } from 'paccurate'
const paccurate = new Paccurate('YOUR_API_KEY', 'https://cloud.api.paccurate.io/')
await paccurate.pack(data)
Call method with endpoint:
import { Paccurate } from 'paccurate'
const paccurate = new Paccurate('YOUR_API_KEY')
await paccurate.pack(data, 'https://cloud.api.paccurate.io/')
Call function with endpoint:
import { pack } from 'paccurate'
await pack(data, 'https://cloud.api.paccurate.io/')
The following types can be imported:
import type { Body, Response } from 'paccurate'
Updated Paccurate OpenAPI version from 1.7.0 to 1.7.1.
BREAKING CHANGE: Pack property key has been removed from the OpenAPI schema.
Contributions are welcome! See our guide on how to proceed. 👋
FAQs
Reduce fulfillment costs and wasted material by finding the optimal way to pack every shipment, in real time.
The npm package paccurate receives a total of 469 weekly downloads. As such, paccurate popularity was classified as not popular.
We found that paccurate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.