How romadlon-m/babelens works
Babelens is a browser-based platform for retrieving and filtering Bangka Belitung news for economic and PDRB analysis, with a separate operational workflow for staff labeling and administration. The main user flow is keyword/region/sector search into categorized article results; the dashboard supports date- and region-filtered summaries. Labelers claim and submit screener, Lapus, or Pengeluaran work, while administrators review labels and monitor ML shadow predictions. Edges are limited to relationships visible in excerpts or documented in the README; major unsampled capabilities are represented by their exact paths without speculative links.
Main entry points: labeling-common.js Labeling pages · news-search.js News search · dashboard.js Dashboard analytics · index.ts Label submission
Components 17
News discovery
- News search
news-search.js - News articles
news.html - Interactive onboarding
onboarding-tour.js
Economic analysis
- Dashboard analytics
dashboard.js
Labeling workflow
- Labeling pages
labeling-common.js - Screener parser
labeling-screener.js - Lapus parser
labeling-lapus.js - Pengeluaran parser
labeling-pengeluaran.js - Label submission
supabase/functions/submit-label/index.ts
Administration
- Label review
admin-review.js - ML shadow monitor
admin-ml-monitor.js - User administration
admin-users.js - Admin user function
supabase/functions/admin-users/index.ts - Unregistered-user cleanup
supabase/functions/delete-unregistered-user/index.ts
Identity and backend
- Sign-in and profile
auth.js - Supabase services
Other components
- Platform user
Connections 23
- Platform user → News search: searches
README.md - News search → News articles: shows results
README.md - News search → Supabase services: queries articles
- Platform user → Dashboard analytics: explores summaries
- Dashboard analytics → Supabase services: loads summaries
- Platform user → Sign-in and profile: signs in
auth.js - Sign-in and profile → Supabase services: authenticates and logs
auth.js - Platform user → Labeling pages: labels articles
- Labeling pages → Screener parser: uses parser
labeling-common.js - Labeling pages → Lapus parser: uses parser
labeling-common.js - Labeling pages → Pengeluaran parser: uses parser
labeling-common.js - Labeling pages → Supabase services: claims and fetches prompts
labeling-common.js - Labeling pages → Label submission: submits labels
- Label submission → Supabase services: writes labels
supabase/functions/submit-label/index.ts - Platform user → Label review: reviews labels
- Label review → Supabase services: loads and updates review
admin-review.js - Platform user → ML shadow monitor: monitors predictions
- ML shadow monitor → Supabase services: loads prediction queue
admin-ml-monitor.js - Platform user → User administration: manages users
- User administration → Admin user function: calls admin function
- Admin user function → Supabase services: manages accounts
supabase/functions/admin-users/index.ts - Unregistered-user cleanup → Supabase services: checks and deletes user
supabase/functions/delete-unregistered-user/index.ts - Platform user → Interactive onboarding: takes guided tour