How mkcodec/mwsm works
Mwsm is a Node.js API that connects MkAuth billing/customer workflows with WhatsApp messaging. Its documented product workflow is MkAuth integration and billing synchronization followed by automated customer communications; the sampled code also shows webhook handling, scheduling records, message/document endpoints, and PDF generation. The main implementation is concentrated in mwsm.js, so several domain stages share that path. Evidence is partial: unsampled queue, dashboard, gateway-specific, and other integrations are not expanded into speculative call chains.
Main entry points: mwsm.js HTTP API · mwsm.db SQLite State · mwsm.py Embedding Service
Components 12
MkAuth Integration
- MkAuth API
- Webhook Intake
mwsm.js - Billing Sync
mwsm.js - Message Scheduling
mwsm.js
WhatsApp Messaging
- HTTP API
mwsm.js - WhatsApp Web
- Document Delivery
mwsm.js - PDF Generation
mwsm.js
Service Operations
- Web Dashboard
index.html - Realtime Events
mwsm.js
State and Embeddings
- SQLite State
mwsm.db - Embedding Service
mwsm.py
Connections 10
- MkAuth API → Webhook Intake: posts events
mwsm.js - Billing Sync → MkAuth API: fetches billing data
mwsm.js - HTTP API → WhatsApp Web: sends messages
README.md - HTTP API → Document Delivery: handles documents
mwsm.js - HTTP API → PDF Generation: serves build route
mwsm.js - Webhook Intake → SQLite State: stores scheduling data
mwsm.js - Message Scheduling → SQLite State: reads and writes
mwsm.js - HTTP API → SQLite State: updates settings
mwsm.js - HTTP API → Realtime Events: emits events
mwsm.js - HTTP API → Embedding Service: requests embeddings