{"_id":"@attocash/commons-worker-remote","_rev":"6-d089168c882da3f45c67ed0b34152c0a","name":"@attocash/commons-worker-remote","dist-tags":{"latest":"8.0.2"},"versions":{"6.7.0":{"name":"@attocash/commons-worker-remote","version":"6.7.0","keywords":["atto","kotlin","kotlin-js","cryptocurrency"],"license":"BSD-3-Clause","_id":"@attocash/commons-worker-remote@6.7.0","maintainers":[{"name":"attocash","email":"felipe@atto.cash"}],"homepage":"https://atto.cash","bugs":{"url":"https://github.com/attocash/commons/issues"},"dist":{"shasum":"39751893ae5b19c2bbe59bea27cef1bb17b97134","tarball":"https://registry.npmjs.org/@attocash/commons-worker-remote/-/commons-worker-remote-6.7.0.tgz","fileCount":6,"integrity":"sha512-f8OXZo0dYsAc9vPLe2AsbGuyCvbJyd3sy/y3AOLf7QUZOD34CoRVBLbICFZFzYcyzSJmqcnjBr/JOScbUPebDQ==","signatures":[{"sig":"MEUCIEOnrDN7DJ71eeBH0wTPCox47hchg8M5wC/xNOxxkX8sAiEA/t5kLNq/kM7ITcJKD6qiY2Xt271fPDmNqGXhPJYv41g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3656717},"main":"commons-commons-worker-remote.mjs","_from":"file:commons-worker-remote/build/packages/attocash-commons-worker-remote-6.7.0.tgz","types":"commons-commons-worker-remote.d.mts","_npmUser":{"name":"attocash","email":"felipe@atto.cash"},"_resolved":"/var/home/felipe/IdeaProjects/commons/commons-worker-remote/build/packages/attocash-commons-worker-remote-6.7.0.tgz","_integrity":"sha512-f8OXZo0dYsAc9vPLe2AsbGuyCvbJyd3sy/y3AOLf7QUZOD34CoRVBLbICFZFzYcyzSJmqcnjBr/JOScbUPebDQ==","repository":{"url":"git+https://github.com/attocash/commons.git","type":"git","directory":"commons-worker-remote"},"_npmVersion":"10.9.7","description":"Remote HTTP proof-of-work worker client for Atto applications.","directories":{},"_nodeVersion":"22.22.2","dependencies":{"ws":"8.18.3","@js-joda/core":"3.2.0","@stablelib/hmac":"1.0.1","@stablelib/sha256":"1.0.1","@stablelib/sha512":"1.0.1","@stablelib/blake2b":"1.0.1","@stablelib/ed25519":"1.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/commons-worker-remote_6.7.0_1779911982408_0.10247857585601694","host":"s3://npm-registry-packages-npm-production"}},"6.7.1":{"name":"@attocash/commons-worker-remote","version":"6.7.1","keywords":["atto","kotlin","kotlin-js","cryptocurrency"],"license":"BSD-3-Clause","_id":"@attocash/commons-worker-remote@6.7.1","maintainers":[{"name":"attocash","email":"felipe@atto.cash"}],"homepage":"https://atto.cash","bugs":{"url":"https://github.com/attocash/commons/issues"},"dist":{"shasum":"1c1c6f2a4daa0584e0fafd19aff6f3ab98a89fa8","tarball":"https://registry.npmjs.org/@attocash/commons-worker-remote/-/commons-worker-remote-6.7.1.tgz","fileCount":58,"integrity":"sha512-fGoT8qMa/AxWwXpj+de+GA867Sn7+xtiSE4jZ7XezF7GkrjxBKRfGiQXri6wwXfnauK9EXMyEioUA9V1jRYHlQ==","signatures":[{"sig":"MEQCIHLqNVN5M6exKCt4p/CC1a5eAie3V6ZFDRS+JxsBY7Q0AiB1ZYO1kF42JX1TlqjzCNfSJYu8ngJvSGIQSst0B6iydw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3414051},"main":"commons-commons-worker-remote.mjs","types":"commons-commons-worker-remote.d.mts","gitHead":"1a3e41024f75a8372be02aab0eb9e6ed7b92d87f","_npmUser":{"name":"attocash","email":"felipe@atto.cash"},"repository":{"url":"git+https://github.com/attocash/commons.git","type":"git","directory":"commons-worker-remote"},"_npmVersion":"11.5.1","description":"Remote HTTP proof-of-work worker client for Atto applications.","directories":{},"_nodeVersion":"24.6.0","dependencies":{"ws":"8.18.3","@js-joda/core":"3.2.0","@stablelib/hmac":"1.0.1","@stablelib/sha256":"1.0.1","@stablelib/sha512":"1.0.1","@stablelib/blake2b":"1.0.1","@stablelib/ed25519":"1.0.1","@attocash/commons-worker":"6.7.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/commons-worker-remote_6.7.1_1779996266009_0.08441911620735998","host":"s3://npm-registry-packages-npm-production"}},"6.7.1-patch.1":{"name":"@attocash/commons-worker-remote","version":"6.7.1-patch.1","keywords":["atto","kotlin","kotlin-js","cryptocurrency"],"license":"BSD-3-Clause","_id":"@attocash/commons-worker-remote@6.7.1-patch.1","maintainers":[{"name":"attocash","email":"felipe@atto.cash"}],"homepage":"https://atto.cash","bugs":{"url":"https://github.com/attocash/commons/issues"},"dist":{"shasum":"cb433eaead8cc0d577efd2052f639902dabfd607","tarball":"https://registry.npmjs.org/@attocash/commons-worker-remote/-/commons-worker-remote-6.7.1-patch.1.tgz","fileCount":42,"integrity":"sha512-qiqUgf5VYOMBYCi/hFMlOW/rR+39cESB8qEO3pYLHCHhYGr7AXe84l6XFxXnJDEoJK/XvBHX1ooeQL09yTtMpw==","signatures":[{"sig":"MEUCIQDuwOLDHCOZpW+cSKPRQJMv0FpsZ1sf/51lMZCNU1Gh7AIgV+AWlPx/QGt28TpODQps+wpf5SJeYclwTI6WKx4BXmM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1393203},"main":"commons-commons-worker-remote.mjs","_from":"file:commons-worker-remote/build/tmp/packJsPackage/attocash-commons-worker-remote-6.7.1-patch.1.tgz","types":"commons-commons-worker-remote.d.mts","_npmUser":{"name":"attocash","email":"felipe@atto.cash"},"_resolved":"/var/home/felipe/IdeaProjects/commons/commons-worker-remote/build/tmp/packJsPackage/attocash-commons-worker-remote-6.7.1-patch.1.tgz","_integrity":"sha512-qiqUgf5VYOMBYCi/hFMlOW/rR+39cESB8qEO3pYLHCHhYGr7AXe84l6XFxXnJDEoJK/XvBHX1ooeQL09yTtMpw==","repository":{"url":"git+https://github.com/attocash/commons.git","type":"git","directory":"commons-worker-remote"},"_npmVersion":"11.5.1","description":"Remote HTTP proof-of-work worker client for Atto applications.","directories":{},"_nodeVersion":"22.22.2","dependencies":{"ws":"8.18.3","@js-joda/core":"3.2.0","@stablelib/hmac":"1.0.1","@stablelib/sha256":"1.0.1","@stablelib/sha512":"1.0.1","@stablelib/blake2b":"1.0.1","@stablelib/ed25519":"1.0.1","@attocash/commons-core":"6.7.1-patch.1","@attocash/commons-worker":"6.7.1-patch.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/commons-worker-remote_6.7.1-patch.1_1780002744443_0.6250951761528205","host":"s3://npm-registry-packages-npm-production"}},"7.0.2":{"name":"@attocash/commons-worker-remote","version":"7.0.2","keywords":["atto","kotlin","kotlin-js","cryptocurrency"],"license":"BSD-3-Clause","_id":"@attocash/commons-worker-remote@7.0.2","maintainers":[{"name":"attocash","email":"felipe@atto.cash"}],"homepage":"https://atto.cash","bugs":{"url":"https://github.com/attocash/commons/issues"},"dist":{"shasum":"cda3aebdb6b835222335522be29e2f721f82c3be","tarball":"https://registry.npmjs.org/@attocash/commons-worker-remote/-/commons-worker-remote-7.0.2.tgz","fileCount":14,"integrity":"sha512-/4a4jVHl1MFlvYhdnq6th76fAXgQFjejfA0/BOXzOdkB79+0weF2GAXrQ3KNlAhCfgEzTiTDfQ6dXuO5QMjPCg==","signatures":[{"sig":"MEUCIQDvWUy+IxiigePzFFuT73ZmQuEgmr0UJdm5Y6bG4zUc6gIgJmGmS7exP6e43HRqt+a2v+XWo3qNRSaupTVnirKgomQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@attocash%2fcommons-worker-remote@7.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":332219},"main":"commons-commons-worker-remote.mjs","_from":"file:commons-worker-remote/build/packages/attocash-commons-worker-remote-7.0.2.tgz","types":"commons-commons-worker-remote.d.mts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:af582cf8-1b2d-4f0f-a2ac-3976d42f8b29"}},"_resolved":"/home/runner/work/commons/commons/commons-worker-remote/build/packages/attocash-commons-worker-remote-7.0.2.tgz","_integrity":"sha512-/4a4jVHl1MFlvYhdnq6th76fAXgQFjejfA0/BOXzOdkB79+0weF2GAXrQ3KNlAhCfgEzTiTDfQ6dXuO5QMjPCg==","repository":{"url":"git+https://github.com/attocash/commons.git","type":"git","directory":"commons-worker-remote"},"_npmVersion":"11.16.0","description":"Remote HTTP proof-of-work worker client for Atto applications.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ws":"8.20.1","@js-joda/core":"3.2.0","@noble/hashes":"2.2.0","@attocash/commons-core":"7.0.2","@attocash/commons-worker":"7.0.2","@attocash/commons-transport":"7.0.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/commons-worker-remote_7.0.2_1785094500626_0.5597312795121576","host":"s3://npm-registry-packages-npm-production"}},"8.0.0":{"name":"@attocash/commons-worker-remote","version":"8.0.0","keywords":["atto","kotlin","kotlin-js","cryptocurrency"],"license":"BSD-3-Clause","_id":"@attocash/commons-worker-remote@8.0.0","maintainers":[{"name":"attocash","email":"felipe@atto.cash"}],"homepage":"https://atto.cash","bugs":{"url":"https://github.com/attocash/commons/issues"},"dist":{"shasum":"6cf4daafd9ca9679135cb5a92a32fd4e1ddb744d","tarball":"https://registry.npmjs.org/@attocash/commons-worker-remote/-/commons-worker-remote-8.0.0.tgz","fileCount":14,"integrity":"sha512-D4yt/Tk9QkieYnlEKAfDoC8RUNx7/KtQ2kwYPz8IIKebG0WjJoSmMox3EQ/mkLJlTy7UqmsU8wLxvYzidkexUQ==","signatures":[{"sig":"MEUCIARQVecSSEKIHh2G48Xj57keKDC5OsrNCNmTi2UkqqtNAiEAuA9Agf1IQtN3msLpllzpjowBuUVN7bzVXTUyoys9vpo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@attocash%2fcommons-worker-remote@8.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":332219},"main":"commons-commons-worker-remote.mjs","_from":"file:commons-worker-remote/build/packages/attocash-commons-worker-remote-8.0.0.tgz","types":"commons-commons-worker-remote.d.mts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:af582cf8-1b2d-4f0f-a2ac-3976d42f8b29"}},"_resolved":"/home/runner/work/commons/commons/commons-worker-remote/build/packages/attocash-commons-worker-remote-8.0.0.tgz","_integrity":"sha512-D4yt/Tk9QkieYnlEKAfDoC8RUNx7/KtQ2kwYPz8IIKebG0WjJoSmMox3EQ/mkLJlTy7UqmsU8wLxvYzidkexUQ==","repository":{"url":"git+https://github.com/attocash/commons.git","type":"git","directory":"commons-worker-remote"},"_npmVersion":"11.19.0","description":"Remote HTTP proof-of-work worker client for Atto applications.","directories":{},"_nodeVersion":"24.20.0","dependencies":{"ws":"8.20.1","@js-joda/core":"3.2.0","@noble/hashes":"2.2.0","@attocash/commons-core":"8.0.0","@attocash/commons-worker":"8.0.0","@attocash/commons-transport":"8.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/commons-worker-remote_8.0.0_1788898431450_0.03430134840105792","host":"s3://npm-registry-packages-npm-production"}},"8.0.2":{"_id":"@attocash/commons-worker-remote@8.0.2","bugs":{"url":"https://github.com/attocash/commons/issues"},"dist":{"shasum":"e386fc669c58da4ef2df2b6d7ba7b90e9b627778","tarball":"https://registry.npmjs.org/@attocash/commons-worker-remote/-/commons-worker-remote-8.0.2.tgz","fileCount":14,"integrity":"sha512-/pCY6EJx+5+iTOAPi7KsQz4/avzSYnAcVEEq+T7nzSmXaN/95kZrvzB+KZ13KYBZJGapGO3YJl8WC49AK6vl/Q==","signatures":[{"sig":"MEUCICpcJVIwA2JuPPleo2zItf+04x4DTZR/vryUwX45Y7DHAiEAhM+pda7bPQRYzuMbOOl1AunAGffjz85GYoSWu1hywuc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD4Psfr2n+4M7LQnH7/isNSZJgdgsdEA71vXaE+mSOJMQIgICX1Q5PQhUvUizzkveRdzUGY7h5cwGnegViZU1rmjAI="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@attocash%2fcommons-worker-remote@8.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":377137},"main":"commons-commons-worker-remote.mjs","name":"@attocash/commons-worker-remote","_from":"file:commons-worker-remote/build/packages/attocash-commons-worker-remote-8.0.2.tgz","types":"commons-commons-worker-remote.d.mts","license":"BSD-3-Clause","version":"8.0.2","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"af582cf8-1b2d-4f0f-a2ac-3976d42f8b29"}},"homepage":"https://atto.cash","keywords":["atto","kotlin","kotlin-js","cryptocurrency"],"_resolved":"/home/runner/work/commons/commons/commons-worker-remote/build/packages/attocash-commons-worker-remote-8.0.2.tgz","_integrity":"sha512-/pCY6EJx+5+iTOAPi7KsQz4/avzSYnAcVEEq+T7nzSmXaN/95kZrvzB+KZ13KYBZJGapGO3YJl8WC49AK6vl/Q==","repository":{"url":"git+https://github.com/attocash/commons.git","type":"git","directory":"commons-worker-remote"},"_npmVersion":"11.19.0","description":"Remote HTTP proof-of-work worker client for Atto applications.","directories":{},"maintainers":[{"name":"attocash","email":"felipe@atto.cash"}],"_nodeVersion":"24.21.0","dependencies":{"ws":"8.20.1","@js-joda/core":"3.2.0","@noble/hashes":"2.2.0","@attocash/commons-core":"8.0.2","@attocash/commons-worker":"8.0.2","@attocash/commons-transport":"8.0.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/commons-worker-remote_8.0.2_1790705932879_0.48647244046788796"}}},"time":{"created":"2026-05-27T19:59:42.257Z","modified":"2026-09-29T18:18:53.318Z","6.7.0":"2026-05-27T19:59:42.550Z","6.7.1":"2026-05-28T19:24:26.235Z","6.7.1-patch.1":"2026-05-28T21:12:24.704Z","7.0.2":"2026-07-26T19:35:00.806Z","8.0.0":"2026-09-08T20:13:51.611Z","8.0.2":"2026-09-29T18:18:52.964Z"},"bugs":{"url":"https://github.com/attocash/commons/issues"},"license":"BSD-3-Clause","homepage":"https://atto.cash","keywords":["atto","kotlin","kotlin-js","cryptocurrency"],"repository":{"url":"git+https://github.com/attocash/commons.git","type":"git","directory":"commons-worker-remote"},"description":"Remote HTTP proof-of-work worker client for Atto applications.","maintainers":[{"name":"attocash","email":"felipe@atto.cash"}],"readme":"# commons-worker-remote\n\nRemote HTTP worker implementation of `AttoWorker`. Useful to offload PoW to a separate service.\n\nHighlights:\n\n- `AttoWorker.remote(url, timeout, headerProvider)` convenience, with a 5 minute default timeout\n- `AttoWorkerAsyncBuilder.timeout(...)` for async worker clients\n- Same `AttoWorker` API as CPU/OpenCL: `work(block)` and `work(network, timestamp, target)`\n- Low-level request API via `AttoWorkerOperations.Request`\n\n## Installation\n\nGradle:\n\n```kotlin\nimplementation(\"cash.atto:commons-worker-remote:<version>\")\n```\n\nNPM:\n\n```sh\nnpm install @attocash/commons-core @attocash/commons-worker @attocash/commons-worker-remote\n```\n\n## Quick start\n\n```kotlin\n// Optional headers (JWT/API keys)\nsuspend fun headers(): Map<String, String> = mapOf(\"Authorization\" to \"Bearer <jwt>\")\n\nval worker = AttoWorker.remote(\"http://localhost:8085\", headerProvider = ::headers)\n\n// Optional timeout override\nval workerWithTimeout = AttoWorker.remote(\"http://localhost:8085\", 10.minutes, ::headers)\n\nval asyncWorker =\n  AttoWorkerAsyncBuilder(\"http://localhost:8085\")\n    .timeout(10.minutes)\n    .build()\n\n// Compute work for a block\nval work = worker.work(block)\n```\n\n## Low-level API\n\n```kotlin\nval request = AttoWorkerOperations.Request(\n  network = block.network,\n  timestamp = block.timestamp,\n  target = block.getTarget().value.toHex(),\n)\n\nval response = (worker as AttoWorkerOperations).work(request)\nval work = response.work\n```\n\nImplementation details: see `AttoWorkerRemote.kt`. The client uses Ktor and posts to `/works` with JSON, expecting a\nJSON response.\n","readmeFilename":"README.md"}