[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117423":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":14,"stars7d":15,"stars30d":15,"stars90d":12,"forks30d":12,"starsTrendScore":16,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":9,"trendingCount":12,"starSnapshotCount":12,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},117423,"repo-interview-coach","ampratapsingh\u002Frepo-interview-coach","ampratapsingh","prepare your projects in depth for your next interview",null,"TypeScript",58,0,52,1,3,5,40.8,false,"main",true,[],"2026-11-03 18:04:50","2026-11-23 18:02:22","\u003Cdiv align=\"center\">\n\n# Repo Inspector\n\n### Know your repository. Defend every engineering choice.\n\n[![Live](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLive-repo--inspector.workers.dev-1f6f50?style=for-the-badge&logo=cloudflare&logoColor=white)](https:\u002F\u002Frepo-inspector.amitsingh003official.workers.dev)\n[![Build](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fbuild-passing-2d6b50?style=for-the-badge)](#verification)\n[![Tests](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ftests-18%20passing-2d6b50?style=for-the-badge&logo=vitest&logoColor=white)](#verification)\n\n**A privacy-first, code-grounded repository analysis and interview practice platform.**\n\nPaste a public GitHub repository to map its architecture, explore implementation details, practice adaptive system-design questions, and chat with evidence selected from the actual codebase.\n\n[Open the live app](https:\u002F\u002Frepo-inspector.amitsingh003official.workers.dev) · [Run locally](#local-development) · [Security model](#security-and-privacy)\n\n\u003C\u002Fdiv>\n\n![Repo Inspector desktop experience](docs\u002Fassets\u002Frepo-inspector-home.png)\n\n## Why Repo Inspector?\n\nGeneric interview questions do not test whether you understand the software you actually built. Repo Inspector analyzes a repository at an immutable commit and turns its real modules, routes, dependencies, tests, infrastructure, and data flow into an evidence-backed learning experience.\n\n- **Inspect before asking** — syntax-aware analysis builds a structured repository fact sheet.\n- **Practice eight engineering angles** — architecture, data flow, scalability, reliability, security, testing, trade-offs, and operations.\n- **Ask the repository** — conversational answers are grounded in ranked code evidence and keep citations separate from the prose.\n- **Challenge your reasoning** — answers receive rubric-based feedback and concise expected-answer examples.\n- **Stay private by design** — analysis and chat history remain in the browser; provider keys entered by users are memory-only.\n\n## Product screenshots\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"72%\">\u003Cimg src=\"docs\u002Fassets\u002Frepo-inspector-home.png\" alt=\"Repo Inspector desktop landing page\" \u002F>\u003C\u002Ftd>\n    \u003Ctd width=\"28%\">\u003Cimg src=\"docs\u002Fassets\u002Frepo-inspector-mobile.png\" alt=\"Repo Inspector mobile landing page\" \u002F>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\">\u003Cstrong>Desktop\u003C\u002Fstrong>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Cstrong>Compact layout\u003C\u002Fstrong>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Core capabilities\n\n| Area | What it does |\n| --- | --- |\n| Repository ingestion | Resolves a public GitHub URL, pins the default branch to an immutable commit, and downloads a validated archive. |\n| Code analysis | Runs Tree-sitter WASM for JavaScript, TypeScript\u002FTSX, and Python, plus lightweight symbol extraction for C++, inside a browser worker. |\n| Repository briefing | Maps languages, frameworks, entry points, imports, routes, dependencies, tests, data stores, CI, and deployment signals. |\n| Adaptive interview | Generates eight repository-specific topics with follow-ups based on the candidate's previous answer. |\n| Ask Repo chat | Retrieves relevant code evidence, supports multiple saved conversations, and renders clean answers with separate source links. |\n| Evaluation | Grades answers against explicit rubric points and produces feedback, expected answers, and revision cards. |\n| Local persistence | Stores sessions and chat history in IndexedDB with resume, export, delete, and clear-data controls. |\n| AI providers | Uses hosted Qwen by default and supports personal OpenAI, Anthropic, or Gemini keys. |\n\n## How it works\n\n```mermaid\nflowchart LR\n    A[Public GitHub URL] --> B[Resolve immutable commit]\n    B --> C[Validated archive proxy]\n    C --> D[Browser Web Worker]\n    D --> E[Tree-sitter analysis]\n    E --> F[Repository fact sheet]\n    F --> G[Interview engine]\n    F --> H[Evidence retrieval]\n    H --> I[Qwen or personal provider]\n    I --> J[Concise answer + source links]\n    G --> K[Rubric evaluation]\n    J --> L[IndexedDB chat history]\n    K --> L\n```\n\nRepository parsing happens client-side. Only selected evidence snippets and current conversation context are sent to the configured AI provider.\n\n## Technology stack\n\n\u003Cp>\n  \u003Cimg alt=\"Next.js\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FNext.js_16-000000?style=for-the-badge&logo=nextdotjs&logoColor=white\" \u002F>\n  \u003Cimg alt=\"React\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FReact_19-20232a?style=for-the-badge&logo=react&logoColor=61dafb\" \u002F>\n  \u003Cimg alt=\"TypeScript\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTypeScript_5-3178c6?style=for-the-badge&logo=typescript&logoColor=white\" \u002F>\n  \u003Cimg alt=\"Tailwind CSS\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTailwind_CSS_4-06b6d4?style=for-the-badge&logo=tailwindcss&logoColor=white\" \u002F>\n  \u003Cimg alt=\"Cloudflare Workers\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCloudflare_Workers-f38020?style=for-the-badge&logo=cloudflareworkers&logoColor=white\" \u002F>\n  \u003Cimg alt=\"Vite\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FVite_8-646cff?style=for-the-badge&logo=vite&logoColor=white\" \u002F>\n  \u003Cimg alt=\"Tree-sitter\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTree--sitter-WASM-4b5563?style=for-the-badge&logo=webassembly&logoColor=white\" \u002F>\n  \u003Cimg alt=\"Zod\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FZod_4-3e67b1?style=for-the-badge&logo=zod&logoColor=white\" \u002F>\n  \u003Cimg alt=\"Vitest\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FVitest-6e9f18?style=for-the-badge&logo=vitest&logoColor=white\" \u002F>\n\u003C\u002Fp>\n\n## Local development\n\n### Prerequisites\n\n- Node.js 22.13 or newer\n- npm\n- Git\n\n### Setup\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fampratapsingh\u002Frepo-interview-coach.git\ncd repo-interview-coach\nnpm ci\ncp .env.example .env.local\nnpm run dev\n```\n\nOpen [http:\u002F\u002F127.0.0.1:5173](http:\u002F\u002F127.0.0.1:5173).\n\n### Environment variables\n\n```dotenv\n# Hosted fallback provider\nQWEN_API_KEY=your_qwen_key\nQWEN_BASE_URL=https:\u002F\u002Fapi.iteracompute.com\u002Fv1\nQWEN_MODEL=qwen\u002Fqwen3.8-27b\n\n# Optional server-side Gemini fallback\nGEMINI_API_KEY=your_gemini_key\n```\n\nNever commit `.env.local`, `.dev.vars`, or provider credentials. The repository includes only a safe `.env.example` template.\n\n## Available scripts\n\n| Command | Purpose |\n| --- | --- |\n| `npm run dev` | Start the Vinext development server with HMR. |\n| `npm run build` | Produce the Cloudflare Worker and client assets in `dist\u002F`. |\n| `npm start` | Preview the production Worker locally with Wrangler. |\n| `npm run lint` | Run ESLint across the application. |\n| `npm test` | Run the Vitest suite once. |\n| `npm run db:generate` | Generate optional Drizzle migrations. |\n\n## Project structure\n\n```text\napp\u002F\n├── api\u002F                 # GitHub proxy and AI endpoints\n├── coach-app.tsx        # Main product experience\n├── globals.css          # Design system and responsive styling\n└── page.tsx             # Public application entry\nlib\u002F\n├── analyzer.ts          # Repository signal extraction\n├── archive.ts           # Safe archive validation\n├── question-engine.ts   # Deterministic interview planning\n├── repo-qa.ts           # Evidence retrieval and ranking\n├── rate-limit.ts        # AI request rate limiting\n└── storage.ts           # Browser-local persistence\nworkers\u002F\n└── analyzer.worker.ts   # Off-main-thread Tree-sitter analysis\npublic\u002Fparsers\u002F          # Tree-sitter WASM grammars\ntests\u002F                   # Unit and behavior tests\nworker\u002F                  # Cloudflare Worker entrypoint\n```\n\n## API surface\n\n| Endpoint | Method | Responsibility |\n| --- | --- | --- |\n| `\u002Fapi\u002Fgithub\u002Fresolve` | `POST` | Validate a GitHub repository and resolve its immutable head commit. |\n| `\u002Fapi\u002Fgithub\u002Farchive\u002F:owner\u002F:repo\u002F:sha` | `GET` | Proxy a size-limited repository archive without persistent storage. |\n| `\u002Fapi\u002Fai\u002Fask` | `POST` | Answer a repository question using selected evidence. |\n| `\u002Fapi\u002Fai\u002Fevaluate` | `POST` | Evaluate an interview answer against repository-specific rubric points. |\n\n## Security and privacy\n\n- Only public GitHub repositories are supported.\n- Repository owner, name, and commit parameters are validated before upstream requests.\n- Compressed archives are capped at 20 MB and are never persisted by the server.\n- Repository parsing runs in a browser worker rather than on the application server.\n- Personal provider keys stay in browser memory and are not written to IndexedDB or local storage.\n- Hosted provider secrets are stored as encrypted Cloudflare Worker secrets.\n- AI endpoints validate request shapes with Zod and apply per-client rate limiting.\n- AI output is checked against supplied evidence and rubric identifiers before rendering.\n- `.env*`, `.dev.vars*`, build output, Wrangler state, certificates, and local tooling state are excluded by `.gitignore`.\n\n> [!IMPORTANT]\n> The hosted Qwen endpoint is intentionally available to visitors and is rate-limited. For a high-traffic production deployment, replace the in-memory limiter with Cloudflare Rate Limiting or Durable Objects and configure provider-side budget alerts.\n\n## Deployment\n\nThe production application runs on Cloudflare Workers:\n\n**[repo-inspector.amitsingh003official.workers.dev](https:\u002F\u002Frepo-inspector.amitsingh003official.workers.dev)**\n\n```bash\nnpm run build\nnpx wrangler secret bulk .env.local --config dist\u002Fserver\u002Fwrangler.json --name repo-inspector\nnpx wrangler deploy --config dist\u002Fserver\u002Fwrangler.json --name repo-inspector\n```\n\nDo not place secret values in `wrangler.json`, shell history, CI logs, or source control. Configure them with Wrangler secrets or the Cloudflare dashboard.\n\n## Verification\n\nThe current production revision passes:\n\n```text\n✓ ESLint\n✓ 4 test files\n✓ 18 tests\n✓ Vinext production build\n✓ Cloudflare Workers deployment\n```\n\nRun the complete local verification sequence with:\n\n```bash\nnpm run lint && npm test && npm run build\n```\n\n## Current scope\n\nRepo Inspector currently targets public repositories and JavaScript, TypeScript\u002FTSX, Python, and C++ analysis. Private repositories, Git history analysis, organization accounts, and durable server-side user storage are intentionally outside the current release.\n\n---\n\n\u003Cdiv align=\"center\">\n  Built to turn \u003Cem>“I wrote it”\u003C\u002Fem> into \u003Cstrong>“I can defend every decision.”\u003C\u002Fstrong>\n\u003C\u002Fdiv>\n",2,"2026-11-24 04:55:39","CREATED_QUERY"]