How fazzone/structural-demo works
Project Type Analysis
This is a web-based structural editor with both browser and Electron support, built primarily in Clojure/ClojureScript. The project appears to follow a component-based architecture with several distinct subsystems.
Main Components
A. Core Application Layer:
• Core Engine (src/sted/core.cljc)
• Schema System (src/sted/schema.cljc)
• Command System (src/sted/cmd/*)
B. UI Component Layer:
• Root Component (src/sted/comp/root.cljc)
• Various UI Components (src/sted/comp/*)
• Document Components (src/sted/comp/doc.cljc)
C. System Services:
• Keyboard System (src/sted/sys/keyboard.cljs)
• Mouse System (src/sted/sys/mouse.cljs)
• Search System (src/sted/sys/search/*)
• Evaluation System (src/sted/sys/eval/*)
D. Platform-specific Components:
• Electron Main Process (src/sted/electron_main.cljs)
• Browser Entry Point (src/sted/page.cljs)
E. Data Flow System:
• Reactive Database (src/sted/db_reactive.cljs)
• Data Format Handlers (src/sted/df/*)
┌─────────────────────────────────────────────┐
• Client Layer │
• ┌─────────────┐ ┌──────────────┐ │
• Browser │ │ Electron │ │
• ┘ └──────────────┘ │
• ┤
• Component Layer │
• ┌─────────────┐ ┌──────────────┐ │
• UI │ │ Editor │ │
• Components │◄─────► │ Components │ │
• ┘ └──────────────┘ │
• ┤
• System Services │
• ┌─────────┐ ┌────────┐ ┌────────────┐ │
• Keyboard │ │ Mouse │ │ Search │ │
• System │ │ System │ │ System │ │
• ┘ └────────┘ └────────────┘ │
• ┤
• Core Services │
• ┌─────────┐ ┌────────┐ ┌────────────┐ │
• Schema │ │Command │ │ Reactive │ │
• System │ │System │ │ DB │ │
• ┘ └────────┘ └────────────┘ │
• ┘