Files
wild-pc/dashboard-api/CLAUDE.md
Paul Payne f39a551aad feat: Add new tools and configurations for Castle platform
- Introduced `uv.lock` for dependency management with various packages including `pytest`, `colorama`, and `pluggy`.
- Added `pyrightconfig.json` for Python type checking configuration.
- Expanded `recommendations.md` with detailed scaling recommendations and project management strategies.
- Created shared `ruff.toml` for consistent linting across projects.
- Developed `Castle Tools` with various utilities including Android backup, browser automation, document conversion, and search tools.
- Implemented `backup-collect` and `schedule` tools for system administration tasks.
- Enhanced `search` functionality with indexing and querying capabilities using Tantivy.
- Added comprehensive documentation for each tool, including usage examples and installation instructions.
2026-02-20 16:41:19 -08:00

910 B

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

dashboard-api is a FastAPI service. Castle dashboard API.

Commands

uv sync                     # Install dependencies
uv run dashboard-api              # Run service (port 9020)
uv run pytest tests/ -v     # Run tests
uv run ruff check .         # Lint
uv run ruff format .        # Format

Architecture

  • src/dashboard_api/config.py — Settings via pydantic-settings, env prefix DASHBOARD_API_
  • src/dashboard_api/main.py — FastAPI app, lifespan, health endpoint
  • tests/ — pytest with TestClient fixtures

Configuration

Environment variables with DASHBOARD_API_ prefix:

  • DASHBOARD_API_DATA_DIR — Data directory (default: ./data)
  • DASHBOARD_API_HOST — Bind host (default: 0.0.0.0)
  • DASHBOARD_API_PORT — Port (default: 9020)