# Visualizer Guide

> Overview of the React frontend for graph visualization Use when this capability is needed.

- Skill: `tomevault-io/visualizer-guide` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/visualizer-guide`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/visualizer-guide/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/visualizer-guide

---


# Visualizer Frontend Guide

Overview of the visualizer in `visualizer/`.

## Overview

React/TypeScript SPA for interactive graph visualization. Uses react-graph-vis for rendering.

## Structure

```
src/
├── components/   # React components (graph/, inspector/, common/)
├── contexts/     # State providers (Service, GraphQuery, GraphOptions, Selection)
├── hooks/        # Custom hooks
├── reducers/     # State reducers (filter, query, history)
├── services/     # API clients (Graph, Doc, Entity, Relation, Cooccurrence)
└── types/        # TypeScript definitions
```

## Context Hierarchy

```
ServiceContext (API services)
  └── GraphOptionsContext (viz options)
      └── GraphQueryContext (query state)
          └── SelectionContext (selected items)
```

## Services

Mirror backend routes with auto-detected API URL:

- GraphService → `/graph`
- DocService → `/docs`
- EntityService → `/entities`
- RelationService → `/relations`
- CooccurrenceService → `/cooccurrences`

## Development

```bash
npm install
npm start      # Dev server :3000, proxies to :8001
npm run build  # Output to build/
```

Build output is served by the FastAPI backend from `server/static/`.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/kasperfyhn) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

