Tool v1.0.0

SQLScribe

SQLScribe is a Text-to-SQL Assistant that turns plain-English questions into ready-to-review SQL for MySQL, PostgreSQL, SQLite, SQL Server and Oracle. Each query comes with a clause-by-clause explanation. It runs entirely in the browser with no setup or A

Built with

HTML5CSS53JavaScriptCustom NLP rule engineCustom SQL builderBoxiconsGoogle Fonts

SQLScribe helps developers, students and analysts write SQL faster by describing what they need in everyday language. You type a question like “Top 5 customers by total spending” or “Departments with no projects.” SQLScribe returns a formatted SQL draft. It also gives a plain-English summary, an explanation card for every clause, any assumptions it made, and a confidence score showing how well it understood the question.

At its core is a built-in rule engine that works fully offline. It reads your database schema, matches your words to tables and columns, and understands:

  • filters, totals, averages and rankings
  • date ranges like “last 30 days” or “March 2025”
  • grouping
  • relationship questions like “customers with more than 3 orders”

You can switch between five SQL dialects at any time, and the query re-renders instantly with the correct syntax for each database.

Three sample databases are included: E-commerce, HR & Projects, and School Records, each with example questions. You can also paste your own CREATE TABLE statements; SQLScribe detects relationships automatically, so joins are built for you. For harder questions, an optional AI mode can be turned on with your own Anthropic API key, which is stored only in your browser.

The project ships as a clean, modular codebase with no dependencies. It runs by simply opening index.html and deploys to GitHub Pages as-is.

Key features

  • Plain English to SQL: ask questions naturally and get a formatted SQL draft instantly.
  • 5 SQL dialects: MySQL, PostgreSQL, SQLite, SQL Server and Oracle, with one-click switching.
  • Clause-by-clause explanations: a summary, a card per clause, assumptions and a “not understood” list.
  • Confidence score: High, Medium or Low, so you know when to double-check.
  • Works offline: the rule engine needs no API key, server or internet connection.
  • Bring your own schema: paste CREATE TABLE statements or upload a .sql file, with automatic relationship detection.
  • 3 sample databases: E-commerce, HR & Projects and School Records, each with ready-made questions.
  • Optional AI mode: use your own Anthropic API key for complex questions.
  • Smart query building: joins, GROUP BY, HAVING, EXISTS / NOT EXISTS, date ranges, LIKE matching, IS NULL checks and multiple aggregates.
  • Developer tools: copy, .sql download, a quote-all-identifiers toggle and query history.
  • Dark and light themes with a fully responsive mobile layout.
  • Keyboard shortcuts: Ctrl + Enter to generate, / to focus.
  • Zero dependencies: open index.html and it works; it’s ready for GitHub Pages.
12 folders · 34 files
├── assets/
│ ├── css/
│ │ ├── base.css
│ │ ├── components.css
│ │ ├── layout.css
│ │ └── variables.css
│ ├── img/
│ │ └── favicon.svg
│ └── js/
│ ├── config/
│ │ ├── dialects.js
│ │ └── sample-schemas.js
│ ├── core/
│ │ ├── lexicon.js
│ │ ├── nl-engine.js
│ │ ├── schema-index.js
│ │ ├── schema-parser.js
│ │ ├── sql-builder.js
│ │ └── tokenizer.js
│ ├── services/
│ │ ├── ai-service.js
│ │ └── storage.js
│ ├── ui/
│ │ ├── dom.js
│ │ ├── highlight.js
│ │ ├── renderers.js
│ │ └── toast.js
│ ├── utils/
│ │ └── text.js
│ └── main.js
├── docs/
│ ├── screenshots/
│ │ ├── explanation.png
│ │ ├── hero-dark.png
│ │ ├── light.png
│ │ ├── mobile.png
│ │ └── schema-editor.png
│ └── ARCHITECTURE.md
├── script/
│ └── build.mjs
├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── index.html
└── package.json
  1. v1.0.0 Latest Oct 25, 2026
    • Initial release

Reviews (0)

Log in to review this item after you download it.
No reviews yet.

More tools

See all
QRForge - QR Code Generator Free
Tool

QRForge - QR Code Generator

QRForge is a clean, browser-based QR code generator. Turn any text or URL into a QR code...

HTML5 Bootstrap 5.3 JavaScript
Free
Capstone Title Generator Free
Tool

Capstone Title Generator

Generate ready-to-propose capstone titles for IT, CS and IS students, each with objectiv...

HTML5 CSS3 JavaScript
Free