
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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 11 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.