Skip to content

jpdlr/repochat

Repository files navigation

Repochat

Repochat is a local-first "chat with your repo" starter app. It indexes text files from a selected repository folder, scores files against a question, and returns ranked code snippets to accelerate exploration.

Features

  • React + Vite + TypeScript app
  • Light-first neutral theme with dark mode fallback
  • Local folder indexing (webkitdirectory) for text-like files
  • Keyword-based retrieval with ranked snippets
  • Optional LLM synthesis using OpenAI-compatible Responses API
  • Session-only API key storage by default (with optional local persistence)
  • Unit + component tests (Vitest + React Testing Library)
  • CI workflow for typecheck, test, and build

Quick start

npm install
npm run dev

Scripts

  • npm run dev - start Vite dev server
  • npm run test - run test suite
  • npm run typecheck - run TypeScript checks
  • npm run build - build production bundle

Notes

  • Retrieval stays local and deterministic.
  • LLM answering is optional and uses your own API key + model + base URL from the settings panel.
  • Session-only API key storage is the default mode for safer local use.

License

MIT

About

Local-first chat-with-your-repo app with retrieval and optional LLM synthesis

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors