Skip to content

Modernization roadmap #47

Description

@LiukScot

Modernization Roadmap — dashboard

Stack attuale

  • Backend: Go 1.25 + stdlib HTTP + gorilla/websocket + mattn/go-sqlite3 + custom session auth
  • Frontend: Svelte 5 + SvelteKit + Vite 8 + Tailwind 4 + ECharts 6 + Bun
  • Test: go test, Vitest, Playwright

Verdetto

Repo già moderno. Tailwind ✅, Svelte stores ✅, build pulita, embedded in Go binary. Pochi punti deboli, tutti a bassa priorità.

Checklist upgrade

🟢 LOW priority

  • Toast notifications → svelte-sonner

    • Sostituisce frontend/src/components/Toast.svelte custom. svelte-sonner è il porting di sonner (lo standard React), API quasi identica, stack queue gratis.
    • Mental model: le librerie toast moderne gestiscono coda, dismiss, swipe-to-close automaticamente. Tu chiami toast.success("Saved") e basta.
  • Validation backend → go-playground/validator

    • Equivalente Go di Zod. Decoratore-style su struct: validate:"required,email". Riduce check manuali.
    • Riconoscere il bug: quando vedi 5+ if x == "" { return err } di seguito → manca validator.
  • Framework eval frontend

    • SvelteKit già è "il Next.js di Svelte" (SSR, file routing). Niente da cambiare. Eventuale upgrade: Svelte 5 runes ($state, $derived) se non già adottate ovunque.

🟡 MEDIUM priority

  • Audit dipendenze
    • bun outdated per frontend, go list -u -m all per backend. Aggiornare patch/minor automatiche.

Note

Repo serve come template di riferimento per quanto bene può essere strutturato un progetto Svelte+Go in self-hosting. Non toccarlo troppo — funziona.


🤖 Roadmap generated by Claude Code after full repo audit. Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions