How pallavdeshmukh18/structural works
StructurAI is a code intelligence and collaboration product. Users connect GitHub repositories, inspect indexed code and pull requests, analyze incidents, and collaborate through projects and chat. The backend serves the frontend’s feature routes and a separate AI engine for review, root-cause analysis, and patch workflows. The README provides no capability details, so the broader feature map follows the source index and tree; dashed links mark relationships whose implementation was not excerpted.
Main entry points: App.tsx App routes · server.js API server · index.js Domain models · repository.controller.js Repository operations
Components 26
Web application
- App routes
frontend/src/App.tsx - Repository views
frontend/src/pages/Repository.tsx - Code visualizer
frontend/src/pages/RepositoryVisualizer.tsx - PR review
frontend/src/pages/PRReview.tsx - Incident views
frontend/src/pages/IncidentList.tsx - Project workspace
frontend/src/pages/ProjectWorkspace.tsx
Platform backend
- API server
backend/server.js - Repository operations
backend/src/modules/repository/repository.controller.js - GitHub webhook
backend/src/modules/webhook/github.webhook.controller.js - Incident handling
backend/src/services/incident.service.js
Code analysis
- Repository indexer
backend/src/services/indexer.service.js - AST parser
backend/src/services/parser/ast.parser.js - AI routes
backend/mayank-ai-engine/src/routes/index.js - PR analysis
backend/mayank-ai-engine/src/modules/review/review.controller.js - Root cause analysis
backend/mayank-ai-engine/src/modules/rca/rca.service.js - Patch workflow
backend/mayank-ai-engine/src/modules/patch/patch.controller.js - Code health
backend/mayank-ai-engine/src/modules/slop/slop.service.js - LLM client
backend/mayank-ai-engine/src/llm/groqClient.js
Team collaboration
- Project management
backend/src/modules/project/project.controller.js - PR chat
backend/src/modules/chat/chat.controller.js - Slack integration
backend/src/modules/slack/slack.controller.js
Persistent data
- Domain models
backend/src/models/index.js
Other components
- Engineer
- MongoDB
- GitHub
- Groq API
Connections 32
- Engineer → App routes: uses
frontend/src/App.tsx - App routes → Repository views: routes to
frontend/src/App.tsx - App routes → Code visualizer: routes to
frontend/src/App.tsx - App routes → PR review: routes to
frontend/src/App.tsx - App routes → Incident views: routes to
frontend/src/App.tsx - App routes → Project workspace: routes to
frontend/src/App.tsx - App routes → API server: requests
- API server → MongoDB: connects
backend/server.js - API server → Repository operations: mounts routes
backend/server.js - API server → GitHub webhook: mounts routes
backend/server.js - API server → Incident handling: mounts routes
- API server → AI routes: mounts routes
backend/server.js - Repository operations → GitHub: fetches repository data
backend/src/modules/repository/repository.controller.js - Repository operations → Repository indexer: invokes indexing
backend/src/modules/repository/repository.controller.js - GitHub webhook → Incident handling: processes events
backend/src/modules/webhook/github.webhook.controller.js - GitHub webhook → Repository indexer: invokes indexing
backend/src/modules/webhook/github.webhook.controller.js - Repository indexer → AST parser: parses source
- Repository operations → Domain models: reads and writes
backend/src/modules/repository/repository.controller.js - Incident handling → Domain models: reads and writes
backend/src/services/incident.service.js - AI routes → PR analysis: routes to
backend/mayank-ai-engine/src/routes/index.js - AI routes → Root cause analysis: routes to
backend/mayank-ai-engine/src/routes/index.js - AI routes → Patch workflow: routes to
backend/mayank-ai-engine/src/routes/index.js - PR analysis → Code health: invokes analysis
backend/mayank-ai-engine/src/modules/review/review.controller.js - PR analysis → LLM client: requests review
- Root cause analysis → LLM client: requests analysis
backend/mayank-ai-engine/src/modules/rca/rca.service.js - Code health → LLM client: requests analysis
backend/mayank-ai-engine/src/modules/slop/slop.service.js - Patch workflow → Root cause analysis: runs root analysis
backend/mayank-ai-engine/src/modules/patch/patch.controller.js - Patch workflow → GitHub: may submit fix PR
- LLM client → Groq API: calls model
- Project management → Domain models: reads and writes
backend/src/modules/project/project.controller.js - PR chat → Domain models: uses chat records
backend/src/modules/chat/chat.controller.js - Slack integration → Domain models: integration data