{"id":20388211,"url":"https://github.com/libp2p/js-libp2p-daemon-client","last_synced_at":"2026-02-26T09:12:48.077Z","repository":{"id":33981768,"uuid":"164421288","full_name":"libp2p/js-libp2p-daemon-client","owner":"libp2p","description":"A js daemon client to interact with a libp2p daemon","archived":false,"fork":false,"pushed_at":"2024-01-31T16:51:26.000Z","size":1295,"stargazers_count":5,"open_issues_count":11,"forks_count":5,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-10T02:17:36.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libp2p.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-01-07T11:15:03.000Z","updated_at":"2023-07-03T15:55:58.000Z","dependencies_parsed_at":"2023-02-10T14:45:20.058Z","dependency_job_id":"e38a09ae-a335-4fe4-8b66-f970c15527f1","html_url":"https://github.com/libp2p/js-libp2p-daemon-client","commit_stats":{"total_commits":89,"total_committers":10,"mean_commits":8.9,"dds":0.5056179775280899,"last_synced_commit":"31b3615b7fe75ca76b429516073d702b1f7fe916"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-libp2p-daemon-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-libp2p-daemon-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-libp2p-daemon-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-libp2p-daemon-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libp2p","download_url":"https://codeload.github.com/libp2p/js-libp2p-daemon-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553892,"owners_count":21123543,"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":[],"created_at":"2024-11-15T03:07:55.628Z","updated_at":"2026-02-26T09:12:43.051Z","avatar_url":"https://github.com/libp2p.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"libp2p-daemon client JavaScript implementation\n======\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai/)\n[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)\n[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](https://discuss.libp2p.io)\n\n\u003e A Javascript client to interact with a standalone deployment of a libp2p host, running in its own OS process. Essentially, this client allows to communicate with other peers, interact with the DHT, participate in pubsub, etc. no matter the language they are implemented with.\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos)\n\n## Table of Contents\n\n* [Specs](#specs)\n* [Install](#install)\n* [Usage](#usage)\n* [API](#api)\n* [Contribute](#contribute)\n* [License](#license)\n\n## Specs\n\nThe specs for the daemon are currently housed in the go implementation. You can read them at [libp2p/go-libp2p-daemon](https://github.com/libp2p/go-libp2p-daemon/blob/master/specs/README.md)\n\n## Install\n\n`npm install libp2p-daemon-client`\n\n## Usage\n\n### Run a daemon process\n\nThere are currently two implementations of the `libp2p-daemon`:\n\n- [js-libp2p-daemon](https://github.com/libp2p/js-libp2p-daemon)\n- [go-libp2p-daemon](https://github.com/libp2p/go-libp2p-daemon)\n\n### Interact with the daemon process using the client\n\n```js\nconst Client = require('libp2p-daemon-client')\n\nconst defaultSock = '/tmp/p2pd.sock'\nconst client = new Client(defaultSock)\n\n// interact with the daemon\nlet identify\ntry {\n  identify = await client.identify()\n} catch (err) {\n  // ...\n}\n\n// close the socket\nawait client.close()\n```\n\n## API\n\n* [Getting started](API.md#getting-started)\n* [`close`](API.md#close)\n* [`connect`](API.md#connect)\n* [`identify`](API.md#identify)\n* [`listPeers`](API.md#listPeers)\n* [`openStream`](API.md#openStream)\n* [`registerStream`](API.md#registerStream)\n* [`dht.put`](API.md#dht.put)\n* [`dht.get`](API.md#dht.get)\n* [`dht.findPeer`](API.md#dht.findPeer)\n* [`dht.provide`](API.md#dht.provide)\n* [`dht.findProviders`](API.md#dht.findProviders)\n* [`dht.getClosestPeers`](API.md#dht.getClosestPeers)\n* [`dht.getPublicKey`](API.md#dht.getPublicKey)\n\n## Contribute\n\nThis module is actively under development. Please check out the issues and submit PRs!\n\n## License\n\nMIT © Protocol Labs","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Fjs-libp2p-daemon-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibp2p%2Fjs-libp2p-daemon-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Fjs-libp2p-daemon-client/lists"}