About SQLPage
SQLPage is an MIT-licensed web server written in Rust. Every .sql file in its web root is a page: one query picks a component (table, chart, form, cards) and the next ones fill it with rows.
It connects to SQLite, PostgreSQL, MySQL and Microsoft SQL Server, and to ODBC sources such as DuckDB or ClickHouse. On a CloudSat server, an existing database gets a reporting screen or a small admin tool in an afternoon, with no JavaScript build to maintain.
After deploy SQLPage listens on port 8080. Settings live in sqlpage/sqlpage.json; with no database_url set, it creates a SQLite file named sqlpage.db in that configuration directory.
What you get with SQLPage
- Pages written as
.sqlfiles, no HTML required - Built-in tables, charts, forms, cards, maps and more
- SQLite, PostgreSQL, MySQL, SQL Server and ODBC sources
- Form posts and URL parameters mapped to SQL variables
SQLPage use cases
- Add a reporting page on top of an existing PostgreSQL database
- Build an internal CRUD tool for a small team
- Publish a read-only dashboard of business numbers
After you deploy SQLPage
- Once the server is Running, visit
http://<server IP>:8080; anindex.sqlfile in the web root becomes the home page. - Add pages over SSH: each
.sqlfile name turns into a URL path. - Set
database_urlinsqlpage/sqlpage.jsonto your real database, and switchenvironmenttoproductionbefore launch. - Serve it on a domain over HTTPS, and guard private pages with the authentication component.
SQLPage ports
Open these in your firewall if you use one: 8080/tcp HTTP.
SQLPage FAQ
Do I need to know HTML to use SQLPage?
No. A query such as SELECT 'table' AS component; sets how results look, and the next query supplies the rows. Custom templates are optional.
Can SQLPage run shell commands?
Only when allow_exec is enabled, and it is off by default. Keep it off unless everyone who can edit your .sql files is trusted.
Disclaimer. The SQLPage project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.