![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
swarm-peer-server
Advanced tools
A network swarm for creating secure P2P connections over Bittorrent DHT, DNS, and mDNS.
A network swarm for creating secure P2P connections over Bittorrent DHT, DNS, and mDNS.
Uses discovery-swarm to find and connect peers. Connections use asymmetric encryption and Elliptic-curve Diffie-Hellman to establish a secure communication channel. Clients must know the public key of a peer ahead of time to initiate the connection.
Depends on native modules libsodium (via sodium-native) and libutp (via utp-native).
npm install swarm-peer-server
var swarm = require('swarm-peer-server')
swarm.listen({
publicKey: Buffer.from('...'),
secretKey: Buffer.from('...')
}, (socket, peerKey, info) => {
console.log('New authenticated connection')
socket.once('data', data => {
console.log('Received:', data.toString())
socket.destroy()
})
})
var swarm = require('swarm-peer-server')
var { socket } = await swarm.connect({
publicKey: Buffer.from('...'),
secretKey: Buffer.from('...'),
hostPublicKey: Buffer.from('...')
})
console.log('Established connection')
const data = Buffer.from('hello world')
socket.write(data)
examples/echo.js # CLI echo server
var sw = swarm.listen(opts)
Create a new swarm server. Options include:
{
publicKey: crypto.randomBytes(32), // server public key
secretKey: crypto.randomBytes(64), // server secret key
convert: false, // convert signatures to authentication encryption [1]
}
[1] https://download.libsodium.org/doc/advanced/ed25519-curve25519.html
For full list of options take a look at discovery-swarm or the TypeScript definitions.
swarm.connect(opts, (socket, peerKey, info) => {})
Create a new swarm server. Options include:
{
hostPublicKey: crypto.randomBytes(32), // host/server public key
publicKey: crypto.randomBytes(32), // client public key
secretKey: crypto.randomBytes(64), // client secret key
convert: false, // convert signatures to authentication encryption
}
MIT
FAQs
A network swarm for creating secure P2P connections over Bittorrent DHT, DNS, and mDNS.
The npm package swarm-peer-server receives a total of 2 weekly downloads. As such, swarm-peer-server popularity was classified as not popular.
We found that swarm-peer-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.