No description
Find a file
Renovate Bot d5af7fab8b
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
test-and-build / test-and-build (push) Failing after 8s
chore(deps): update ghcr.io/luzifer-docker/action-env:master docker digest to 6c1a021
2025-11-15 11:13:02 +00:00
.forgejo/workflows chore(deps): update ghcr.io/luzifer-docker/action-env:master docker digest to 6c1a021 2025-11-15 11:13:02 +00:00
pkg fix: ensure directory when opening database 2025-08-30 16:16:14 +02:00
winlib feat: initial version 2025-08-30 14:56:02 +02:00
.gitignore fix: remove linting, ignore frontend, add README 2025-08-30 15:03:29 +02:00
.golangci.yml feat: initial version 2025-08-30 14:56:02 +02:00
go.mod fix(deps): update github.com/luzifer/sqlapi digest to 23a1db5 2025-11-11 00:12:56 +00:00
go.sum fix(deps): update github.com/luzifer/sqlapi digest to 23a1db5 2025-11-11 00:12:56 +00:00
History.md prepare release v0.1.0 2025-08-30 15:15:53 +02:00
main.go fix: document ldflag variables, add debugging for data path 2025-08-30 15:10:31 +02:00
Makefile feat: add more config options to build 2025-08-30 15:28:46 +02:00
README.md fix(docs): document how to override variables 2025-08-30 15:13:16 +02:00
renovate.json feat: initial version 2025-08-30 14:56:02 +02:00

Luzifer / Native-Web

This project contains a very lightweight Go webserver with webview bindings and a SQLite database interface to put HTML / JS applications into a single native binary having access to a SQLite database for storing data.

How to use

Very simple spoken: Put your HTML / JS into the pkg/frontend/assets directory, make sure there is an index.html as starting point and then make build / make build_windows the application.

A bit more complex: Set up your project, add this repo as a git submodule, let your frontend compile into pkg/frontend/assets and then build it.

See main.go for variables to override during build to modify window title, version, productID (and therefore the storage path), …

go build \
  -ldflags "-X main.productID=io.luzifer.myproject -X main.version=v1.0.0 -X main.windowTitle=Foobar" \
  -mod=readonly \
  -modcacherw \
  -trimpath