{"id":20388241,"url":"https://github.com/libp2p/interop","last_synced_at":"2025-04-09T21:16:48.181Z","repository":{"id":26663991,"uuid":"109480517","full_name":"libp2p/interop","owner":"libp2p","description":"Interoperability tests for libp2p Implementations","archived":false,"fork":false,"pushed_at":"2025-03-28T13:28:02.000Z","size":1546,"stargazers_count":19,"open_issues_count":5,"forks_count":9,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-04-09T21:16:38.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-04T08:53:46.000Z","updated_at":"2025-03-28T13:06:46.000Z","dependencies_parsed_at":"2023-02-14T06:15:41.519Z","dependency_job_id":"b339e83c-db7a-48be-949a-25213121ddda","html_url":"https://github.com/libp2p/interop","commit_stats":{"total_commits":146,"total_committers":16,"mean_commits":9.125,"dds":0.6849315068493151,"last_synced_commit":"e7b11967bfc66e28d34788a0b21848a872cc9c23"},"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Finterop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Finterop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Finterop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Finterop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libp2p","download_url":"https://codeload.github.com/libp2p/interop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111973,"owners_count":21049578,"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:11.697Z","updated_at":"2025-04-09T21:16:48.139Z","avatar_url":"https://github.com/libp2p.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![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/interop.svg?style=flat-square)](https://codecov.io/gh/libp2p/interop)\n[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/interop/js-test-and-release.yml?branch=main\\\u0026style=flat-square)](https://github.com/libp2p/interop/actions/workflows/js-test-and-release.yml?query=branch%3Amain)\n\n\u003e Interoperability Tests for libp2p\n\n# About\n\nThis repository holds interop tests for testing compatibility between different libp2p implementations.\n\n## Example - How to run the tests\n\nCreate a js file that configures the different types of daemon:\n\n```js\nimport { interopTests } from '@libp2p/interop'\nimport type { Daemon, DaemonFactory } from '@libp2p/interop'\n\nasync function createGoPeer (options: SpawnOptions): Promise\u003cDaemon\u003e {\n  // your implementation here\n}\n\nasync function createJsPeer (options: SpawnOptions): Promise\u003cDaemon\u003e {\n  // your implementation here\n}\n\nasync function main () {\n  const factory: DaemonFactory = {\n    async spawn (options: SpawnOptions) {\n      if (options.type === 'go') {\n        return createGoPeer(options)\n      }\n\n      return createJsPeer(options)\n    }\n  }\n\n  interopTests(factory)\n}\n\nmain().catch(err =\u003e {\n  console.error(err)\n  process.exit(1)\n})\n```\n\nFor an example, see the js-libp2p interop test runner.\n\n# Install\n\n```console\n$ npm i @libp2p/interop\n```\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 for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Finterop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibp2p%2Finterop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Finterop/lists"}