Repository navigation
Releases
Releases · glhfuck/nasa
v0.1.0 — Initial Release
First public release of nasa (Nightly And Safe Adjustments) — typed, concurrency-safe dynamic configuration and feature flags for Go backed by PostgreSQL or SQLite, with an optional embedded web UI and zero external dependencies.
Highlights
- Zero external dependencies: Built entirely on the Go 1.24 standard library (
database/sql,sync/atomic,net/http,embed). Addinggithub.com/glhfuck/nasaintroduces zero transitive dependencies to yourgo.mod. UFO[T](Updatable Field Object): Lock-free reads on the hot path viaatomic.Pointer[T]and.Get(). Supports primitives, structs, slices, maps, pointers,time.Time, and human-readabletime.Durationstrings ("250ms","1h30m").- Drop-in compatibility with YAML/env configs: Mix static
yaml:"..."fields and livenasa:"..."fields in the same Go struct. BuildRegistry: Reflects over your config struct once at startup, auto-initializes zero-valueUFOfields, and maps nested structs into slash-separated keys (app/worker/batch-size).Poller: Performs an initial synchronous fetch onStart(ctx)and pollst_nasain the background. Protects services from malformed JSON,nullinto non-nullable types, schema drift during rollouts, and transient DB outages.ServeUI(optional embedded control panel):- Four key states:
Green(In DB & Code),Yellow(Code only — running on compiled-in default),Red(Type mismatch — DB row doesn't match Go type), andGray(DB only). - Two-step diff review: Side-by-side
Old -> Newpreview before committing changes to the database. - 5-second non-modal Undo on boolean switches: Instant one-click toggles with an inline countdown toast and immediate undo.
- Two-click Reset & Delete: Safely remove DB overrides to revert keys to compiled-in defaults without confirmation modals.
- Exact
int64precision: Preserves 64-bit integers past2^53end-to-end between Go and browser JS. - Tree & flat views, instant search (keys, values,
desctags), and light/dark themes.
- Four key states:
Install
go get [github.com/glhfuck/nasa@v0.1.0](https://github.com/glhfuck/nasa@v0.1.0)Full documentation and examples: README.md · pkg.go.dev/github.com/glhfuck/nasa