WORKING ON A CSV FEATURE OPEN TO CONTRIBUTIONS AND SUGGESTIONS
A web application that generates SQL queries from natural language using the Google Gemini API. The app provides an interface to write natural language prompts, generate SQL, and execute queries against a SQLite database.
- Convert natural language to SQL using Google's Gemini API
- Execute SQL queries against a SQLite in-memory database
- View formatted results in a table
- Sample database with tables for a library management system
- Clone the repository
- Install dependencies:
npm install
- Create a
.env
file with your GEMINI_API_KEY - Run the server:
npm run dev
- Open http://localhost:10000 in your browser
GEMINI_API_KEY
: Your Google Gemini API keyPORT
: Port to run the server on (defaults to 10000)
POST /api/execute-sql
: Execute SQL queriesPOST /api/generate-sql
: Generate SQL from natural languagePOST /api/delete-all-tables
: Delete all tables and reset the databaseGET /health
: Health check and diagnostic informationGET /api/debug
: Debug information (non-production environments only)
MIT