Open-source project
sqlpage/SQLPage avatar
sqlpage/SQLPage

SQLPage ships two version numbers, and the release binaries are not built with the release profile

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.

2,588 stars185 forksRustMIT

At a glance

What is it?
SQLPage turns .sql files into interactive pages, and its Rust server and JavaScript frontend carry separate version lines: 0.46.3 and 1.0.0 in the same repository. The build configuration is where the detail sits, from a custom profile with fat LTO and abort on panic to a compose file whose profile name doubles as the connection scheme.
Who is it for?
This fits a team that already has a database and wants an internal tool without a frontend build, and it earns its place on the strength of the component protocol: a component is a query whose first column names it, and form input arrives as dollar prefixed variables, so a page is readable SQL rather than a component tree. Two things to know before you build on it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly Rust, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • sqlpage/SQLPage2,588 ★ · +20
Star history
Repository2026-09-302026-11-26
sqlpage/SQLPage2.6k2.6k

20 Stars in the last 57 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The server is 0.46.3 and the frontend package is 1.0.0 in one tree

Two manifests, two versions, one repository. The Rust package is named sqlpage at version 0.46.3, matching the newest tag, and it uses edition 2024. The JavaScript manifest is also named sqlpage but sits at version 1.0.0, which is the frontend bundle rather than the server. So a dependency pinned to 1.0.0 in the JavaScript world and a Docker image tagged 0.46.3 in the server world refer to the same project at different points in their own lines. The JavaScript side is small: four runtime dependencies, Tabler core and its icon sprite, ApexCharts and tom-select, plus sharp and the TypeScript toolchain as development dependencies. Its test script chains a Biome check, a typecheck and a Node test run, and the typecheck runs the compiler three times over the root, over tests/js and over tests/end-to-end, the last of which is the only declared workspace.

The shipped binary is built with a profile that is not called release

The manifest defines a profile of its own alongside the standard ones, and the container build selects it. The profile is called superoptimized, it inherits release, it strips debuginfo, it turns on fat link time optimisation, it sets codegen units to 2 and it sets panic to abort. The Dockerfile takes the profile name as a build argument defaulting to superoptimized and exports it as an environment variable, so an image built without arguments is not a release build in the ordinary sense. The lint configuration is just as strict. Clippy runs with pedantic denied, and database macros, todo and unimplemented are each denied outright, while missing error documentation and missing panic documentation are allowed. The Rust side separately denies elided lifetimes in paths, unreachable public items and unused qualifications. For a codebase whose tests generate expected SQL output, that combination of denies and a stripped, aborting profile is a deliberate trade.

sqlx is pulled in under a different crate name at the old API line

The database layer is one dependency with a renamed package and a version that tells you something. The manifest asks for sqlx but binds it to the package sqlx-core-oldapi at version 0.6.59, which is the pre 0.7 line of that driver rather than the current one, and it switches off the default feature set while enabling a specific list: any, the tokio runtime with rustls, migrations, and one feature per supported engine, sqlite, postgres, mysql, mssql and odbc, plus chrono, bigdecimal, json and uuid. That single entry is the reason the same binary can talk to four native databases and everything else through ODBC. One more detail matters for deployment: the Linux and macOS release binaries carry a statically linked unixODBC driver manager inside them, but you still have to install or provide the database specific ODBC driver yourself.

The published crate ships templates and a built frontend, and no docs

The include list is short and deliberate: the source directory, the readme, the build script, the sqlpage templates directory and the built frontend bundle. Everything else stays out of the published crate. That means documentation, examples, tests and the configuration guide are repository only, which is normal, and it means the crate depends on a generated artefact, since frontend/dist has to exist before the package can be assembled and the container build produces it in an earlier stage from the TypeScript sources. The root also carries two directories that look like sources at first glance, src/ and sqlpage/, the latter holding the templates and a database file. Beside them sit the pieces of a real service repository rather than a library: a systemd unit named sqlpage.service, a separate Dockerfile for a Lambda target, an AGENTS.md, a SECURITY.md, a single test.hurl at the root, a db-test-setup directory, and about two dozen example directories.

A component is a query whose first column is its name

The rendering protocol is the part worth learning, because it is what makes a page a SQL file. A first query declares the component by putting its name in a component column, and every other column is a property; a second query supplies the rows. The list example is the smallest complete case:

sql
SELECT
    'list' as component,
    'Popular websites' as title;
SELECT
    name as title,
    url as link,
    CASE type
      WHEN 1 THEN 'blue'
      ELSE 'red'
    END as color,
    description, icon, active
FROM website;

The chart example names a type, the area style, and then aggregates by quarter. The form example adds a validate property, selects field definitions from a table, and passes input into the statement that writes it, reading dollar prefixed variables such as the first and last name and guarding the insert with a not null test. The tab example shows the query parameter mechanism, with a variable compared against a column to decide which tab is active, and finishes by reading a markdown file through a built in function.

