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/<binary>/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.
This commit is contained in:
Justin Visser 2026-06-10 11:57:10 +02:00
commit d8125655e6
5 changed files with 50 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
# binary from `go build ./cmd/spreadlab`
/spreadlab

21
LICENSE Normal file
View file

@ -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.

15
README.md Normal file
View file

@ -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.

9
cmd/spreadlab/main.go Normal file
View file

@ -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)")
}

3
go.mod Normal file
View file

@ -0,0 +1,3 @@
module github.com/JustinZeus/spreadlab
go 1.26.3