Repository navigation
Home
Manvendra Pratap Singh edited this page Oct 11, 2026
·
4 revisions
CodeLens is a high-performance, 100% offline, air-gapped Java codebase intelligence and architectural exploration platform. It transforms complex, monolithic, or unfamiliar Java repositories into intuitive, navigable architectural systems, human-readable transaction storylines, and grounded AI-assisted architectural intelligence.
flowchart LR
A["Java Source Files\n(.java AST Walk)"] --> B["Embedded Storage Core\n(H2 MVStore + Lucene Index)"]
B --> C["8-Stage Sequential Pipeline\n(Topology, Integrity, CodeStory, Reports)"]
C --> D["Interactive Web Workspaces\n(Graphify 2D, 3D City/Galaxy, Story Player, Ask AI)"]
C --> E["Developer CLI Suite\n(scan, story, trace, what-if, ask, pr-story)"]
| Section | Key Topics Covered |
|---|---|
| 1. Architecture & System Design | Modular multi-JAR runtime, embedded H2 LZF MVStore, Lucene indexing, in-memory JGraphT topology, and multi-provider AI Grounding Engine. |
| 2. 8-Stage Scan Pipeline & Readiness | Sequential 8-stage readiness pipeline (PARSE, INDEX, GRAPH, LAYOUT, MODULES, INTEGRITY, CODESTORY, REPORTS), delta scans, and modal progress tracking. |
| 3. CodeStory & Guided Tours | Transaction storylines, automated sink-to-entry-point tracing, 5-layer "Teach Me" onboarding tour, Ask CodeStory grounded AI Q&A, and Git PR change stories. |
| 4. Structural Integrity & Audits | 14 class-awareness integrity rules, AST signature drift detection, duplicate body hash normalization, and 32-rule static review auditor. |
| 5. Interactive Visualizations & 3D Studio | 2D Graphify Canvas, WebGL 3D Software City, 3D Galaxy, Hierarchical Treemap, Radial Sunburst, Dependency Structure Matrix (DSM), and Chord diagram. |
| 6. Macro Architecture Studio | Package and module coupling analysis, Robert C. Martin metrics ( |
| 7. Process Hub & JVM Sentinel | 13 registered background task engines, 5 functional pipeline stages, 2-way DB mutex, memory circuit breakers, and self-healing heap recovery. |
| 8. Developer CLI & Toolsuite | Headless terminal CLI manual: scan, story, trace, what-if, ask, explain, teach-me, pr-story, and ai-test. |
| 9. REST & WebSocket API Reference | Complete API documentation for REST, Server-Sent Events (SSE), and WebSocket endpoints across all subsystems. |
# Clone the repository
git clone https://github.com/manvenpratap/codelens.git
cd codelens
# Build the fat JAR
./mvnw clean package -DskipTests
# Launch CodeLens Web Server (binds http://localhost:7878)
java -jar codelens-app/target/codelens-app.jar
# Or execute a headless scan directly from terminal
java -jar codelens-app/target/codelens-app.jar scan /path/to/java/project
CodeLens — Offline Java Architectural Intelligence & CodeStory Platform
100% Offline · Air-Gapped Local Operation · Zero Cloud Telemetry
- Home
- Getting Started & Onboarding
- Architecture & System Design
- 8-Stage Scan Pipeline & Readiness
- CodeStory & Guided Tours
- Structural Integrity & Audits
- Interactive Visualizations & 3D Studio
- Macro Architecture Studio
- Process Hub & JVM Sentinel
- Intelligence Reports Guide
- Deployment & Operations
- Developer CLI & Toolsuite
- REST & WebSocket API Reference
Repository Resources