[ RANK: MASTER INFRASTRUCTURE CONSTELLATION ]
An interactive, real-time 3D network topology map and tactical engineering engine designed to project GitHub repository telemetry vectors, language composition matrices, dimensional dungeon rank tiers, and live Hunter XP progression over a unified cyberpunk system status deck interface.
- ๐ Key Features
- ๐๏ธ System Architecture
- ๐ Processing Workflow & Diagrams
- ๐ ๏ธ Tech Stack
- ๐ API Reference
- ๐ Project Structure
- ๐ป Quickstart & Deployment
- ๐ฎ Tactical Controls
- ๐ค Contributing
- ๐ License
- ๐ 3D Force-Directed Constellation Matrix: Physics-driven 3D particle and mesh graph grouping repositories dynamically based on shared technology cores into interconnected celestial star clusters.
-
๐ Hunter Rank Tier Stratification: Automatically evaluates codebase footprints and classifies repositories into hierarchical dungeon rank layers:
- ๐ด S-Rank Peak Layer: Complex, flagship architecture codebases (
$>5000\text{ KB}$ ,$+500\text{ XP}$ ) - ๐ก A-Rank Mid Layer: Elite production-grade systems (
$500\text{ KB} - 5000\text{ KB}$ ,$+250\text{ XP}$ ) - ๐ต B-Rank Base Layer: Specialized utility tools and micro-modules (
$<500\text{ KB}$ ,$+100\text{ XP}$ )
- ๐ด S-Rank Peak Layer: Complex, flagship architecture codebases (
- ๐ Real-Time Hunter XP Growth Curve: Dynamic SVG trendline visualization plotting cumulative developer milestones and experience progression over chronological repository history.
- ๐จ Neon Domain Harmonization: Automatically color-codes nodes based on technological domains (Cyan for Python, Amber for JavaScript/TypeScript, Purple for Java/Kotlin, Crimson for Frontend/HTML, Emerald for Systems).
- ๐ฏ Tactical HUD & Node Inspector: Interactive raycasting selector on 3D nodes to inspect repository descriptions, live star counts, watcher metrics, and direct GitHub links.
- ๐งญ Instant Camera Recalibration: Single-click viewport alignment matrix to snap the 3D camera smoothly back to the central coordinate origin.
- ๐ High-Throughput FastAPI Engine: Async Python backend that aggregates, cleanses, and transforms GitHub REST API v3 payloads into force-directed node-link graph matrices.
graph TB
subgraph Remote_Source ["โ๏ธ GitHub Cloud Ecosystem"]
GH_API["GitHub REST API v3<br/>/users/{username}/repos"]
end
subgraph Backend_Gateway ["๐ Telemetry Backend (FastAPI Gateway :8585)"]
PORTFOLIO["GET /api/portfolio Endpoint"]
COLOR_ENGINE["Neon Color Harmonization Matrix"]
TIER_ENGINE["Hunter Rank Stratification Engine<br/>(S-Rank, A-Rank, B-Rank)"]
TOPOLOGY_BUILDER["Relational Language Topology Mesh Builder"]
end
subgraph Frontend_Deck ["๐ฅ๏ธ Tactical System Status Deck (Next.js 14 :3000)"]
HUD_NAV["System Command Navigation & Profile Meta"]
GRAPH_VIEWPORT["3D Force-Directed WebGL Canvas (Three.js)"]
XP_GRAPH["Hunter XP Growth Matrix (SVG Timeline)"]
INSPECTOR["Active Dungeon Artifact Inspector Modal"]
end
GH_API -->|"Fetch Public Repos (JSON)"| PORTFOLIO
PORTFOLIO --> COLOR_ENGINE
COLOR_ENGINE --> TIER_ENGINE
TIER_ENGINE --> TOPOLOGY_BUILDER
TOPOLOGY_BUILDER -->|"Nodes & Links Graph Matrix"| HUD_NAV
HUD_NAV --> GRAPH_VIEWPORT
HUD_NAV --> XP_GRAPH
GRAPH_VIEWPORT -->|"Node Raycast Click"| INSPECTOR
flowchart TD
Start([User Opens System Deck]) --> InitFetch["Trigger Parallel API Requests"]
subgraph Data_Pipeline ["Backend Telemetry Pipeline (:8585)"]
InitFetch --> FetchGH["Query GitHub REST API for Public Repositories"]
FetchGH --> ParseRepos["Iterate Repository Payloads"]
ParseRepos --> ColorMap["Assign Neon Hex Tone based on Language Domain"]
ColorMap --> TierCalc{"Calculate Storage Footprint (Size)"}
TierCalc -->|Size > 5000 KB| SRank["Tag as S-RANK (+500 XP)"]
TierCalc -->|500 KB <= Size <= 5000 KB| ARank["Tag as A-RANK (+250 XP)"]
TierCalc -->|Size < 500 KB| BRank["Tag as B-RANK (+100 XP)"]
SRank --> ClusterLink["Group Nodes by Shared Language Key"]
ARank --> ClusterLink
BRank --> ClusterLink
ClusterLink --> BuildMesh["Build Relational Link Edges between Peer Repos"]
BuildMesh --> ReturnJSON["Return Structured Graph Matrix: {nodes, links}"]
end
ReturnJSON --> FrontendIngest["Frontend Ingests Topology Stream"]
subgraph UI_Rendering ["Next.js Viewport Engine (:3000)"]
FrontendIngest --> ForceSim["Initialize 3D Force-Directed Simulation Physics"]
FrontendIngest --> PlotXP["Compile Cumulative Hunter XP Growth Timeline"]
ForceSim --> RenderWebGL["Render Interactive 3D Holographic Constellation"]
end
RenderWebGL --> UserInteract["User Explores 3D Constellation & Inspects Nodes"]
UserInteract --> End([System Active & Synchronized])
sequenceDiagram
autonumber
actor Hunter as User / Explorer
participant Viewport as Next.js 14 Frontend (:3000)
participant CoreAPI as FastAPI Backend (:8585)
participant GitHub as GitHub API v3
Hunter->>Viewport: Access http://localhost:3000
Viewport->>GitHub: GET https://api.github.com/users/{username} (Fetch Profile)
GitHub-->>Viewport: 200 OK (Avatar, Bio, Public Repo Count)
Viewport->>CoreAPI: GET /api/portfolio
CoreAPI->>GitHub: GET /users/{username}/repos?per_page=100
GitHub-->>CoreAPI: 200 OK (Raw Repositories Array)
CoreAPI->>CoreAPI: Map Domain Colors, Filter Sizes, & Generate Language Links
CoreAPI-->>Viewport: 200 OK {"nodes": [...], "links": [...]}
Viewport->>Viewport: Compute XP Curve & Launch 3D Force Simulation
Viewport-->>Hunter: Render 3D Constellation & HUD Command Deck
Hunter->>Viewport: Click 3D Node
Viewport-->>Hunter: Open "Artifact Inspector" Modal with Live Repository Metrics
Hunter->>Viewport: Click "Recalibrate Viewport"
Viewport->>Viewport: Reset 3D Camera Focus Smoothly to Origin (0,0,0)
The FastAPI core queries the public GitHub endpoint:
$$\text{Endpoint} = \text{https://api.github.com/users/kailash6207/repos?per_page=100\&sort=created}$$
Each payload is parsed into individual atomic node vectors with metadata: id, label, description, language, stars, watchers, size, and created_at.
To convert disjointed project nodes into a cohesive constellation galaxy:
- Repositories sharing identical programming language ecosystems are grouped into buckets:
$$\mathcal{G}_{\text{lang}} = { \text{repo}_1, \text{repo}_2, \dots, \text{repo}_m }$$ - Sequential interconnecting link edges are synthesized between neighboring repos in $\mathcal{G}{\text{lang}}$: $$\mathcal{E}{\text{links}} = { (\text{repo}i, \text{repo}{i+1}) \mid 1 \le i < m }$$
- Repositories with custom names (
lockup,xfinance,guardian) trigger thematic neon accents.
The system calculates a developer's cumulative mastery score through chronological repository growth: $$\text{XP}{\text{total}} = \sum{i=1}^{N} \Delta \text{XP}(i), \quad \text{where} \quad \Delta \text{XP} = \begin{cases} 500 & \text{if } \text{Size} > 5000\text{ KB (S-Rank)} \ 250 & \text{if } 500\text{ KB} \le \text{Size} \le 5000\text{ KB (A-Rank)} \ 100 & \text{if } \text{Size} < 500\text{ KB (B-Rank)} \end{cases}$$
| Layer | Technology | Purpose |
|---|---|---|
| Frontend Framework | Next.js 14, React 18 | High-performance React web application with SSR/CSR |
| 3D Graphics Engine | Three.js & 3D Force Graph | WebGL particle physics, coordinate rendering & raycasting |
| Icons & UI | React-Icons (FontAwesome 6) | Tactical cyberpunk status badges and HUD icons |
| Backend API | FastAPI (Python 3.10+) | High-throughput asynchronous REST API distribution core |
| Server Gateway | Uvicorn | ASGI server handling telemetry serialization |
| HTTP Client | Requests | Python client for GitHub REST API v3 queries |
GET /api/portfolio
Compiles all public repositories into a force-directed node-and-link graph matrix.
- Query Parameters:
username(optional, default:kailash6207) - Response (200 OK):
{
"nodes": [
{
"id": "https://github.com/kailash6207/GoRaft-KV",
"label": "GoRaft-KV",
"description": "A fault-tolerant distributed Key-Value store in Go...",
"language": "Go",
"color": "#22c55e",
"stars": 4,
"watchers": 4,
"size": 2500,
"created_at": "2024-08-15T10:30:00Z"
}
],
"links": [
{
"source": "https://github.com/kailash6207/GoRaft-KV",
"target": "https://github.com/kailash6207/maze-x"
}
]
}GET /
Returns gateway operational status.
- Response (200 OK):
{
"status": "ONLINE",
"system": "Solo Leveling Core Matrix Gateway Active"
}git-awakening/
โโโ backend/ # Telemetry Processing Core
โ โโโ main.py # Primary FastAPI distribution gateway (:8080)
โ โโโ portfolio_backend.py # Alternate portfolio aggregation service (:8585)
โ โโโ requirements.txt # Backend Python dependencies
โโโ frontend/ # Next.js Viewport Environment
โ โโโ package.json # Node scripts & dependencies
โ โโโ pages/
โ โ โโโ index.js # Primary tactical HUD status deck interface
โ โโโ components/
โ โโโ GitVisualizer.js # 3D WebGL Force-directed arena component
โโโ .gitignore # Build and dependency isolation rules
โโโ README.md # Comprehensive documentation
- Node.js 18+ & npm
- Python 3.10+ &
pip
# 1. Navigate to the backend directory
cd backend
# 2. Create and activate a virtual environment
python -m venv venv
# Windows:
.\venv\Scripts\activate
# Linux / macOS:
source venv/bin/activate
# 3. Install dependencies
pip install fastapi uvicorn requests
# 4. Launch the telemetry core (Port 8585)
python portfolio_backend.pyTelemetry Gateway running live at:
http://localhost:8585
# 1. Open a new terminal and navigate to frontend directory
cd frontend
# 2. Install dependencies
npm install
# 3. Launch the development server
npm run devSystem Deck automatically launches at:
http://localhost:3000
| Control | Action |
|---|---|
| Left Click + Drag | Orbit and rotate the 3D camera across celestial axes |
| Right Click + Drag | Pan the camera laterally across the dimensional plane |
| Scroll Wheel | Zoom into targeted repository star clusters |
| Click Node | Open the Active Dungeon Artifact inspector modal |
| Recalibrate Button | Smoothly snap camera focus back to origin (0,0,0) |
Contributions, issues, and tactical feature requests are welcome!
- Fork the Project (
git checkout -b feature/NewDimension) - Commit your Changes (
git commit -m 'feat: Add NewDimension') - Push to the Branch (
git push origin feature/NewDimension) - Open a Pull Request
Distributed under the MIT License. See LICENSE for details.