##LIVE PREVIEW(deploement link):-https://apna-code-reviewer.vercel.app/
Prerequisites: Node.js
- Install dependencies:
npm install - Set the
GEMINI_API_KEYin .env.local to your Gemini API key - Run the app:
npm run dev
An AI-powered code reviewer and mini-IDE that uses the Gemini API to analyze, improve, and run code snippets. Features a beautiful UI, custom themes, and PWA support for installable app experience.
- AI Code Review: Get instant feedback, suggestions, and corrections for your code using Gemini AI.
- Code Execution: Run code snippets and view output directly in the app.
- Multi-Language Support: Review and run code in popular languages (JavaScript, TypeScript, Python, Java, C#, C, C++, Go, Rust, PHP, Ruby, Swift, HTML, CSS).
- Custom Themes & Dark Mode: Personalize your experience with multiple themes and light/dark mode.
- Notes Canvas: Jot down notes and download them as text files.
- PWA: Installable as a native app with offline support.
- Frontend: React 19, TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS (CDN, custom themes)
- AI Integration: Gemini API (
@google/genai) - PWA: Service Worker, Manifest
├── App.tsx
├── components/
│ ├── CodeInput.tsx
│ ├── ExecutionOutput.tsx
│ ├── Header.tsx
│ ├── NotesCanvas.tsx
│ ├── ReviewFeedback.tsx
│ ├── RightPanel.tsx
│ ├── Spinner.tsx
│ ├── ThemeModeToggle.tsx
│ ├── ThemeSelector.tsx
│ ├── ThemeToggle.tsx
│ ├── Timer.tsx
│ └── icons/
│ └── SeverityIcons.tsx
├── constants.ts
├── index.html
├── index.tsx
├── manifest.json
├── metadata.json
├── package.json
├── services/
│ └── geminiService.ts
├── sw.js
├── themes.ts
├── tsconfig.json
├── types.ts
├── vite.config.ts
└── .env.local
- Node.js (v18+ recommended)
- Clone the repository:
git clone <your-repo-url> cd apna-code-reviewer - Install dependencies:
npm install - Add your Gemini API key to
.env.local:GEMINI_API_KEY=your-gemini-api-key-here - Start the development server:
npm run dev
- GEMINI_API_KEY: Your Gemini API key (required for AI features)
- Never commit
.env.localor your API key..gitignoreis set up to protect secrets.
- React Components: Modular, reusable UI components.
- Service Layer: All AI interactions handled in
services/geminiService.ts. - State Management: React hooks, localStorage for theme and notes persistence.
- Styling: Dynamic CSS variables for themes, Tailwind CSS utilities.
- PWA: Service worker caches assets, manifest enables installable experience.
- Vercel or Netlify (best for Vite/React projects)
- Firebase Hosting
- AWS Amplify or Azure Static Web Apps
- Build the project:
npm run build - Set
GEMINI_API_KEYin your hosting platform’s environment settings. - Deploy the
dist/folder or connect your repo for automatic deployment.
- API keys and secrets are loaded via environment variables and never exposed in code.
.env.localand all.env*files are ignored by git.
This project is licensed under the MIT License.
- Powered by Google Gemini API
- Built with React and Vite
For questions or support, open an issue or contact the maintainer.





