Documentation Index
Fetch the complete documentation index at: https://memberpulseptyltd.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Convex is a real-time backend platform that powers MemberPulse’s live features including real-time notifications, live dashboards, collaborative features, and instant data synchronization across all connected clients.Real-time Sync
Instant data updates across all clients
Serverless Functions
Backend logic without infrastructure
File Storage
Integrated file storage with CDN
Why Convex?
| Feature | Benefit |
|---|---|
| Real-time by Default | All queries automatically update when data changes |
| ACID Transactions | Strong consistency guarantees for data integrity |
| TypeScript Native | End-to-end type safety from database to UI |
| Serverless | No infrastructure to manage, scales automatically |
| Built-in Auth | Integrates with existing auth providers |
Prerequisites
Before configuring Convex:- Create a Convex account at convex.dev
- Install the Convex CLI:
npm install -g convex - Initialize your project:
npx convex dev
Configuration
Environment Variables
Acceptance Criteria
Frontend
- Environment Variables workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Environment Variables as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Platform Settings
Navigate to Admin Portal > Platform Settings > Integrations > Convex| Setting | Type | Required | Description |
|---|---|---|---|
| Deployment URL | URL | Yes | Convex deployment URL |
| Deploy Key | Secret | Yes | Production deploy key |
| Enable Real-time | Toggle | Yes | Enable real-time features |
| Sync Interval | Number | No | Fallback polling interval (ms) |
Acceptance Criteria
Frontend
- Platform Settings workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Platform Settings as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Architecture
Data Flow
Acceptance Criteria
Frontend
- Data Flow workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Data Flow as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Hybrid Architecture
MemberPulse uses a hybrid architecture:| Data Type | Storage | Reason |
|---|---|---|
| Core Data | PostgreSQL (Symfony) | GDPR compliance, complex queries |
| Real-time Data | Convex | Live updates, collaboration |
| Files | Convex Storage | CDN delivery, easy uploads |
| Sessions | Convex | Real-time presence |
Acceptance Criteria
Frontend
- Hybrid Architecture workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Hybrid Architecture as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Real-time Features
Live Notifications
Acceptance Criteria
Frontend
- Live Notifications workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Live Notifications as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Live Dashboard Metrics
Acceptance Criteria
Frontend
- Live Dashboard Metrics workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Live Dashboard Metrics as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Real-time Presence
Show who’s online and what they’re viewing:Acceptance Criteria
Frontend
- Real-time Presence workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Real-time Presence as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
File Storage
Uploading Files
Acceptance Criteria
Frontend
- Uploading Files workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Uploading Files as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Serving Files
Acceptance Criteria
Frontend
- Serving Files workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Serving Files as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Scheduled Functions
Cleanup Jobs
Acceptance Criteria
Frontend
- Cleanup Jobs workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Cleanup Jobs as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Webhooks to Symfony
Sync real-time data back to the main database:Schema Definition
Authentication
Convex integrates with your existing auth:Deployment
Development
Acceptance Criteria
Frontend
- Development workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Development as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Production
Acceptance Criteria
Frontend
- Production workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Production as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Environment Setup
Acceptance Criteria
Frontend
- Environment Setup workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Environment Setup as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Monitoring
Convex Dashboard
Access at dashboard.convex.dev:- Real-time function logs
- Database explorer
- Storage usage
- Performance metrics
- Error tracking
Acceptance Criteria
Frontend
- Convex Dashboard workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Convex Dashboard as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Metrics to Monitor
| Metric | Target | Alert Threshold |
|---|---|---|
| Query latency (p50) | < 50ms | > 200ms |
| Mutation latency (p50) | < 100ms | > 500ms |
| Active connections | - | > 10,000 |
| Storage usage | - | > 80% quota |
| Function errors | < 0.1% | > 1% |
Acceptance Criteria
Frontend
- Metrics to Monitor workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Metrics to Monitor as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Troubleshooting
Real-time updates not working
Real-time updates not working
- Verify
NEXT_PUBLIC_CONVEX_URLis correct - Check browser console for WebSocket errors
- Ensure user is authenticated
- Verify query is subscribed (not just called once)
File uploads failing
File uploads failing
- Check file size limits (default 20MB)
- Verify storage quota not exceeded
- Ensure
generateUploadUrlis called before upload - Check CORS configuration if uploading from browser
Functions timing out
Functions timing out
- Convex functions have 60-second timeout
- Break large operations into smaller chunks
- Use scheduled functions for long-running tasks
- Check for infinite loops in queries
Security
- All data encrypted at rest and in transit
- Row-level security via authentication
- Automatic input validation via schema
- Rate limiting built-in
- GDPR-compliant data handling
Features
Convex Integration
Acceptance Criteria
Frontend
- Developer-facing configuration and usage is documented and internally consistent.
Backend / API
- Convex implementation matches the rules and contracts described on this page.
Permissions
- Tenant scoping and access controls are enforced as described.
Business Rules
- Domain rules/invariants are enforced as described.
Error Handling
- Access violations and validation failures produce deterministic errors.