{"id":20388260,"url":"https://github.com/libp2p/js-libp2p-example-chat","last_synced_at":"2025-04-12T10:36:10.916Z","repository":{"id":203537116,"uuid":"709823556","full_name":"libp2p/js-libp2p-example-chat","owner":"libp2p","description":"An example chat app using libp2p","archived":false,"fork":false,"pushed_at":"2025-02-21T14:58:57.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-08T18:51:49.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libp2p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2023-10-25T13:22:06.000Z","updated_at":"2025-02-21T14:58:58.000Z","dependencies_parsed_at":"2025-02-14T10:35:30.540Z","dependency_job_id":null,"html_url":"https://github.com/libp2p/js-libp2p-example-chat","commit_stats":null,"previous_names":["libp2p/js-libp2p-example-chat"],"tags_count":0,"template":false,"template_full_name":"libp2p/js-libp2p-example-fork-go-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-libp2p-example-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-libp2p-example-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-libp2p-example-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-libp2p-example-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libp2p","download_url":"https://codeload.github.com/libp2p/js-libp2p-example-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553554,"owners_count":21123473,"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:08:23.403Z","updated_at":"2025-04-12T10:36:10.877Z","avatar_url":"https://github.com/libp2p.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @libp2p/example-chat \u003c!-- omit in toc --\u003e\n\n[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)\n[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)\n[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-examples.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-examples)\n[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-examples/ci.yml?branch=main\\\u0026style=flat-square)](https://github.com/libp2p/js-libp2p-examples/actions/workflows/ci.yml?query=branch%3Amain)\n\n\u003e An example chat app using libp2p\n\n## Table of contents \u003c!-- omit in toc --\u003e\n\n- [Setup](#setup)\n- [Running](#running)\n- [Need help?](#need-help)\n- [License](#license)\n- [Contribution](#contribution)\n\n## Setup\n\n1. Install example dependencies\n    ```console\n    $ npm install\n    ```\n2. Open 2 terminal windows in the `./src` directory.\n\n## Running\n\n1. Run the listener in window 1, `node listener.js`\n2. Run the dialer in window 2, `node dialer.js`\n3. Wait until the two peers discover each other\n4. Type a message in either window and hit *enter*\n5. Tell yourself secrets to your hearts content!\n\n## Need help?\n\n- Read the [js-libp2p documentation](https://github.com/libp2p/js-libp2p/tree/main/doc)\n- Check out the [js-libp2p API docs](https://libp2p.github.io/js-libp2p/)\n- Check out the [general libp2p documentation](https://docs.libp2p.io) for tips, how-tos and more\n- Read the [libp2p specs](https://github.com/libp2p/specs)\n- Ask a question on the [js-libp2p discussion board](https://github.com/libp2p/js-libp2p/discussions)\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / \u003chttp://opensource.org/licenses/MIT\u003e)\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Fjs-libp2p-example-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibp2p%2Fjs-libp2p-example-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Fjs-libp2p-example-chat/lists"}