explaingit

ngaut/sqler

Analysis updated 2026-07-18 · repo last pushed 2023-02-24

GoAudience · vibe coderComplexity · 2/5DormantSetup · easy

TLDR

Turns SQL queries into ready-to-use web APIs, so you can build a backend by writing a config file instead of server code.

Mindmap

mindmap
  root((sqler))
    What it does
      SQL to API
      No backend code
      Config file driven
      Data transform in JS
    Tech stack
      Go
      HCL config
      Single binary
    Access methods
      REST over HTTP
      Redis compatible
      Webhook auth
    Databases
      MySQL
      PostgreSQL
      SQLite
      SQL Server
    Use cases
      Startup MVP
      Internal tools
      Quick prototypes
    Safety
      Prepared statements
      Input validation
      Data hashing

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Turn a set of SQL queries into a working REST API in minutes.

USE CASE 2

Build a quick backend for a startup MVP without writing server code.

USE CASE 3

Expose database operations as Redis commands for existing Redis clients.

USE CASE 4

Ship an internal tool fast when a full backend service is overkill.

What is it built with?

GoHCLMySQLPostgreSQLSQLiteSQL ServerRedis

How does it compare?

ngaut/sqler42wim/fabio42wim/go-xmpp
LanguageGoGoGo
Last pushed2023-02-242018-02-042020-01-24
MaintenanceDormantDormantDormant
Setup difficultyeasymoderatemoderate
Complexity2/53/53/5
Audiencevibe coderops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Just a single Go binary plus an HCL config file describing your SQL queries, no external dependencies.

No license information was found in the explanation.

In plain English

SQLer lets you build web APIs directly from SQL queries without writing any backend code. Instead of writing traditional server logic, you write a configuration file that describes what SQL queries should run when someone makes a web request, then SQLer handles the rest. When someone hits an endpoint like /adduser, SQLer runs the SQL query you've defined for that endpoint, validates the incoming data (like checking that an email looks valid), executes the query safely, and returns the result. You can also transform the data using simple JavaScript code if you want to reshape it before sending it back to the user. The whole thing is portable, it's a single Go program with no external dependencies, so you can run it anywhere. The tool works with almost any SQL database you might already use: MySQL, PostgreSQL, SQLite, SQL Server, and several others. It gives you two ways to access your queries. One is a traditional REST API over HTTP, you make web requests and get JSON back, with built-in support for checking authorization through external webhooks. The other is a Redis-compatible interface, which means you can connect using any Redis client and execute your queries as Redis commands. This flexibility means developers familiar with either approach can use what they're comfortable with. SQLer is particularly useful if you have a straightforward data layer and don't want the overhead of building a full backend service. A startup MVP, a rapidly changing internal tool, or a small team that wants to ship quickly might use this to turn database operations into APIs in minutes rather than hours. The configuration uses HCL (the same language nginx uses), which is meant to be readable, and you get built-in features like request validation, data hashing, and automatic protection against SQL injection through prepared statements, so you're not sacrificing safety for speed.

Copy-paste prompts

Prompt 1
Write an HCL config for sqler that creates an /adduser endpoint validating email format and inserting into a PostgreSQL users table.
Prompt 2
Show me how to set up sqler with SQLite so I can turn a few SQL queries into a REST API without writing a server.
Prompt 3
Help me add a JavaScript transform to a sqler endpoint that reshapes the SQL result before returning JSON.
Prompt 4
Explain how to connect a Redis client to sqler's Redis-compatible interface to run my SQL queries as commands.

Frequently asked questions

What is sqler?

Turns SQL queries into ready-to-use web APIs, so you can build a backend by writing a config file instead of server code.

What language is sqler written in?

Mainly Go. The stack also includes Go, HCL, MySQL.

Is sqler actively maintained?

Dormant — no commits in 2+ years (last push 2023-02-24).

What license does sqler use?

No license information was found in the explanation.

How hard is sqler to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is sqler for?

Mainly vibe coder.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.