d93f3bb8881bd418f57f1470e5d1b24f4df7d333
Fixes: - Go server now serves index.html for all non-asset paths (SPA fallback) - Null guard on data.documents prevents undefined.length TypeError - App.vue waits for checkStatus() before rendering AppLayout (race condition) - PWA manifest no longer references missing icon files - index.html applies theme class before paint to prevent flash Features: - Theme store: dark/light toggle + 6 accent color presets + custom hex picker - ThemeToggle component in header dropdown - CSS custom properties for accent color (--accent-400/500/600/700) - Tailwind accent-* color utilities driven by CSS vars - SetupWizard: 3-step flow, password confirmation, LDAP test button, animated toggle, review step, proper error/success states - Sidebar: loading skeleton, active page highlight, null-safe document list - Global .input, .btn-primary, .btn-secondary, .card component classes - Stub GraphQL responses for setup/login/testLdapConnection Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Archivum
A high-performance, production-ready wiki system optimized for Desktop and Mobile, designed to run on a Raspberry Pi 5 (ARM64) or any AMD64 host.
Tech Stack
| Layer | Technology |
|---|---|
| Backend | Go + GraphQL (gqlgen) + SQLite (modernc.org/sqlite, CGO-free) |
| Frontend | Vue 3 (Composition API) + Vite + Tailwind CSS |
| PWA | vite-plugin-pwa (offline caching, installable) |
| Version Control | Git (backend executes git on the storage path) |
| Editor | TipTap (visual) + CodeMirror (raw AsciiDoc) |
| Auth | LDAP + JWT with in-memory session tracking |
Features
- AsciiDoc-native — documents stored as plain
.adocfiles, Git is the source of truth. - Visual ↔ Source editor — TipTap for rich editing, CodeMirror for raw AsciiDoc, with a round-trip TypeScript bridge.
- Git history & diff — every save is a commit; full history and unified diffs via GraphQL.
- Setup Wizard — guided first-run configuration for LDAP, admin user, and storage paths.
- PWA — installable on mobile, fast loading, offline viewing of cached documents.
- Multi-arch Docker — single Dockerfile targeting ARM64 and AMD64.
Project Structure
Archivum/
├── backend/ # Go application
│ ├── cmd/server/ # Entry point
│ └── internal/
│ ├── auth/ # LDAP + JWT
│ ├── config/ # config.json management
│ ├── git/ # Git operations
│ ├── graph/ # GraphQL schema + resolvers
│ └── storage/ # Document read/write
├── frontend/ # Vue 3 application
│ └── src/
│ ├── bridge/ # AsciiDoc ↔ TipTap TypeScript bridge
│ ├── components/
│ │ ├── editor/ # VisualEditor + SourceEditor
│ │ ├── layout/ # AppLayout + Sidebar
│ │ └── wizard/ # Setup Wizard
│ ├── router/
│ ├── stores/
│ └── views/
├── docker/ # Dockerfile + docker-compose
└── .vscode/ # VS Code build & deploy tasks
Quick Start
Prerequisites
- Docker (with access to your registry)
- Go 1.22+ (for local backend development)
- Node.js 20+ (for local frontend development)
Docker (recommended)
docker compose -f docker/docker-compose.yml up -d
Open http://localhost:8080 and follow the Setup Wizard.
Local Development
# Backend
cd backend
go run ./cmd/server
# Frontend (separate terminal)
cd frontend
npm install
npm run dev
Configuration
Backend — config.json
{
"storage_path": "/data/wiki",
"db_path": "/data/archivum.db",
"ldap": {
"host": "ldap.example.com",
"port": 389,
"base_dn": "dc=example,dc=com",
"bind_dn": "cn=reader,dc=example,dc=com",
"bind_password": "secret"
},
"jwt_secret": "change-me",
"listen_addr": ":4000"
}
Frontend — settings.json
{
"api_url": "http://localhost:4000/graphql",
"app_name": "Archivum",
"default_theme": "light"
}
Docker environment variables
| Variable | Default | Description |
|---|---|---|
DOCKER_PATH |
/config |
Base path for config and data volumes |
PUID |
1000 |
File system user ID |
PGID |
1000 |
File system group ID |
VS Code Tasks
Open the Command Palette (Ctrl+Shift+P) → Tasks: Run Task:
| Task | Platform | Description |
|---|---|---|
Compose: Build & Up |
Windows / Linux | Build image and start the full stack locally (http://localhost:8080) |
Compose: Up |
Windows / Linux | Start with the last-built image |
Compose: Down |
Windows / Linux | Stop and remove containers |
Compose: Logs |
Windows / Linux | Follow container output |
Docker: Build |
Windows / Linux | Build registry image |
Docker: Push |
Windows / Linux | Push to 192.168.0.19:5000 |
Docker: Build & Push |
Windows / Linux | Build then push |
Docker: Multi-arch Build & Push |
Windows / Linux | buildx push for ARM64 + AMD64 |
Backend: Run |
Both | go run ./cmd/server |
Frontend: Dev |
Both | npm run dev |
Frontend: Build |
Both | Production Vite build |
License
MIT
Description
Languages
Vue
51.1%
Go
39.2%
TypeScript
7.2%
CSS
1.1%
Dockerfile
0.8%
Other
0.6%