https://github.com/chainsafe/js-libp2p-quic
https://github.com/chainsafe/js-libp2p-quic
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chainsafe/js-libp2p-quic
- Owner: ChainSafe
- License: mit
- Created: 2024-08-28T20:35:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-06T18:43:07.000Z (10 months ago)
- Last Synced: 2025-05-07T03:03:53.238Z (9 months ago)
- Language: Rust
- Size: 51.3 MB
- Stars: 8
- Watchers: 8
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @chainsafe/libp2p-quic
[](http://libp2p.io/)
[](https://github.com/chainsafe/js-libp2p-quic/actions/workflows/main.yml?query=branch%3Amain)
> A QUIC transport for libp2p
# About
A [libp2p transport](https://docs.libp2p.io/concepts/transports/overview/) based on the QUIC networking stack.
## Example
```TypeScript
import { createLibp2p } from 'libp2p'
import { quic } from '@chainsafe/libp2p-quic'
import { multiaddr } from '@multiformats/multiaddr'
const node = await createLibp2p({
transports: [
quic()
]
})
const ma = multiaddr('/ip4/123.123.123.123/udp/1234/quic-v1')
// dial a TCP connection, timing out after 10 seconds
const connection = await node.dial(ma, {
signal: AbortSignal.timeout(10_000)
})
// use connection...
```
# Install
```console
$ npm i @chainsafe/libp2p-quic
```
# API Docs
-
# License
MIT ([LICENSE](https://github.com/ChainSafe/js-libp2p-quic/blob/main/LICENSE) / )