Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:777genius Agent teams ai React Renderer

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Frontend
Last Updated 2026-10-22 00:00 GMT

Overview

Chromium-based renderer process running React 19.x with Zustand 4.x state management, Tailwind CSS 3.x, and Canvas 2D for agent graph visualization.

Description

The React renderer is the UI layer of the Electron desktop app. It runs in a Chromium sandbox with the `@vitejs/plugin-react` plugin and compiles to ESNext via esbuild. State management uses Zustand 4.x with feature-scoped slices (team, changeReview, editor, notifications, etc.). The agent graph visualization is a standalone package (`@claude-teams/agent-graph`) using d3-force simulation and Canvas 2D rendering with semantic zoom levels. Path aliases: `@renderer/*`, `@shared/*`, `@preload/*`. CodeMirror 6 provides the built-in code editor with Git support.

Usage

Use this environment for any renderer-side implementation: graph data adaptation, kanban layout, force-directed simulation, canvas rendering, graph interaction, activity visualization HUDs, change review state management, stream JSON parsing, context tracking, session analytics, context display components, and quick connect gating.

System Requirements

Category Requirement Notes
OS macOS, Windows, or Linux Runs inside Electron's Chromium
Framework React 19.x JSX runtime via `react-jsx`
State Zustand 4.x Feature-scoped slices with structural sharing
Styling Tailwind CSS 3.x PostCSS-based
Editor CodeMirror 6.x Multi-language syntax support
Graphics Canvas 2D + d3-force Agent graph visualization

Dependencies

Node.js Packages

  • `react` >= 19.x
  • `zustand` >= 4.x
  • `tailwindcss` >= 3.x
  • `@codemirror/*` >= 6.x (state, language, merge, etc.)
  • `d3-force` (via `@claude-teams/agent-graph`)
  • `@vitejs/plugin-react`
  • `i18next` + `react-i18next` (internationalization)

Credentials

No runtime credentials required in the renderer. All sensitive operations are proxied to the main process via IPC.

Quick Install

# Renderer dependencies are part of the root pnpm install
pnpm install

# Dev server with hot reload
pnpm dev

Code Evidence

React JSX configuration from `tsconfig.json:6`:

"jsx": "react-jsx"

Path aliases from `tsconfig.json:17-21`:

"paths": {
  "@renderer/*": ["./src/renderer/*"],
  "@shared/*": ["./src/shared/*"],
  "@preload/*": ["./src/preload/*"]
}

Renderer build target from `electron.vite.config.ts:24`:

const rendererDependencyEsbuildTarget = 'esnext'

Common Errors

Error Message Cause Solution
Zustand store re-renders excessively Missing structural sharing on selectors Use snapshot equality tests to verify selector stability
Canvas graph stutters on large teams Too many nodes in d3-force simulation Semantic zoom culls non-visible nodes; enable `shouldRenderNodeAtZoom`
CodeMirror language not loading Missing language package import Ensure `@codemirror/lang-*` is in dependencies

Compatibility Notes

  • Renderer sandbox: No direct Node.js API access; all native operations via IPC to main process.
  • Canvas 2D: Uses pre-rendered sprite cache for glow effects; text measurement cached with 2000-entry LRU.
  • Semantic zoom: Three levels (overview < 0.24, summary < 0.62, detail >= 0.62) control node and task rendering.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment