960c375557a6f4803bef8a88f5082eb7b277232d
Solis
Solis is a lightweight, efficient, and reliable home asset tracking server designed specifically for minimal hardware like the Raspberry Pi Zero (ARMv6, 512MB RAM).
Features
- Hierarchical Asset Tracking: Keep track of your home equipment, tools, and inventory.
- Location & Tag Management: Group assets by physical rooms or logical categories.
- Shortlink Generation: Automatically generates collision-resistant shortlinks (e.g.
s/item1) for quick QR code access. - Photo & Receipt Uploads: Store and securely serve important asset documentation.
- Offline-First UI: Self-contained static assets, no external CDNs required.
- CGO-Free SQLite: Cross-compiles beautifully to ARMv6 architectures without painful C/C++ toolchains.
Building
Because Solis uses modernc.org/sqlite, it can be cross-compiled cleanly with CGO disabled:
# Build for Windows (or local testing)
$env:CGO_ENABLED="0"; go build -o solis.exe main.go
# Cross-compile for Raspberry Pi Zero (ARMv6)
$env:GOOS="linux"; $env:GOARCH="arm"; $env:GOARM="6"; $env:CGO_ENABLED="0"; go build -o solis main.go
Running
- Copy
config.toml.exampletoconfig.toml. - Edit
config.tomlto customize the server port, admin credentials, and data directory. - Start the server:
./solis.exe - Access the web interface at
http://localhost:8889(or your configured port). Default login isadmin/admin.
Project Structure
main.go- Application entry pointinternal/db/- SQLite schema, queries, and migrationsinternal/server/- Web server, HTMX templates, and routinginternal/slug/- URL shortener hashing algorithmconfig.toml- Core application configurationdata/- (Ignored by git) Default location for the SQLite database and file uploads
Languages
HTML
45.4%
Go
38.4%
CSS
10%
JavaScript
5.8%
Dockerfile
0.4%