Skip to content

About

CodeSaarthi, an accessibility-first AI coding companion for developers with RSI, motor impairments, or those who prefer speaking instead of typing.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD

CodeSaarthi

CodeSaarthi, an accessibility-first AI coding companion for developers with RSI, motor impairments, or those who prefer speaking instead of typing.


CodeSaarthi Backend Demo

This workspace is a practice backend for CodeSaarthi, an accessibility-first AI coding companion.

Flow

Developer code + speech-to-text question -> Gemini backend -> text response -> frontend speech synthesis.

Endpoints

  • GET /health - health check and active model name
  • POST /v1/analyze - main AI endpoint

Request body

{
	"code": "def divide(a, b): return a / b",
	"question": "ye crash kyun ho raha hai",
	"mode": "socratic"
}

Response body

{
	"answer": "...",
	"mode": "socratic",
	"model": "gemini-3.6-flash",
	"fallback": false
}

Environment variables

  • GEMINI_API_KEY - required for Gemini calls
  • GEMINI_MODEL - optional, defaults to gemini-3.6-flash
  • CORS_ORIGINS - optional comma-separated list, defaults to *

Run the CLI demo

./.venv/Scripts/python.exe app.py

Run the API

./.venv/Scripts/python.exe -m uvicorn api:app --reload

Notes

  • Socratic mode should ask one short guiding question.
  • Direct mode should explain the bug and show the fix.
  • If Gemini is unavailable, the backend returns a clean fallback message instead of crashing. =======

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.

origin/integrate/merge-restored-frontend

About

CodeSaarthi, an accessibility-first AI coding companion for developers with RSI, motor impairments, or those who prefer speaking instead of typing.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages