A modern, mobile-optimized Progressive Web App (PWA) for sending SMS notifications through the Free Mobile API with advanced scheduling capabilities and full dark mode support.
- π€ Immediate SMS sending with real-time feedback
- π Advanced scheduling with one-time and recurring messages
- π Flexible recurrence options (daily, weekly, monthly) β timezone-aware, DST-safe
- βοΈ Edit scheduled messages in place (no delete + recreate)
- π Today view β landing page shows reminders firing today with live "in X min" / "il y a X min" labels
- π Separate dedicated views for different message types
- π Smart search and filtering with pagination
- π± Progressive Web App (PWA) - installable on all devices, safe-area aware on iOS
- π Full dark mode support with WCAG-AA contrast
- π§― Startup catch-up β one-time messages whose
sendAtpassed during downtime are sent on restart - π Smart retry β 402 rate-limits back off 60β120 s with jitter;
retryAfterpersisted so the retry cron respects it - π‘οΈ Hardened process β unhandled rejections log and exit for clean supervisor restart
- π± Mobile-first responsive design with 44 px touch targets
- βοΈ Secure credential management with test functionality
- ποΈ Local file-based database (no external database required)
- π Complete message tracking with individual history for recurring messages
- π Persistent recurring schedules that maintain active status
- β Input validation β rejects bad recurrence configs, invalid timezones, and messages that exceed 160 chars after ASCII sanitization (Εβoe, β¦β..., emoji dropped)
- π Offline functionality with intelligent caching
- π Background sync for sending messages when back online
- π² Install prompt with styled in-app instructions for iOS (replaces native alert)
FreeMobNotifier features a comprehensive dark mode system:
- π¨ Complete dark theme - All components support dark mode
- βοΈ Theme selector - Available in Settings page for easy switching
- π Automatic persistence - Your theme choice is saved locally
- π Smooth transitions - Seamless switching between light and dark modes
- π± System preference detection - Automatically detects your device's theme preference
- π― Consistent theming - All form controls, buttons, and components adapt to the chosen theme
- Light mode: Clean, professional appearance with #f8f8f8 backgrounds
- Dark mode: Eye-friendly dark theme with #1a1a1a backgrounds
- CSS variables: Comprehensive theming system with smooth 0.3s transitions
- Component support: All custom components (DateTimePicker, modals, etc.) adapt automatically
FreeMobNotifier is a full-featured PWA that can be installed like a native app:
- π² Installable on Android, iOS, and desktop
- π Offline support with intelligent caching
- β‘ Fast loading with service worker caching
- π Background sync for offline message queuing
- π± Native app experience with fullscreen mode
- π― App shortcuts for quick actions
- π Automatic updates with service worker
- π¨ Custom splash screen with app branding
- Android/Desktop: Look for install prompt or use the "Install App" button
- iOS: Use Share β "Add to Home Screen"
- All platforms: Works like a native app once installed
See PWA_SETUP_INSTRUCTIONS.md for detailed setup guide.
FreeMobNotifier features a clean, intuitive interface:
At-a-glance view of what fires today:
- Upcoming reminders with relative time (
dans 2h 15) and absolute time - Past firings today shown dimmed for context
- 5 most recent sent messages
- Quick links to compose or to the scheduled list
Central hub for sending and scheduling messages with two tabs:
π€ Envoyer maintenant (Send Now)
- Compose and send SMS messages immediately
- Sanitized-length counter (e.g.
Εufcounts as 3 chars, because Free Mobile needs ASCII andΕexpands tooe) - Live preview of the sanitized message when accents or special chars are present
- Over-limit state disables send and shows a clear warning
- Instant delivery feedback
β° Programmer (Schedule)
- Create scheduled messages with custom FreeDateTimePicker component
- Dark mode aware date picker with theme integration
- One-time messages: Set specific date and time
- Recurring options (timezone-aware β the browser's IANA zone is stored with the schedule so DST shifts don't move your reminders):
- Daily: Send every day at specified time
- Weekly: Choose specific days of the week (two-letter labels on mobile)
- Monthly: Select day of the month
- Visual recurrence configuration with toggle buttons
Dedicated view for sent messages only:
- Individual history entries for each recurring message sent
- Chronological ordering from newest to oldest (most recent on top)
- Search functionality across message content
- Pagination for easy navigation
- Modern card-based display with dark mode support
- Expandable message content for long texts
- Smart date formatting for readability
Separate management view for pending/scheduled messages:
- Enhanced filter controls with dark mode styling
- Filter by recurrence type (daily, weekly, monthly, one-time)
- Compact date display with contextual formatting
- Edit in place β modify content, time, recurrence, or weekday selection without recreating the schedule
- Delete scheduled messages with confirmation
- Recurrence line shows the stored timezone (e.g.
Hebdomadaire (Lundi) Γ 09:00 (Europe/Paris)) - Real-time status updates
- Custom dropdown styling with theme-aware arrows
Comprehensive configuration management:
π§ Free Mobile API Configuration:
- Free Mobile API credentials setup
- Test SMS functionality
- Credential validation with feedback
- Secure storage of sensitive data
π¨ Interface Preferences:
- Theme selector with visual light/dark mode buttons
- Instant theme switching with live preview
- Automatic persistence of theme choice
- System preference detection for initial theme
FreeMobNotifier is built with a mobile-first approach:
- 44px minimum touch targets for all interactive elements
- Bottom navigation bar for easy thumb access
- 16px font size on form inputs (prevents iOS zoom)
- Enhanced dropdowns with improved styling and dark mode support
- Swipe-friendly card layouts
- Custom date picker optimized for mobile interaction
- β€360px: Very small mobile devices with optimized theme selector
- 361-480px: Standard mobile phones with stacked theme options
- 481-767px: Large phones and small tablets
- β₯768px: Tablets and desktop with side-by-side theme controls
- Card-based layouts replacing traditional tables
- Gradient headers with visual status indicators
- Smart spacing optimized for different screen sizes
- Professional typography with consistent font weights
- Smooth animations and hover effects
- CSS Grid and Flexbox for modern layouts
- Theme-aware shadows and borders
- FreeDateTimePicker: Custom Vue 3 component with dark mode support
- InstallPWA: Smart installation component with cross-platform guidance
- Theme-aware form controls: All inputs, selects, and buttons adapt to theme
- Responsive navigation: Mobile bottom bar, desktop top navigation
- Modern dropdowns: Custom styling with theme-aware arrows
- Node.js 14+ and npm
- Docker and Docker Compose (optional, for containerized deployment)
- HTTPS (required for PWA features in production)
-
Clone the repository:
git clone https://github.com/baptisteba/FreeMobNotifier.git cd FreeMobNotifier -
Install dependencies:
npm run install:all
-
Create a
.envfile in the root directory:PORT=3000 NODE_ENV=development -
Start the development server:
npm run dev:watch
This runs both frontend and backend in watch mode
Alternative development commands:
# Build client and start server (production-like) npm run dev # Run the Vitest suite (sanitize, scheduler, validator) npm test npm run test:watch # Run frontend and backend separately npm run dev:server # Backend only npm run client # Frontend only (in separate terminal)
-
Access the application at http://localhost:3000
For PWA features in development:
# Generate required PWA icons
open http://localhost:3000/generate-icons.html
# Test PWA installation
# Use Chrome DevTools β Application β Manifest to verify PWA complianceIf you encounter issues during installation or startup:
-
Try installing dependencies separately:
npm install cd src/client npm install cd ../..
-
Check for errors in your terminal output
-
Run the server and client separately for better error visibility:
# Terminal 1 - Run the backend npm run dev:server # Terminal 2 - Run the frontend cd src/client npm run dev
-
Enable more verbose logging by adding to your
.envfile:DEBUG=true
The application uses @seald-io/nedb, a lightweight file-based database that is fully compatible with the MongoDB API but doesn't require a separate database server. All data is stored in the ./data directory:
settings.db: Stores Free Mobile API credentials and user preferencesmessages.db: Stores all messages (immediate, scheduled, recurring, and history)
The system intelligently manages different types of messages:
Recurring Messages (status: 'pending'):
- Original scheduling templates that remain active
- Contain recurrence configuration (daily, weekly, monthly)
- Updated with
lastSenttimestamp after each successful send - Never change to "sent" status to maintain recurring schedule
History Entries (status: 'sent'):
- Individual records created for each successful message delivery
- Linked to original recurring message via
originalRecurringMessageId - Sorted by actual send time for chronological history display
- Include exact timestamp when message was delivered
One-time Messages:
- Single messages that change from "pending" to "sent" when delivered
- No separate history entries needed
This approach makes the application much easier to set up and run without external dependencies while providing complete message tracking.
Complete History Tracking:
- Every message sent (recurring or one-time) appears in history
- Chronological order shows exactly when each message was delivered
- Easy to track frequency and success of recurring messages
Persistent Scheduling:
- Recurring messages continue working indefinitely
- No need to recreate schedules after each send
- Clear separation between active schedules and delivery history
Improved Organization:
- Scheduled view: Shows active recurring schedules
- History view: Shows all delivered messages
- Smart filtering: Find specific messages easily
-
Clone the repository:
git clone https://github.com/baptisteba/FreeMobNotifier.git cd FreeMobNotifier -
Build and start the containers:
docker-compose up -d
-
Access the application at http://localhost:18596
See DEPLOYMENT_GUIDE.md for comprehensive deployment instructions including HTTPS setup for PWA features.
If you prefer to build and run the Docker container manually:
-
Build the Docker image:
docker build -t freemobnotifier . -
Run the container:
docker run -d -p 18596:3000 -v $(pwd)/data:/app/data --name freemobnotifier freemobnotifier -
Access the application at http://localhost:18596
The application is configured to expose the UI on port 18596 externally, while internally the container runs on port 3000. This means:
- External Access: http://localhost:18596 (UI and API both accessible)
- Internal Container: Port 3000 (handles both UI and API requests)
Important: You do NOT need to expose the API port separately because the Express server serves both:
- Static UI files (Vue.js production build with PWA assets)
- API endpoints (under
/api/*routes)
Both are accessible through the same port (18596 externally, 3000 internally).
The application data is stored in a Docker volume that persists across container restarts. This ensures your settings, theme preferences, and message history are preserved.
# To view logs
docker-compose logs -f freemobnotifier
# To restart the container
docker-compose restart freemobnotifier
# To stop the container
docker-compose downBefore using the application, you need to configure your Free Mobile API credentials:
- Log in to your Free Mobile account at https://mobile.free.fr/
- Go to "My Options" section
- Activate the "SMS Notifications" option if not already enabled
- Copy your user ID and API key
- Enter these credentials in the Paramètres (Settings) section of FreeMobNotifier
- Choose your preferred theme (light/dark) in the Interface Preferences section
- Test your configuration using the built-in test feature
- Composition API with reactive state management
- Vue Router for single-page application navigation
- Custom components (FreeDateTimePicker, InstallPWA, enhanced navigation)
- useTheme composable for comprehensive theme management
- CSS variables system with smooth transitions
- Responsive CSS with mobile-first design
- Modern JavaScript (ES6+) with Vite build system
- PWA manifest and service worker integration
- CSS custom properties for comprehensive theming
- Global theme state with Vue 3 Composition API
- localStorage persistence for theme preferences
- System preference detection via
prefers-color-scheme - Smooth 0.3s transitions between themes
- Component-level theme support across all elements
- RESTful API with dedicated endpoints
- Automated scheduler using node-cron for recurring messages
- File-based database with NeDB (MongoDB-compatible)
- Error handling and retry mechanisms
- Secure credential storage
- PWA asset serving with proper caching headers
- Cron-based scheduler checking every minute
- Intelligent recurrence handling (daily, weekly, monthly)
- Individual history tracking - each recurring message send creates a separate history entry
- Smart message ordering - history sorted by actual send time (newest first)
- Persistent recurring schedules - original recurring message stays active for future sends
- Retry mechanism for failed messages
- Automatic cleanup of old sent messages (30+ days)
- Context-aware date formatting (Today, Tomorrow, weekday names)
- Service Worker with intelligent caching strategies
- Web App Manifest with complete configuration
- Offline support with cached UI and background sync
- InstallPWA component with cross-platform installation guidance
- App shortcuts for quick access to key features
- Push notification ready infrastructure
The Free Mobile API is used as follows:
- Endpoint:
https://smsapi.free-mobile.fr/sendmsg - Parameters:
user: Your Free Mobile login IDpass: Your API keymsg: Message content (max 160 characters)
- Response codes:
200: Success - SMS sent400: Missing parameters402: Rate limit exceeded403: Service not activated or invalid credentials500: Server error
- Pending: Message scheduled, waiting for send time
- Sent: Message successfully delivered to Free Mobile API
- Failed: Delivery failed (with retry mechanism)
- Pending: Recurring schedule active, waiting for next occurrence
- When sent: Creates separate "Sent" history entry for each delivery
- Original schedule: Remains "Pending" for future occurrences
- History tracking: Each successful send appears individually in Message History
- Chronological order: Most recent messages appear first
- Smart sorting: Uses actual send time for accurate ordering
- Individual entries: Each recurring message send creates its own history record
FreeMobNotifier is tested and optimized for:
- Mobile browsers: Safari (iOS), Chrome (Android), Firefox Mobile
- Desktop browsers: Chrome, Firefox, Safari, Edge
- Touch devices: Optimized for touch interaction
- Screen readers: Accessible design with proper ARIA labels
- PWA support: Full PWA features on compatible browsers
- Dark mode: Automatic detection and manual override support
- PWA Setup Instructions - Complete PWA configuration guide
- Deployment Guide - Production deployment with HTTPS setup
- License - MIT License details
MIT License - see LICENSE file for details
Made with β€οΈ for Free Mobile users who want smart SMS scheduling capabilities with modern PWA features and beautiful dark mode support