{"_id":"@connoropolous/holochain-client","name":"@connoropolous/holochain-client","dist-tags":{"latest":"0.6.0"},"versions":{"0.6.0":{"name":"@connoropolous/holochain-client","version":"0.6.0","description":"A JavaScript client for the Holochain Conductor API","author":{"name":"Holochain Foundation","email":"info@holochain.org","url":"http://holochain.org"},"license":"CAL-1.0","repository":{"type":"git","url":"git+https://github.com/holochain/holochain-client-js.git"},"keywords":["holochain","client","conductor api"],"bugs":{"url":"https://github.com/holochain/holochain-client-js/issues"},"homepage":"https://github.com/holochain/holochain-client-js#readme","engines":{"node":"^14.13.1 || >=16.0.0 || >=18.0.0"},"type":"module","exports":{".":"./lib/index.js"},"types":"lib/index.d.ts","scripts":{"lint":"eslint --fix --ext .ts src test .eslintrc.cjs","test":"RUST_LOG=error RUST_BACKTRACE=1 node --loader ts-node/esm test/index.ts","build":"rimraf ./lib && tsc -p tsconfig.build.json"},"dependencies":{"@msgpack/msgpack":"^2.7.2","cross-fetch":"^3.1.5","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-tsdoc":"^0.2.16","isomorphic-ws":"^4.0.1","prettier":"^2.6.2"},"devDependencies":{"@types/js-yaml":"^3.12.7","@types/tape":"^4.13.2","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","eslint":"^8.16.0","js-yaml":"^3.14.1","rimraf":"^3.0.2","tape":"^5.5.3","ts-node":"^10.8.1","typescript":"^4.7.2"},"gitHead":"a6d039a8e495c3feddc727a917f42ec533141b7d","_id":"@connoropolous/holochain-client@0.6.0","_nodeVersion":"16.15.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-dzL5k9RyMg9xn23g7TvBETMafcaNL+rWAyzBeYvqPVDHsuwsKDjFqUJfcOI50ZoJ3XS4/4xtH8LczG8IF2FdxA==","shasum":"43d9fc957f3cfaf4588739c13534218ecd2f8543","tarball":"https://registry.npmjs.org/@connoropolous/holochain-client/-/holochain-client-0.6.0.tgz","fileCount":62,"unpackedSize":63648,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHI9D40J09AOq7gUF+svjM2Jb3OnqugB74/1reWgfc2AiEA9/4K9xJJqXSXY5Rf46Xk8Rjdx+bxDkZcJMWachsMP00="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1HcaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTog//V1fuTZTh/lpVR3+h+e9ZroNeXheIX6T/M/g2ndI+j3judyXN\r\necHY52mYFlasX/ImcB5AvUfQ4Zw47TNLeCVTQPZ2PyJoweKmpso6Zqc25Gze\r\nWAa+JdZRJ0I/8cYzTwgWxWX0mtuH2VVzucwmD5UsTJQ3+KMaZMJZQ9/NH/pv\r\n4PH2dRoiiZrLULU7WUcbwFO4lJmTsSnieLcxNZY2SuBXhKvg2xxJJ6BjxwDj\r\nUtGXEumTJib2wxQKkRIlaDt6GNWDqqunCIL2kDcuyPo138e7nOH3k9O3oaZq\r\njOUcJph6bUML1ln/sPfBhNzCNZR0XUSQRHr4BexA63xfQoYK1h3Evn/4NLPf\r\nTQI8SMQwgjo37gm7tt4v//F/t3Jvn6cyjac5Lr9M1111fqhHRwDT7f5Rmzji\r\nq9iwmMHiTun5wK05A9sthjaP7f3gblEinkEygAMsHGfKYqzpSejQS800LhfZ\r\nwhfC5hNy+C/UCMBtQ0Z/YVyT/OENDECcJNH9fqzmF7YsoSA7T+PjHDiqhbJp\r\nsAzwf/2YT0K96G8a5oiPg7rmHMkZsa+CD7TsOXoYrtsiJINtDCPrrjm6Yl+o\r\ncJUrvVvFreUbF24tiegCDTJ9+sD+iUn6F5bpnJzjPk2Nbl9m66EZe9XIzu0s\r\ncbVS7iyoP8iQKqeQODkolaF6isxHURu5fj4=\r\n=kqxw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"connoropolous","email":"connorturland@gmail.com"},"directories":{},"maintainers":[{"name":"connoropolous","email":"connorturland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/holochain-client_0.6.0_1658091290504_0.5771233716989441"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-17T20:54:50.454Z","0.6.0":"2022-07-17T20:54:50.681Z","modified":"2022-07-17T20:54:50.808Z"},"maintainers":[{"name":"connoropolous","email":"connorturland@gmail.com"}],"description":"A JavaScript client for the Holochain Conductor API","homepage":"https://github.com/holochain/holochain-client-js#readme","keywords":["holochain","client","conductor api"],"repository":{"type":"git","url":"git+https://github.com/holochain/holochain-client-js.git"},"author":{"name":"Holochain Foundation","email":"info@holochain.org","url":"http://holochain.org"},"bugs":{"url":"https://github.com/holochain/holochain-client-js/issues"},"license":"CAL-1.0","readme":"[![Project](https://img.shields.io/badge/Project-Holochain-blue.svg?style=flat-square)](http://holochain.org/)\n[![Forum](https://img.shields.io/badge/Forum-forum%2eholochain%2enet-blue.svg?style=flat-square)](https://forum.holochain.org)\n[![License: CAL 1.0](https://img.shields.io/badge/License-CAL%201.0-blue.svg)](https://github.com/holochain/cryptographic-autonomy-license)\n![Test](https://github.com/holochain/holochain-client-js/actions/workflows/test.yml/badge.svg?branch=main)\n[![Twitter Follow](https://img.shields.io/twitter/follow/holochain.svg?style=social&label=Follow)](https://twitter.com/holochain)\n\n# Holochain Client - JavaScript\n\nA JavaScript client for the Holochain Conductor API (works with browsers as well as Nodejs).\n\n> Holochain's Conductor API is under active development. This client package tracks that development fairly closely but sometimes gets behind.\n\n## Installation\n\nTo install from NPM, run\n```bash\nnpm install --save-exact @holochain/client\n```\n\n> This code is still under alpha development and npm releases are pre-releases with `dev` tags meaning they will not use full semantic versioning, and you may wish to lock to an exact version of the library for that reason, as shown in the above command.\n\n## Sample usage\n\n### Use AdminWebsocket\n```typescript\n  const admin = await AdminWebsocket.connect(`ws://localhost:8000`, TIMEOUT)\n  await admin.generateAgentPubKey()\n```\n\n### Use AppWebsocket\n```typescript\n  const signalCb = (signal: AppSignal) => {\n    // impl...\n    resolve()\n  }\n\n  const TIMEOUT = 12000\n  // default timeout is set to 12000\n  const client = await AppWebsocket.connect(`ws://localhost:${appPort}`, 12000, signalCb)\n\n  // default timeout set here (30000) will overwrite the defaultTimeout(12000) set above\n  await client.callZome({\n   cap: null,\n   cell_id,\n   zome_name: \"test_zome\",\n   fn_name: 'test_emitter_fn',\n   provenance: fakeAgentPubKey('TODO'),\n   payload: null,\n  }, 30000)\n```\n\n## API Reference\n\nSee [docs/API.md](docs/API.md)\n\n\n# Holochain Compatibility\n\nSee [default.nix](./default.nix) for the Holochain version this package is compatible with.\n\nIf updating the Holochain version included in holonix, please use `niv update` as explained in the\n[Holochain Installation Guide](https://developer.holochain.org/install/#upgrading-the-holochain-version).\n\n## Running tests\n\nYou need a version (`stable` toolchain) of Rust available.\n\nYou need `holochain` and `hc` on your path, best to get them from nix with `nix-shell`.\n\nTo perform the pre-requisite DNA compilation steps, and run the Nodejs test, run:\n```bash\nnix-shell\n./run-test.sh\n```\n\n## Contribute\n\nHolochain is an open source project.  We welcome all sorts of participation and are actively working on increasing surface area to accept it.  Please see our [contribution guidelines](/CONTRIBUTING.md) for our general practices and protocols on participating in the community, as well as specific expectations around things like code formatting, testing practices, continuous integration, etc.\n\n* Connect with us on our [forum](https://forum.holochain.org)\n\n## License\n\n [![License: CAL 1.0](https://img.shields.io/badge/License-CAL%201.0-blue.svg)](https://github.com/holochain/cryptographic-autonomy-license)\n\nCopyright (C) 2020-2022, Holochain Foundation\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the license\nprovided in the LICENSE file (CAL-1.0).  This program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\nPURPOSE.\n","readmeFilename":"README.md"}