
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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 related modules that form part of StanzaJS:
Name | Description | Source |
---|---|---|
stanza-shims | Runtime shims used by StanzaJS for node, browsers, and React Native. | Source |
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,368 weekly downloads. As such, stanza popularity was classified as popular.
We found that stanza 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.