Gathering detailed insights and metrics for @stomp/stompjs
Gathering detailed insights and metrics for @stomp/stompjs
Gathering detailed insights and metrics for @stomp/stompjs
Gathering detailed insights and metrics for @stomp/stompjs
stompjs
STOMP for JavaScript apps (Web browser & node.js)
@stomp/ng2-stompjs
Angular 6/7/8/9/10 [](https://travis-ci.org/stomp-js/ng2-stompjs)
@types/stompjs
TypeScript definitions for stompjs
zt-stompjs
STOMP for JavaScript apps (Web browser & node.js)
Javascript and Typescript Stomp client for Web browsers and node.js apps
npm install @stomp/stompjs
Typescript
Module System
Node Version
NPM Version
99.5
Supply Chain
100
Quality
83.1
Maintenance
100
Vulnerability
100
License
TypeScript (53.28%)
JavaScript (46.07%)
Shell (0.5%)
Dockerfile (0.14%)
Total Downloads
29,984,164
Last Day
10,819
Last Week
228,046
Last Month
916,097
Last Year
9,842,860
Apache-2.0 License
824 Stars
768 Commits
88 Forks
16 Watchers
7 Branches
10 Contributors
Updated on May 22, 2025
Minified
Minified + Gzipped
Latest Version
7.1.1
Package Id
@stomp/stompjs@7.1.1
Unpacked Size
415.00 kB
Size
89.50 kB
File Count
84
NPM Version
10.8.2
Node Version
22.7.0
Published on
Apr 06, 2025
Cumulative downloads
Total Downloads
Last Day
-9.9%
10,819
Compared to previous day
Last Week
1%
228,046
Compared to previous week
Last Month
-6.7%
916,097
Compared to previous month
Last Year
37.9%
9,842,860
Compared to previous year
19
This library provides a STOMP over WebSocket client for Web browser and node.js applications.
Please visit https://stomp-js.github.io/ for guides, FAQs and API docs.
This library allows you to connect to a STOMP broker over WebSocket. This library supports complete STOMP specifications including all current protocol variants. Most popular messaging brokers support STOMP and STOMP over WebSockets out-of-the-box or using plugins.
1<!-- 2 JSPM Generator Import Map 3 Edit URL: https://generator.jspm.io/#U2NgYGBkDM0rySzJSU1hcCguyc8t0AeTWcUO5noGega6SakliaYAYTzJAykA 4 --> 5<script type="importmap"> 6 { 7 "imports": { 8 "@stomp/stompjs": "https://ga.jspm.io/npm:@stomp/stompjs@7.0.0/esm6/index.js" 9 } 10 } 11</script> 12 13<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) --> 14<script 15 async 16 src="https://ga.jspm.io/npm:es-module-shims@1.5.1/dist/es-module-shims.js" 17 crossorigin="anonymous" 18></script> 19 20<script type="module"> 21 import { Client } from '@stomp/stompjs'; 22 23 const client = new Client({ 24 brokerURL: 'ws://localhost:15674/ws', 25 onConnect: () => { 26 client.subscribe('/topic/test01', message => 27 console.log(`Received: ${message.body}`) 28 ); 29 client.publish({ destination: '/topic/test01', body: 'First Message' }); 30 }, 31 }); 32 33 client.activate(); 34</script>
1$ npm install @stomp/stompjs ws
1import { Client } from '@stomp/stompjs'; 2 3import { WebSocket } from 'ws'; 4Object.assign(global, { WebSocket }); 5 6const client = new Client({ 7 brokerURL: 'ws://localhost:15674/ws', 8 onConnect: () => { 9 client.subscribe('/topic/test01', message => 10 console.log(`Received: ${message.body}`) 11 ); 12 client.publish({ destination: '/topic/test01', body: 'First Message' }); 13 }, 14}); 15 16client.activate();
The API documentation is hosted as GitHub pages for the StompJS family of libraries. You may head straight to the https://stomp-js.github.io/api-docs/latest/
This library comes with detailed usage instructions. Please find it at Usage instructions. Check out other guides at https://stomp-js.github.io/.
There is quite detailed API documentation, you should start at https://stomp-js.github.io/api-docs/latest/classes/Client.html.
if you were using an older version of this library, you would need to make changes to your code. Head to Upgrading.
https://github.com/stomp-js/rx-stomp is based on this library and exposes the entire functionality offered by this library as RxJS Observables.
The npm package includes TypeScript definitions, so there is no need to install it separately.
Please visit Change Log.
If you want to understand the code, develop, or contribute. Please visit How to contribute.
License - Apache-2.0
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
25 commit(s) and 23 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 3/27 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-19
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More