The default container is busybox based and a second one is Debian based

One Dockerfile produces more than one runtime image, and the difference matters when you extend it. The default stage starts from a glibc busybox base, creates a system group and user at id 1000, makes an empty database file in the configuration directory, sets the web root and configuration directory as environment variables, copies the binary in, copies extra runtime libraries out of the builder into the system library directory for the glibc busybox base, and drops to the unprivileged user before starting. A later stage starts from a Debian trixie slim base and is described as the DuckDB ODBC image, with its connection string pointing at a driver under /opt. The documented way to run it mounts the working directory:

shell
docker run -it --name sqlpage -p 8080:8080 --volume "$(pwd):/var/www" --rm lovasoa/sqlpage

The page also says plainly that building your own image on top of the official one is not recommended because it is stripped down, and suggests taking Debian as a base and copying the binary across instead.

The compose file reuses the profile name as the connection scheme

One variable drives both which database starts and how the application connects, and the file also keeps its credentials in plain sight. The comment says you can switch databases by changing COMPOSE_PROFILES in the .env file, and the web service depends on a service name built from that same variable with postgres as the default. The connection string is then assembled from it, with the variable used as the URL scheme: postgres gives postgres://root:... , and the same trick yields mysql:// and mssql://. The password is the literal Password123! and appears in the PostgreSQL password, the MySQL root password, the assembled URL, and the healthcheck that passes it on the command line. The SQL Server dependency is present but commented out in the depends_on block. A .env file also appears in the repository root, which is the file those settings are meant to live in.

Native binaries stop at Apple silicon, and one host link pays commission

Platform coverage is stated in one paragraph and it has an edge. Release binaries are provided for Linux and Windows on x86_64 and for macOS on Apple silicon, and Intel Mac users are pointed at Homebrew, with a note that they may need to build from source and a pointer to the macOS guide for details and older version requirements. Docker images are provided for arm64 and armv7, which makes a Raspberry Pi or a cheaper ARM cloud instance the easy route, and the reason given is the binary coverage rather than the image. The three most recent releases are patch level, 0.46.3 on 2026-09-17, 0.46.2 on 2026-09-12 and 0.46.1 on 2026-09-03, so the line moves quickly. For hosting, managed hosting is pointed at DataPage and a VPS option at Hostinger, where the page discloses in the same line that the link is an affiliate link and the project receives a small commission.

Editorial conclusion

This fits a team that already has a database and wants an internal tool without a frontend build, and it earns its place on the strength of the component protocol: a component is a query whose first column names it, and form input arrives as dollar prefixed variables, so a page is readable SQL rather than a component tree. Two things to know before you build on it. The frontend and the server version independently, so tooling that pins a SQLPage version has to decide which of the two it means, and Intel Macs get neither a native binary nor a promised build path. Read the connection settings before running the compose file, since it carries a database password in clear text and selects the engine from a variable in a tracked .env file.

Frequently asked questions

What is sqlpage/SQLPage?

It is an SQL-only webapp builder written in Rust and licensed MIT. You write .sql files whose queries select, group, update, insert and delete data, and the query results are rendered as interactive pages with text, lists, grids, plots and forms.

Which databases does SQLPage connect to?

SQLite including loadable extensions such as Spatialite, PostgreSQL and compatible engines including YugabyteDB, CockroachDB and Aurora, MySQL with MariaDB and TiDB, Microsoft SQL Server with Azure SQL and Amazon RDS, and anything reachable over ODBC, named examples being ClickHouse, MongoDB, DuckDB, Oracle, Snowflake, BigQuery and IBM DB2.

How do you install SQLPage on macOS?

Homebrew is the recommended route, including on Intel Macs, with brew install sqlpage and then running sqlpage from the website folder. Release binaries cover Linux and Windows on x86_64 and macOS on Apple silicon only, and Intel Macs may have to build from source.

How does SQLPage decide which component to render?

The first query of a component puts its name in a component column, such as list, chart, form or tab, and its other columns are the properties. A second query supplies the rows, and form input arrives as dollar prefixed variables that the following statements read, with one built in function reading a markdown file into the page.

Does SQLPage publish a docker image?

Yes, as lovasoa/sqlpage, and the documented run command mounts the current directory at /var/www and publishes port 8080. The page advises against using that image as the base for your own, because it is stripped down, and suggests a Debian base with the binary copied across instead.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. Releases
  5. sqlpage/SQLPage on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/sqlpage-sqlpage.svg)](https://hysenlabs.com/projects/sqlpage-sqlpage)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/sqlpage-sqlpage.svg)](https://hysenlabs.com/projects/sqlpage-sqlpage)

Was this useful?