
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
@rubriclab/events
Advanced tools
This Events package gives you a type-safe, Redis-backed pub/sub layer that streams events from your server to the browser over Server-Sent Events (SSE).
This Events package gives you a type-safe, Redis-backed pub/sub layer that streams events from your server to the browser over Server-Sent Events (SSE).
It is part of Rubric's architecture for Generative UI when used with:
bun add @rubriclab/events
@rubriclab scope packages are not built, they are all raw Typescript. If using in a Next.js app, make sure to transpile:
// next.config.ts
import type { NextConfig } from 'next'
export default {
transpilePackages: ['@rubriclab/events'],
reactStrictMode: true
} satisfies NextConfig
If using inside the monorepo (@rubric), simply add
{"@rubriclab/events": "*"}to dependencies and then runbun i
export const eventTypes = createEventTypes({
ping: z.literal('ping'),
})
import { createEventsServer } from '@rubriclab/events/server'
import env from '~/env'
import { eventTypes } from './types'
export const { publish, GET, maxDuration } = createEventsServer({
eventTypes,
redisURL: env.UPSTASH_REDIS_URL
})
// app/api/events/route.ts
export { GET, maxDuration } from './server'
import { createEventsClient } from '@rubriclab/events/client'
import { eventTypes } from './types'
export const { useEvents } = createEventsClient({
url: '/api/events', // The url of the server
eventTypes
})
await publish({
channel: '123',
eventType: 'ping',
payload: 'ping'
})
useEvents({
id: '123',
on: {
ping: (payload) => {
console.log('ping', payload)
}
}
})
Commits to main will automatically publish a new version to npm.
FAQs
This Events package gives you a type-safe, Redis-backed pub/sub layer that streams events from your server to the browser over Server-Sent Events (SSE).
The npm package @rubriclab/events receives a total of 37 weekly downloads. As such, @rubriclab/events popularity was classified as not popular.
We found that @rubriclab/events demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.