How thinkandcodefocus/xalass-web-frontend works
Xalass is an anonymous story-sharing social network. Users create or access an UUID-based identity, browse and search posts, then publish stories and interact through reactions and comments; profiles and notifications surface activity. The frontend is vanilla HTML/JavaScript, with js/api.js providing the HTTP client and a Laravel backend described in the README. The tree and excerpts do not expose backend internals, so backend capabilities are represented at the documented API boundary; UI-to-client wiring is not shown and is omitted where unverified.
Main entry points: Xalass_Backend Posts API · api.js API client · xalass-feed.html Story feed · sw.js Offline and push worker
Components 18
Identity and access
- Login page
xalass-login.html - API client
js/api.js - Identity API
Xalass_Backend
Stories and discovery
- Story feed
xalass-feed.html - Story detail
xalass-story.html - Story search
xalass-search.html - Posts API
Xalass_Backend - Content moderation
js/xalass-v2.js
Community activity
- Comments and reactions
Xalass_Backend - User profile
xalass-profile.html - Notifications page
xalass-notifications.html - Notifications API
Xalass_Backend - Admin console
xalass-admin.html
App platform
- Push subscription
js/push-notifications.js - Install prompt
js/pwa-install.js - Offline and push worker
sw.js
Other components
- Anonymous visitor
- MySQL database
Connections 24
- Anonymous visitor → Login page: starts session
README.md - Login page → Identity API: authenticates
- API client → Identity API: requests identity
js/api.js - API client → Posts API: requests posts
js/api.js - API client → Comments and reactions: requests comments
js/api.js - Anonymous visitor → Story feed: browses stories
README.md - Story feed → Posts API: loads stories
- Anonymous visitor → Story detail: opens story
README.md - Story detail → Comments and reactions: interacts
- Anonymous visitor → Story search: searches stories
README.md - Story search → Posts API: filters stories
- Story feed → Content moderation: validates content
- Anonymous visitor → User profile: views profile
README.md - Anonymous visitor → Notifications page: checks activity
README.md - Notifications page → Notifications API: fetches updates
- Anonymous visitor → Admin console: manages settings
- Push subscription → Offline and push worker: registers worker
js/push-notifications.js - Push subscription → Notifications API: submits subscription
js/push-notifications.js - Install prompt → Offline and push worker: registers worker
js/pwa-install.js - Offline and push worker → Anonymous visitor: shows push alert
sw.js - Identity API → MySQL database: persists identity
- Posts API → MySQL database: stores posts
- Comments and reactions → MySQL database: stores interactions
- Notifications API → MySQL database: stores notifications