{"id":25821332,"url":"https://github.com/ipshipyard/js-libp2p-auto-tls","last_synced_at":"2026-03-10T22:36:31.999Z","repository":{"id":276321608,"uuid":"928934383","full_name":"ipshipyard/js-libp2p-auto-tls","owner":"ipshipyard","description":"Automatically acquire a \u003cpeerId\u003e.libp2p.direct TLS certificate","archived":false,"fork":false,"pushed_at":"2025-10-02T15:17:12.000Z","size":81,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T15:44:29.627Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipshipyard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-02-07T14:05:16.000Z","updated_at":"2025-10-02T15:16:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a11925d-7b26-4ddf-a074-9b83168a2b63","html_url":"https://github.com/ipshipyard/js-libp2p-auto-tls","commit_stats":null,"previous_names":["ipshipyard/js-libp2p-auto-tls"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ipshipyard/js-libp2p-auto-tls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipshipyard%2Fjs-libp2p-auto-tls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipshipyard%2Fjs-libp2p-auto-tls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipshipyard%2Fjs-libp2p-auto-tls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipshipyard%2Fjs-libp2p-auto-tls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipshipyard","download_url":"https://codeload.github.com/ipshipyard/js-libp2p-auto-tls/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipshipyard%2Fjs-libp2p-auto-tls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30359177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-02-28T10:54:45.772Z","updated_at":"2026-03-10T22:36:31.990Z","avatar_url":"https://github.com/ipshipyard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @ipshipyard/libp2p-auto-tls\n\n[![codecov](https://img.shields.io/codecov/c/github/ipshipyard/js-libp2p-auto-tls.svg?style=flat-square)](https://codecov.io/gh/ipshipyard/js-libp2p-auto-tls)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipshipyard/js-libp2p-auto-tls/js-test-and-release.yml?branch=main\\\u0026style=flat-square)](https://github.com/ipshipyard/js-libp2p-auto-tls/actions/workflows/js-test-and-release.yml?query=branch%3Amain)\n\n\u003e Automatically acquire a \u003cpeerId\u003e.libp2p.direct TLS certificate\n\n# About\n\n\u003c!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n--\u003e\n\nWhen a publicly dialable address is detected, use the p2p-forge service at\n\u003chttps://registration.libp2p.direct\u003e to acquire a valid Let's Encrypt-backed\nTLS certificate, which the node can then use with the relevant transports.\n\nThe node must be configured with a listener for at least one of the following\ntransports:\n\n- TCP or WS or WSS, (along with the Yamux multiplexer and TLS or Noise encryption)\n- QUIC-v1\n- WebTransport\n\nIt also requires the Identify protocol.\n\n## Example - Use UPnP to hole punch and auto-upgrade to Secure WebSockets\n\n```TypeScript\nimport { noise } from '@chainsafe/libp2p-noise'\nimport { yamux } from '@chainsafe/libp2p-yamux'\nimport { autoTLS } from '@ipshipyard/libp2p-auto-tls'\nimport { identify } from '@libp2p/identify'\nimport { keychain } from '@libp2p/keychain'\nimport { webSockets } from '@libp2p/websockets'\nimport { uPnPNAT } from '@libp2p/upnp-nat'\nimport { createLibp2p } from 'libp2p'\n\nconst node = await createLibp2p({\n  addresses: {\n    listen: [\n      '/ip4/0.0.0.0/tcp/0/ws'\n    ]\n  },\n  transports: [\n    webSockets()\n  ],\n  connectionEncrypters: [\n    noise()\n  ],\n  streamMuxers: [\n    yamux()\n  ],\n  services: {\n    autoTLS: autoTLS(),\n    identify: identify(),\n    keychain: keychain(),\n    upnp: uPnPNAT()\n  }\n})\n\n// ...time passes\n\nconsole.info(node.getMultiaddrs())\n// includes public WSS address:\n// [ '/ip4/123.123.123.123/tcp/12345/wss ]\n```\n\n# Install\n\n```console\n$ npm i @ipshipyard/libp2p-auto-tls\n```\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipshipyard/js-libp2p-auto-tls/LICENSE-APACHE) / \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT ([LICENSE-MIT](https://github.com/ipshipyard/js-libp2p-auto-tls/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%2Fipshipyard%2Fjs-libp2p-auto-tls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipshipyard%2Fjs-libp2p-auto-tls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipshipyard%2Fjs-libp2p-auto-tls/lists"}