How anbebong/ancol-ani works
The repository contains a desktop pet control app with an optional account-backed GIF sync service and web portal; the checked-in README still describes the Wails vanilla template and does not document these product capabilities. The web UI sends text and GIF requests, previews local GIFs, and provides account/library sync. The server portal supports account, personal-library, sharing, and administration workflows. Server implementation files were listed as read but not excerpted, so links into server internals are omitted or marked unverified rather than inferred.
Main entry points: src/main.js Control page · sync.js Account sync UI · src/main.js Account portal · handlers.go HTTP handlers
Components 17
Desktop controls
- Control page
web/src/main.js - GIF playback
web/src/gif-player.js - Translations
web/src/i18n.js - Confirm dialogs
web/src/modal.js - Desktop binding
app.go - Wails starter UI
frontend/src/main.js
Sync interface
- Account sync UI
web/src/sync.js
Sync server
- Server entry
cmd/syncserver/main.go - HTTP handlers
cmd/syncserver/handlers.go - Authentication
cmd/syncserver/auth.go - GIF and account store
cmd/syncserver/store.go
Server portal
- Server API client
cmd/syncserver/portal/src/api.js - Account portal
cmd/syncserver/portal/src/main.js - Public gallery
cmd/syncserver/portal/src/gallery.js - Portal icons
cmd/syncserver/portal/src/icons.js - Portal dialogs
cmd/syncserver/portal/src/modal.js
Other components
- Desktop user
Connections 18
- Desktop user → Control page: uses controls
web/src/main.js - Control page → GIF playback: plays preview
web/src/main.js - Control page → Translations: translates UI
web/src/main.js - Control page → Confirm dialogs: confirms actions
web/src/main.js - Control page → Account sync UI: initializes sync
web/src/main.js - Account sync UI → GIF playback: renders library GIFs
web/src/sync.js - Account sync UI → Translations: uses translations
web/src/sync.js - Account sync UI → Confirm dialogs: confirms actions
web/src/sync.js - Account sync UI → Server entry: calls sync service
- Server API client → Server entry: requests API
- Account portal → Server API client: calls API
cmd/syncserver/portal/src/main.js - Account portal → Portal icons: renders icons
cmd/syncserver/portal/src/main.js - Account portal → Portal dialogs: confirms actions
cmd/syncserver/portal/src/main.js - Public gallery → Server API client: loads public GIFs
cmd/syncserver/portal/src/gallery.js - Public gallery → Portal icons: renders icons
cmd/syncserver/portal/src/gallery.js - Server entry → HTTP handlers: routes requests
- HTTP handlers → Authentication: checks identity
- HTTP handlers → GIF and account store: reads and writes