Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@synonymdev/slashtag
Advanced tools
Identity, discovery, and p2p communication for Slashtags protocol.
Slashtag is the identity layer of Slashtags protocol, that enables attaching metadata to a keypair (through Hyperdrives), and p2p communications between peers.
This module creates a node that manages a Slashtag's drives, and facilitating p2p connections between slashtags.
npm install @synonymdev/slashtag
Quick example showing how to create a Slashtag node and use it to create resolvable public profile.
NOTE: you do NOT need to wait for ready as all internals await this themselves.
import Slashtag from '@synonymdev/slashtag';
const alice = new Slashtag();
const bob = new Slashtag();
await alice.listen() // listen on alice's public key
await bob.connect(alice.key).opened
slashtag.url
A SlashURL string in the form slash:<z-base-32 key>
.
slashtag.drivestore
Drivestore instance for this slashtag.
await slashtag.listen()
Listen on the slashtag's public key through Hyperswarm DHT p2p server
const socket = slashtag.connect(destination)
Connect to a Slashtag's server. destination
is the peer's public key, as a Buffer/Uint8Array, or encoded as a z-base-32 or slash: url.
Returns a promise of Encrypted Connection.
You can await socket.opened
.
await slashtag.close()
Destroys the Hyperswarm node, and closes the Corestore instance.
Emitted whenever the dht recieves a connection as a server or client.
socket
is an end-to-end NoiseSecretStream
FAQs
Identity, discovery, and p2p communication for Slashtags protocol.
The npm package @synonymdev/slashtag receives a total of 0 weekly downloads. As such, @synonymdev/slashtag popularity was classified as not popular.
We found that @synonymdev/slashtag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.