Hqnsel Architecture Summary

Frontend

  • Svelte-based desktop UI
  • Wails v2 bindings used to call Go backend functions
  • Core screens: Login, Home, Settings, Account, About
  • Static header / plan indicator is a recurring desired pattern

Backend

  • Go services handle trigger retrieval, updates, config persistence, and listener behavior
  • Wails bindings bridge frontend actions to backend functions
  • Config appears split between config files, local storage logic, and trigger/program models

Data Model Themes

The raw notes converge on these entities:

  • TriggerConfig
  • ProgramConfig
  • LLM model / config block
  • Default/global config versus custom override config
  • User plan / role / entitlement state

Strongest Schema Insight

The clearest schema direction is to separate:

  • trigger identity and type
  • associated programs for hybrid/program-specific behavior
  • reusable LLM/config definitions
  • custom overrides only where needed

That keeps one trigger ID from being duplicated unnecessarily while still allowing multiple program behaviors or model associations.

UX / Product Logic Themes

  • New triggers should default safely to global behavior if unset
  • Account tier should visibly affect what the UI allows
  • Trigger editing belongs in Settings, while Home remains a simpler operational dashboard
  • Plan badges or buttons should link to account/billing details rather than live in isolation

Technical Risk Areas from Raw Notes

  • Wails runtime injection when navigating across pages
  • blank-screen/login redirect issues
  • overcomplicated trigger schema design
  • mixing raw AI-generated advice with actual product decisions

What To Preserve Going Forward

  • The trigger-mode model: global / program / hybrid
  • Explicit defaults for config fallback
  • Clear separation between UI state, persisted settings, and runtime listener behavior

What To Avoid Going Forward

  • Storing architecture decisions only in scattered brainstorming notes
  • letting copy-pasted AI answers become the only source of truth
  • mixing product requirements, code snippets, and unresolved questions in one canonical note

Best Next Canonical Notes