an online SQL playground

About

Sqlime is an online SQLite playground for debugging and sharing SQL snippets.

Sqlime is like JSFiddle, but for SQL instead of JavaScript

Here are some notable features:

🔋 Full-blown database in the browser

Sqlime is backed by the latest version of SQLite via the sqlean.js project. It provides a full-featured SQL implementation, including indexes, triggers, views, transactions, CTEs, window functions and execution plans.

It also includes essential SQLite extensions, from math statistics and regular expressions to hash functions and dynamic SQL.

🔌 Connect any data source

Connect any local or remote SQLite database. Both files and URLs are supported. For example, try loading the Employees database from the GitHub repo.

🔗 Save and share with others

Sqlime saves both the database and the queries to GitHub so that you can revisit them later or share them with a colleague. The database is stored as a plain text SQL dump, so it's easy to read the code or import data into PostgreSQL, MySQL, or other databases.

For example, here is the gist for the Employees database, and here is the sharing link for it.

🤖 Ask AI

Connect an OpenAI account to get help with your queries from the state-of-the-art ChatGPT assistant.

AI can explain, teach, and troubleshoot your SQL

✨ Interactive examples

With Codapi, you can turn static SQL code in your articles or blog posts into interactive examples.

📱 Mobile friendly

Most playgrounds are not meant for small screens. Sqlime was specifically designed and tested on mobile devices.

No need to zoom or aim at tiny buttons — everything looks and works just fine

🔒 Secure and private

There is no server. Sqlime works completely in the browser. GitHub and OpenAI credentials are also stored locally. Queries are saved as private GitHub gists within your account. Your data is yours only.

⌨️ Dead simple

Sqlime has zero third-party dependencies other than SQLite. Good old HTML, CSS, and vanilla JS — that's all. No frameworks, no heavy editors, no obsolete and vulnerable libraries. Just some modular open-source code, which is easy to grasp and extend.

Keyboard shortcuts

Here are some quick actions:

win mac action
⌃↵ ⌘↵ run query
⌃O ⌘O open file
⌃U ⌘U open url
⌃S ⌘S save and share
⌃/ ⌘/ show tables

Last but not least

⭐️ Star the project on GitHub if you like it

🚀 Subscribe to stay on top of new features

🍋 Use Sqlime to debug and share SQL snippets

← back