# whoiskatrin/sql-translator

SQL Translator is a tool for converting natural language queries into SQL code using artificial intelligence. This project is 100% free and open source.

Repository: https://github.com/whoiskatrin/sql-translator
Canonical: https://ross.abutalabs.com/products/sql-translator
Homepage: https://www.sqltranslate.app/
Language: TypeScript
License: MIT
License Family: permissive
Topics: data-analysis, data-engineering, dataquery, datascience, dataset, openai, postgresql, query, sql
Last push: 2025-07-06T00:46:23+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 30, release rhythm 35, longevity 90
- inputs: {"age_days": 1271, "days_push": 424, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4323, forks 376 (observed 2026-08-28T04:08:41.981387+00:00)

## What it is
SQL Translator is a free, open-source web application that converts natural language queries into SQL code and translates SQL back into human-readable text using OpenAI models. It features schema awareness, query history, syntax highlighting, and can be self-hosted via npm or Docker Compose.

## Use cases
- convert plain english questions into sql queries
- translate sql queries into human-readable explanations
- help non-technical users query a database
- generate sql from a table schema description
- understand legacy sql code without a dba
- self-host a text-to-sql tool with my own openai key

## When to choose
- you want a free, self-hostable natural-language-to-SQL interface
- you need bidirectional translation between SQL and plain English
- you want a simple web UI with query history and syntax highlighting

## When to avoid
- you need guaranteed-correct SQL for production without review
- you don't want to provide an OpenAI API key or pay for API usage
- you need a CLI or programmatic API rather than a web app

## Facets
- artifact type: application
- maturity: active
- function: nlp, llm-inference, developer-tools
- domain: databases, data-science, web-development
- platform: self-hosted
- tags: text-to-sql, sql-to-natural-language, openai, query-generation, nextjs, natural-language-processing, nodejs, web-server, docker

## Member repositories
- whoiskatrin/sql-translator (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.981387+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:42.894058+00:00, confidence not recorded.
  - readme: https://github.com/whoiskatrin/sql-translator (fetched 2026-08-28T04:08:41.981387+00:00, sha f9097cecfad0)
  - homepage: https://www.sqltranslate.app/ (fetched 2026-08-29T09:11:05.416964+00:00, sha 18cde6ef17b1)
  - site_page: https://askai.free/about (fetched 2026-08-29T09:11:05.432078+00:00, sha 6ae96abb4aef)
  - site_page: https://askai.free/faq (fetched 2026-08-29T09:11:05.427327+00:00, sha 13429ca6cc61)
  - site_page: https://askai.free/pricing (fetched 2026-08-29T09:11:05.429995+00:00, sha 0bfb66d92428)
- Data as of 2026-08-30T08:39:29.467469+00:00.
