How ankurdotio/code-review works
This is a browser-based AI code-review app. A developer edits code in the React interface and submits it; the frontend posts the code to the Express API, whose review controller validates it and calls the Gemini-backed service. The service returns generated review text, which the frontend renders as Markdown. The diagram follows the sampled request path; the frontend README is present but no product documentation was supplied, so capabilities beyond this workflow are not inferred.
Main entry points: App.jsx Editor and Results · ai.controller.js Review Controller · ai.service.js Review Service · app.js Express App
Components 9
Frontend
- Editor and Results
Frontend/src/App.jsx - React Entry
Frontend/src/main.jsx
API
- Express App
BackEnd/src/app.js - Review Route
BackEnd/src/routes/ai.routes.js - Review Controller
BackEnd/src/controllers/ai.controller.js - Server Startup
BackEnd/server.js
AI Review
- Review Service
BackEnd/src/services/ai.service.js
Other components
- Developer
- Gemini API
Connections 12
- React Entry → Editor and Results: renders
- Developer → Editor and Results: edits and submits
- Editor and Results → Express App: posts code
- Server Startup → Express App: starts
- Express App → Review Route: mounts routes
- Review Route → Review Controller: dispatches request
- Review Controller → Review Service: requests review
- Review Service → Gemini API: generates review
- Gemini API → Review Service: returns review text
- Review Service → Review Controller: returns review
- Review Controller → Editor and Results: sends HTTP response
- Editor and Results → Developer: renders Markdown