RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Diff/novuhq-novu-cursor-rules-dependency-graph ↔ novuhq-novu-cursor-rules-ws

Comparison

A · Cursor rules · novuhq/novuB · Cursor rules · novuhq/novu
What each file covers, counted
DimensionSharedOnly in AOnly in BOverlap
Sections0120%
Commands0010%
Section tags0010%

What each file covers

Sections

0 shared · 1 only in A · 2 only in B
  • − Dependency Graph
  • + WebSocket Service
  • + WebSocket Conventions

Commands

0 shared · 0 only in A · 1 only in B
  • + pnpm start:ws

Section tags

0 shared · 0 only in A · 1 only in B
  • + code-style

Line diff

+18 added−28 removed7 unchanged20.0% identical
novuhq/novu · .cursor/rules/dependency-graph.mdc
@@ −1 @@
1---
2description: Novu monorepo dependency graph — use when assessing blast radius before changing shared code
3globs:
4alwaysApply: false
5---
6 
7## Dependency Graph
8 
9```mermaid
10graph TD
11 subgraph apps [Apps]
12 api[api]
13 dashboard[dashboard]
14 worker[worker]
15 ws[ws]
16 end
17 subgraph libs [Libs - internal only]
18 dal[dal]
19 appGeneric[application-generic]
20 end
21 subgraph pkgs [Packages - published to NPM]
22 shared[shared]
23 framework[framework]
24 jsSDK[js]
25 reactSDK[react]
26 end
27 api --> appGeneric --> dal
28 worker --> appGeneric
29 ws --> appGeneric
30 api --> shared
31 worker --> shared
32 dashboard --> reactSDK --> jsSDK --> shared
33 dashboard --> framework
34```
 
 
 
 
 
 
 
 
 
 
35 
novuhq/novu · .cursor/rules/ws.mdc
@@ +1 @@
1---
2description: Rules for working in the WebSocket service (real-time delivery)
3globs: apps/ws/**/*
4alwaysApply: false
5---
6 
7## WebSocket Service
8 
9**Stack:** NestJS · Socket.io with Redis adapter (horizontal scaling)
10 
11**Run:** `pnpm start:ws` — only needed for real-time features (live inbox, read/unread sync). Skip for most tasks.
12 
13**Key directories:**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14```
15apps/ws/src/ # Socket gateways, guards, and event handlers
16```
17 
18### WebSocket Conventions
19 
20**Authentication:** Clients authenticate via JWT on the Socket.io handshake.
21 
22**Scaling:** The Redis adapter is required in production — multiple ws instances share socket state through it.
23 
24**Client packages:** Events emitted here are consumed by `@novu/js` and `@novu/react`. New Socket.io event types require matching updates in both packages.
25 
@@ −1 +1 @@
11 ---
2−description: Novu monorepo dependency graph — use when assessing blast radius before changing shared code
3−globs:
2+description: Rules for working in the WebSocket service (real-time delivery)
3+globs: apps/ws/**/*
44 alwaysApply: false
55 ---
66  
7−## Dependency Graph
7+## WebSocket Service
88  
9−```mermaid
10−graph TD
11− subgraph apps [Apps]
12− api[api]
13− dashboard[dashboard]
14− worker[worker]
15− ws[ws]
16− end
17− subgraph libs [Libs - internal only]
18− dal[dal]
19− appGeneric[application-generic]
20− end
21− subgraph pkgs [Packages - published to NPM]
22− shared[shared]
23− framework[framework]
24− jsSDK[js]
25− reactSDK[react]
26− end
27− api --> appGeneric --> dal
28− worker --> appGeneric
29− ws --> appGeneric
30− api --> shared
31− worker --> shared
32− dashboard --> reactSDK --> jsSDK --> shared
33− dashboard --> framework
9+**Stack:** NestJS · Socket.io with Redis adapter (horizontal scaling)
10+ 
11+**Run:** `pnpm start:ws` — only needed for real-time features (live inbox, read/unread sync). Skip for most tasks.
12+ 
13+**Key directories:**
3414 ```
15+apps/ws/src/ # Socket gateways, guards, and event handlers
16+```
17+ 
18+### WebSocket Conventions
19+ 
20+**Authentication:** Clients authenticate via JWT on the Socket.io handshake.
21+ 
22+**Scaling:** The Redis adapter is required in production — multiple ws instances share socket state through it.
23+ 
24+**Client packages:** Events emitted here are consumed by `@novu/js` and `@novu/react`. New Socket.io event types require matching updates in both packages.
3525  
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack