JavaScript implementation of a memory transport for libp2p. For testing and prototyping purposes and other closed environment scenarios.
> npm i libp2p-memory
const Memory = require('libp2p-memory')
const Libp2p = require('libp2p')
const Memory = require('libp2p-memory')
const MPLEX = require('libp2p-mplex')
const { NOISE } = require('libp2p-noise')
const node = await Libp2p.create({
modules: {
transport: [Memory],
streamMuxer: [MPLEX],
connEncryption: [NOISE]
}
})
For more information see libp2p/js-libp2p/doc/CONFIGURATION.md#customizing-transports.
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.
MIT - Protocol Labs 2021