commit d8125655e662f679d152f6e1ee89c4b2cb14878b Author: Justin Visser Date: Wed Jun 10 11:57:10 2026 +0200 batman go.mod declares the module path (github.com/JustinZeus/spreadlab); every import inside the repo is spelled relative to it. Layout follows the standard Go shape: cmd//main.go per executable, internal/ for packages other modules may not import (the compiler enforces this). No engine code yet, just a placeholder main that proves 'go build' works. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbdf792 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# binary from `go build ./cmd/spreadlab` +/spreadlab diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6653451 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Justin Visser + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..61b908b --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# spreadlab + +Self-hosted dashboard that runs an agent-based deepfake-spread model live: +change the levers, watch the spread, and (later) search for the best +intervention under a budget. Output is illustrative, not validated. + +Status: milestone 1, porting the simulation engine. + +Layout: + +- `internal/engine/` - the pure simulation engine (no web dependencies) +- `cmd/spreadlab/` - the server binary (milestone 2) +- `web/` - Vue 3 + TypeScript frontend (milestone 2+) + +MIT licensed. diff --git a/cmd/spreadlab/main.go b/cmd/spreadlab/main.go new file mode 100644 index 0000000..201d0ea --- /dev/null +++ b/cmd/spreadlab/main.go @@ -0,0 +1,9 @@ +// Command spreadlab will serve the spreadlab dashboard. For now it only +// proves the module builds; the HTTP server arrives in milestone 2. +package main + +import "fmt" + +func main() { + fmt.Println("spreadlab: engine under construction (milestone 1)") +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..bf5301c --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/JustinZeus/spreadlab + +go 1.26.3