Opentrace CLAUDE.md
OpenTrace is a knowledge graph platform that maps system architecture, code structure, and service relationships giving you a visual, queryable map of how your
> Sourced from [opentrace/opentrace](https://github.com/opentrace/opentrace) — [Apache-2.0](https://github.com/opentrace/opentrace/blob/2b9e3f6f0db6c6d590ddb52434bcd2e6d6d8dc1c/ui/src/job/CLAUDE.md). # OpenTrace Monorepo for the OpenTrace platform — a knowledge graph that maps system architecture, code structure, and service relationships. ## Repository Structure ``` ui/ — React/TypeScript frontend (includes graph visualization components) agent/ — Python agent (loads data into the graph) proto/ — Protobuf definitions plugins/ — Editor / AI integrations claude-code/ — Claude Code plugin (MCP server config) opencode/ — OpenCode plugin (native TS plugin, Bun runtime) ``` ## Building & Running ```bash # Build everything make build # Run individual components make agent # Run Python agent make ui # Start React dev server (port 5173–5180, auto-detected) # Run all tests make test ``` ### Agent ```bash cd agent uv sync # Install dependencies uv run pytest # Run tests ``` ### UI ```bash cd ui npm install npm run dev ``` #### Worktree & port handling `ui/vite.config.ts` has a worktree-aware helper: - **`resolveEnvDir()`** — `.env` is gitignored so it only exists in the main working tree. When running from a worktree, falls back to the main tree's `.env` via `git worktree list --porcelain`. - **Port** — defaults to 5173. Set `PORT=5174 npm run dev` to use a different port (e.g. when running multiple worktrees). Uses `strictPort: true` so Vite errors if the port is taken. ## Agents | Agent | Description | | ---------------------- | ------------------------------------------------------------------------------------------ | | `@code-explorer` | Explore indexed code structure — find classes, functions, services and their relationships | | `@dependency-analyzer` | Analyze dependencies and blast radius for code changes | ## Commands | Command | Description | | ----------------- | --------------------------------------------------------------- | | `/graph-status` | Show overview of indexed nodes by type, list repos and services | | `/explore <name>` | Quick exploration of a named component in the graph | ## Graph Node Types Service, Repo, Repository, Class, Module, Function, File, Directory, Cluster, Namespace, Deployment, InstrumentedService, Span, Log, Metric, Endpoint, Database, DBTable
Add to your project
Paste into your project's CLAUDE.md or ~/.claude/CLAUDE.md for global rules.
More for React
Python FastAPI Expert
by @Claude Rules
Building high-performance REST APIs with FastAPI, Pydantic, and async Python.
Node.js Express API
by @Claude Rules
Building scalable Node.js REST APIs with Express, middleware, and proper async patterns.
Django Web Framework
by @Claude Rules
Full-stack Django development with DRF, proper models, and security best practices.
Vue.js Composition API
by @Claude Rules
Modern Vue 3 development with Composition API, Pinia, and TypeScript.
Angular Enterprise
by @Claude Rules
Enterprise Angular development with RxJS, NgRx, standalone components, and best practices.
Mindx CLAUDE.md
by @DotNetAge
一个可自主进化的数字化分身
MCP servers for React
microsoft/markitdown
🎖️ 🐍 🏠 - MCP tool access to MarkItDown -- a library that converts many file formats (local or remote) to Markdown for LLM consumption.
netdata/netdata#Netdata
🎖️ 🏠 ☁️ 📟 🍎 🪟 🐧 - Discovery, exploration, reporting and root cause analysis using all observability data, including metrics, logs, systems, containers, processes, and network connections
upstash/context7
📇 ☁️ - Up-to-date code documentation for LLMs and AI code editors.
Browse by Tag
Get the Claude Code Starter Pack
Top CLAUDE.md rules for Next.js, TypeScript, Python, Go, and React — free.
