# mattpocock/slopwatch architecture

> Architecture diagram of the GitHub repository mattpocock/slopwatch, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mattpocock/slopwatch
- Repository: https://github.com/mattpocock/slopwatch

## Overview

slopwatch is currently a small TypeScript workspace skeleton, not a functioning ingestion product. The Claude Code listener and server each log a stub message; the shared events package defines a placeholder event type and an unimplemented sendEvents function. No user-to-result workflow or runtime connections are shown, so the graph preserves these components without implying that events are sent or received.

## Diagram (Mermaid)

```mermaid
flowchart TD

node_listener["Claude Code Listener<br/>[index.ts]"]
node_events["Event Contract<br/>[index.ts]"]
node_server["Server Stub<br/>[index.ts]"]

click node_listener "https://github.com/mattpocock/slopwatch/blob/main/listeners/claude-code/src/index.ts"
click node_events "https://github.com/mattpocock/slopwatch/blob/main/packages/events/src/index.ts"
click node_server "https://github.com/mattpocock/slopwatch/blob/main/apps/server/src/index.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_listener,node_events toneTeal
class node_server toneMint
```

## Components

### Other components

- [Claude Code Listener](https://github.com/mattpocock/slopwatch/blob/main/listeners/claude-code/src/index.ts): `listeners/claude-code/src/index.ts`
- [Event Contract](https://github.com/mattpocock/slopwatch/blob/main/packages/events/src/index.ts): `packages/events/src/index.ts`
- [Server Stub](https://github.com/mattpocock/slopwatch/blob/main/apps/server/src/index.ts): `apps/server/src/index.ts`
