Files
archie/.okf/codebase/internal/webui/webui.md
T
sam 7c34bdae5a okf: scaffold knowledge bundle and MCP server config
Adds a harvested .okf/ knowledge bundle (codebase concepts + starter
architecture/services/rules scaffolding) and .mcp.json pointing at the
shared okf MCP service (http://localhost:8765/archie-core/), which
serves multiple projects' bundles from a single process.
2026-07-22 04:36:50 +10:00

51 lines
963 B
Markdown

---
description: Source module internal/webui/webui.go (177 lines).
resource: internal/webui/webui.go
tags:
- go
- source
timestamp: "2026-07-21T18:36:22Z"
title: webui.go
type: Module
---
# Module webui.go
**Path**: `internal/webui/webui.go`
**Lines**: 177
## Snippet Preview
```
// Package webui is archied's observability dashboard: task board,
// per-task timelines, workflow/stage metrics, and a live event tail
// over SSE. Read-only — the daemon is steered through GitHub, not here.
// Bind it to localhost or a tailnet address; it has no auth.
package webui
import (
"context"
_ "embed"
"encoding/json"
"log/slog"
"net/http"
"strconv"
"sync"
"time"
"github.com/samcharles93/archie-core/internal/events"
"github.com/samcharles93/archie-core/internal/store"
)
//go:embed index.html
var indexHTML []byte
type Server struct {
Store *store.Store
Log *slog.Logger
mu sync.Mutex
conns map[chan events.Event]struct{}
}
```