
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@wrtn/sse-web
Advanced tools
Server sent events handling for react web app
yarn add @wrtn/sse-web @wrtn/sse-types @microsoft/fetch-event-source
import { WebEventSource } from '@wrtn/sse-web';
import { OpenEvent, MessageEvent, ErrorEvent } from '@wrtn/sse-types';
useEffect(() => {
const eventSource = new WebEventSource('http://localhost:3000/stream');
eventSource.addEventListener('open', (e: OpenEvent) => {
console.log(e);
});
eventSource.addEventListener('message', (e: MessageEvent) => {
const data = JSON.parse(e.data);
if ('chunk' in data && data.chunk) {
setResult((p) => p + data.chunk);
}
});
eventSource.addEventListener('error', (e: ErrorEvent) => {
console.log(e);
eventSource.close();
});
return () => {
eventSource.close();
};
}, []);
FAQs
Server sent events handling for react web app
The npm package @wrtn/sse-web receives a total of 0 weekly downloads. As such, @wrtn/sse-web popularity was classified as not popular.
We found that @wrtn/sse-web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.