Someli-admin-api¶
This is the documentation subtree for Someli-ai/Someli-admin-api, the Express backend for the internal Admin Console.
Component summary¶
| Component name | Someli-admin-api |
| Purpose | HTTP API serving the Admin Console (admin_console_R). Account management, personnel, prompts, affiliate marketing, customer-service tooling. |
| Tech stack | Node.js 20 + Express 4 + MySQL (callback + sync-mysql + mysql2/promise) + Passport (declared, not actively used) + Stripe + AWS Bedrock |
| Routes | ~40 (31 in routes/routes.js, 9 in routes/auth.js) |
| Background jobs | None (no job_*.js files) |
| Audit version | 0.1 |
| Last verified | 2026-05-17 |
Index¶
Architecture & code organisation¶
Behaviour & integration¶
Cross-cutting concerns¶
Operations¶
Strategy¶
Audit trail¶
At a glance¶
- ~2400 LoC of routes (957 in
routes/auth.js, 1400 inroutes/routes.js) — a fraction ofsomeli-api's 22 000-LoCroutes/routes.js - Uses the same Express-skeleton-from-
someli-apipattern:conf.js+server.js+routes/routes.js+actions/actions.js+helper/+modules/dbDriver/ helper/has 10 files; 4 are byte-identical to their counterparts insomeli-api/helper/; the other 6 have drifted (some heavily —helper.jsdiffers by 856 lines,aiLogics.jsby 396 lines). See code-overlap.md.- One Python script (
Nova-Pro_KnowledgeBased_Content.py) for batch knowledge-base content via AWS Bedrock Nova - Auth: bespoke JWT (encrypted via
tokenGenerator.js, byte-identical tosomeli-api's version) — see authentication.md - No
Dockerfile, noJenkinsfile, no.github/workflows/, nonginx.confin this repo — see build-and-deploy.md - No tests