Skip to content

someli-dashboard-be

This is the documentation subtree for Someli-ai/someli-dashboard-be, a tiny standalone Express service that mirrors someli-api/dashboard/.

Component summary

Component name someli-dashboard-be
Purpose Analytics endpoints (account insights, growth, post insights) served on port 6001 under /dashboard/*
Tech stack Node.js 20 + Express 4 + sync-mysql + node-cron
Source of truth Split. Production runs the in-process copy in someli-api/dashboard/. This standalone repo is for local development with mocks, and is a likely future-extraction target.
Audit version 0.1
Last verified 2026-05-17

Index

Core

Behaviour

Cross-cutting

Operations

Strategy

Audit trail

At a glance

  • Total LoC (excluding node_modules): 2062 lines across routes/index.js (974), services/job_account_insights.js (528), services/job_post_insights.js (520), services/job_growth_insights.js (40), plus 4 small mock/*.js files
  • 9 HTTP endpoints: all GET, all under /dashboard/*, all returning JSON
  • No tests, no CI configured
  • No Dockerfile — deploy method unclear (the production server runs the in-process copy in someli-api, not this standalone)
  • 3 service modules: job_account_insights.js, job_growth_insights.js, job_post_insights.js — these are not cron jobs despite the job_* filename (they are helpers consumed by routes/index.js)