Skip to content

About

[ RANK: MASTER INFRASTRUCTURE CONSTALLATION ] An interactive, real-time 3D network topology map and technical engine designed to project GitHub repository telemetry vectors, language composition matrix distributions, and live hunter milestones over a unified system status deck interface.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŒ Git-Awakening: 3D Holographic Constellation Matrix & Telemetry Deck

System Rank: S-RANK Next.js 14 React 18 FastAPI Three.js Python License: MIT

[ 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.


๐Ÿ“‘ Table of Contents


๐Ÿš€ Key Features

  • ๐ŸŒŒ 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}$)
  • ๐Ÿ“ˆ 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.

๐Ÿ—๏ธ System Architecture

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
Loading

๐Ÿ”„ Processing Workflow & Diagrams

1. Data Extraction & Constellation Flowchart

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])
Loading

2. Interactive Viewport Sequence

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)
Loading

3. Deep-Dive Workflow & Stratification Math

Phase 1: Dynamic Telemetry Ingestion

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.

Phase 2: Relational Topology Meshing

To convert disjointed project nodes into a cohesive constellation galaxy:

  1. Repositories sharing identical programming language ecosystems are grouped into buckets: $$\mathcal{G}_{\text{lang}} = { \text{repo}_1, \text{repo}_2, \dots, \text{repo}_m }$$
  2. 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 }$$
  3. Repositories with custom names (lockup, xfinance, guardian) trigger thematic neon accents.

Phase 3: Hunter Rank Stratification & XP Accumulation

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}$$


๐Ÿ› ๏ธ Tech Stack

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

๐Ÿ”Œ API Reference

1. Retrieve Portfolio Constellation Graph

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"
    }
  ]
}

2. Backend Health Check

GET /
Returns gateway operational status.

  • Response (200 OK):
{
  "status": "ONLINE",
  "system": "Solo Leveling Core Matrix Gateway Active"
}

๐Ÿ“‚ Project Structure

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

๐Ÿ’ป Quickstart & Deployment

Prerequisites

  • Node.js 18+ & npm
  • Python 3.10+ & pip

1. Start the Telemetry Backend

# 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.py

Telemetry Gateway running live at: http://localhost:8585


2. Start the Next.js Viewport

# 1. Open a new terminal and navigate to frontend directory
cd frontend

# 2. Install dependencies
npm install

# 3. Launch the development server
npm run dev

System Deck automatically launches at: http://localhost:3000


๐ŸŽฎ Tactical Controls

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)

๐Ÿค Contributing

Contributions, issues, and tactical feature requests are welcome!

  1. Fork the Project (git checkout -b feature/NewDimension)
  2. Commit your Changes (git commit -m 'feat: Add NewDimension')
  3. Push to the Branch (git push origin feature/NewDimension)
  4. Open a Pull Request

๐Ÿ“œ License

Distributed under the MIT License. See LICENSE for details.


Engineered with โšก by Kailash N H

About

[ RANK: MASTER INFRASTRUCTURE CONSTALLATION ] An interactive, real-time 3D network topology map and technical engine designed to project GitHub repository telemetry vectors, language composition matrix distributions, and live hunter milestones over a unified system status deck interface.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages