FRZ-05
Distributor network dashboard architecture
A dashboard for distributors of a network marketing company, many of them older people on their phones. It plans the weekly repeat order: how much, where in the network, and when.
A clock ticks every hour
A Cloudflare Worker wakes the dashboard once an hour. That is its only job.
- Cloudflare Workers
- Scheduled job
The dashboard picks who is due
The dashboard works out which accounts are due and starts a data job for each.
- Next.js
- GitHub Actions
Portal data is collected
A headless browser signs in to the distributor portal and collects the data.
- Playwright
The repeat order plan is built
The strategy engine builds the weekly plan and saves a snapshot.
- Engine
- PostgreSQL
Distributors get a heads-up
A daily reminder goes out by email and push notification. The details are read on the dashboard, on a phone.
- Push notifications
Technology
- Features
- Repeat order plan
- Daily reminders
- Phone-friendly dashboard
- Stack
- Next.js
- TypeScript
- PostgreSQL
- Drizzle ORM
- Playwright
- Push notifications
- Infrastructure
- Vercel
- Cloudflare Workers
- GitHub Actions