Skip to content

jabahm/asql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aSql

aSql

Chat with your database. No external API. Open source. Runs locally.

License: Apache 2.0 GitHub stars Last commit Runs locally

aSql demo

You ask in plain English, a local LLM writes the SQL, aSql runs it read-only and shows the rows.

Works with

SQLite DuckDB PostgreSQL MySQL

Built with

Next.js TypeScript Tailwind FastAPI Python Ollama Docker

Run it

Needs Docker and Ollama running on the host.

ollama pull qwen2.5:3b
docker compose up --build

Open http://localhost:3000.

For local SQLite/DuckDB files, drop them into the asql_data volume.

Dev

# backend
cd backend && python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000

# frontend
cd frontend && npm install && npm run dev

Set NEXT_PUBLIC_API_URL=http://localhost:8000 outside Docker.

License

Apache 2.0.

About

Chat with your database. No external API. Open source. Runs locally.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors