Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Modern XMPP, with a JSON API.
StanzaJS is a library for using modern XMPP, and it does that by exposing everything as JSON. Unless you insist, you have no need to ever see or touch any XML when using StanzaJS.
npm install stanza
import * as XMPP from 'stanza';
const client = XMPP.createClient({
jid: 'echobot@example.com',
password: 'hunter2',
// If you have a .well-known/host-meta.json file for your
// domain, the connection transport config can be skipped.
transports: {
websocket: 'wss://example.com:5281/xmpp-websocket',
bosh: 'https://example.com:5281/http-bind'
}
});
client.on('session:started', () => {
client.getRoster();
client.sendPresence();
});
client.on('chat', msg => {
client.sendMessage({
to: msg.from,
body: 'You sent: ' + msg.body
});
});
client.connect();
MUC Room: discuss@stanzajs.org / Logs
These are some additional modules that are highly recommended for use with StanzaJS:
Name | Description | Source |
---|---|---|
staydown | Render helper that keeps an element scrolled to the bottom based on user intent. | Source |
webrtc-adapter | Shims browsers to provide a consistent WebRTC API. | Source |
Portions of StanzaJS are derived from prior works. See NOTICE file for details.
If you like this, follow @lancestout on Twitter.
FAQs
Modern XMPP in the browser, with a JSON API
The npm package stanza receives a total of 3,561 weekly downloads. As such, stanza popularity was classified as popular.
We found that stanza demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.