From 6ba0ff920f803acf14a83e6b1dd67feec75c8711 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Feb 2026 11:06:02 +0000 Subject: [PATCH] Add comprehensive CLAUDE.md for AI assistant guidance Documents the full codebase structure, architecture (static frontend + FastAPI backend), development workflows, API endpoints, deployment setup, environment variables, conventions, and important notes for AI assistants working on this repository. https://claude.ai/code/session_01NRjtGrnUQcET9gTjH8EKDP --- CLAUDE.md | 243 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 243 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..dde1e34 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,243 @@ +# CLAUDE.md - BlackRoad OS Codebase Guide + +## Project Overview + +BlackRoad OS is an AI-powered operating system platform serving a static frontend via GitHub Pages at **blackroad.io** with a FastAPI backend. The project combines a web dashboard for managing 30,000 AI agents, a blockchain explorer (RoadChain), crypto wallet integrations, payment processing (Stripe), and the "Lucidia" AI consciousness framework. + +**Repository:** `blackboxprogramming/blackroad.io` +**License:** MIT +**Domain:** blackroad.io (served via GitHub Pages + CNAME) +**Note:** Active development has moved to the [BlackRoad-OS](https://github.com/BlackRoad-OS) organization. This repo (`blackboxprogramming/blackroad.io`) is legacy but still hosts the live site. + +## Architecture + +### Frontend (Static HTML/JS - GitHub Pages) + +The frontend is a collection of standalone HTML pages with inline CSS and vanilla JavaScript. There is no build step, bundler, or framework — files are served directly by GitHub Pages. + +- **API Client:** `blackroad-api.js` — singleton `BlackRoadAPI` class exposed as `window.blackroad`. Handles auth tokens (JWT in localStorage), all API calls, and UI helpers. +- **Navigation:** `blackroad-nav.js` — shared nav component injected via `blackroadNav.inject()` into any page with a `
`. +- **Shared CSS:** `style.css` — legacy shared styles (light theme, cards). Most newer pages use inline `