How allenkisairakesh/securex works
SecureX is an authentication-as-a-service platform: an end user signs in or registers through its SPA or embeddable widget, receives a token, and uses authenticated dashboard/API workflows for identity administration, keys, webhooks, audit logs, and security. The Express entry point dispatches API requests through authentication middleware to domain routes, which persist state in MongoDB. The graph preserves README capabilities, including unsampled routes and integrations at their documented directory paths; their internal wiring is not inferred beyond documented behavior.
Main entry points: server.js Express entrypoint · auth.js JWT authorization · webhooks.js Webhook management · js Dashboard SPA
Components 21
Clients
- Dashboard SPA
public/js - Login widget SDK
public/embed/securex.js - Auth pages
public/js/pages/auth.js - Webhook console
public/js/pages/webhooks.js - Developer hub
public/js/pages/docs.js - API client
public/js/api.js
API and Security
- Express entrypoint
server.js
Identity and Access
- Authentication
routes/auth.js - JWT authorization
middleware/auth.js - Scoped API keys
routes/keys.js - User records
models/User.js - API key records
models/ApiKey.js
Management and Audit
- User directory
routes/users.js - Analytics dashboard
routes/dashboard.js - Webhook management
routes/webhooks.js - Audit records
models/ActivityLog.js - Webhook records
models/Webhook.js
Other components
- End user
- Integrating app
- MongoDB
- Webhook endpoint
Connections 32
- End user → Dashboard SPA: uses
- Integrating app → Login widget SDK: embeds
- Login widget SDK → Express entrypoint: posts credentials
- Dashboard SPA → Auth pages: renders
- Dashboard SPA → Webhook console: renders
- Dashboard SPA → Developer hub: renders
- Auth pages → API client: submits auth
- Webhook console → API client: manages webhooks
- API client → Express entrypoint: sends API requests
- Express entrypoint → Authentication: dispatches auth
- Express entrypoint → User directory: dispatches users
- Express entrypoint → Scoped API keys: dispatches keys
- Express entrypoint → Analytics dashboard: dispatches stats
- Express entrypoint → Webhook management: dispatches webhooks
- Authentication → JWT authorization: verifies tokens
- User directory → JWT authorization: verifies tokens
- Scoped API keys → JWT authorization: verifies tokens
- Analytics dashboard → JWT authorization: verifies tokens
- Webhook management → JWT authorization: verifies tokens
- JWT authorization → User records: loads identity
- Authentication → User records: reads and writes
- User directory → User records: manages identities
- Scoped API keys → API key records: manages keys
- Webhook management → Webhook records: manages subscriptions
- Analytics dashboard → Audit records: reads activity
- Authentication → Audit records: records auth events
- Webhook management → Audit records: records changes
- User records → MongoDB: persists
- API key records → MongoDB: persists
- Webhook records → MongoDB: persists
- Audit records → MongoDB: persists
- Webhook management → Webhook endpoint: test ping