
Web & phone apps
Devowt
A self-hosted shared calendar for couples and small groups, with a permission engine and change requests.
- When
- Jul – Nov 2026
- Status
- Live, pre-launch
- Built with
- ReactViteFastAPISQLAlchemySQLiteAlembicTanStack Query
Devowt is a mobile-first shared calendar for couples, small groups and people keeping themselves accountable. Each shared calendar has its own members, roles and rules about who may do what, plus a library of activities, rewards and penalties linked to events. It is built as a product to be monetised, not a personal script.
The need
People who hold each other to commitments need more than a shared calendar: some changes should wait for another member's approval, and keeping or missing a commitment should carry an agreed reward or penalty, all kept private.
What was built
- A permission engine: every write asks one function and gets allow, defer or deny, configured per calendar through presets or per role and per action.
- Change requests: a deferred write becomes a pending request reviewed field by field (approve some fields, reject others, or approve with edits), which the requester can revise or withdraw.
- Month, week and day views with drag-to-reschedule, recurring events whose dates can each be moved on their own, and an iCal feed for iOS and Google Calendar.
- Real-time sync over Server-Sent Events on every shared change, an installable PWA with a persisted offline cache, and auto-save with no Save buttons.
- Rewards as coupons, spent when placed on the calendar and returned if removed before the event starts, alongside an append-only points ledger, streaks, achievements and a reward wheel.
- Field-level encryption at rest for event titles, descriptions and locations, member names and notes; hashed, expiring login sessions; rate-limited sign-in by email or Google.
What was hard
- A SQLite migration trap: Alembic's batch mode rebuilds a table, and SQLite's implicit delete fired foreign-key cascades that silently wiped child rows. Migrations now run with foreign keys off, prefer in-place renames, and every schema change is a defensive numbered migration that is safe to re-run.
- Encryption hid a bug from the tests: the suite runs with no encryption key, so a missing decrypt passed, and a subscribed iPhone showed ciphertext as event titles from the iCal feed. The fix came with tests that switch a real key on; four of the five fail on the old code.
- A two-way Google Calendar sync loop (pull, push, renew the watch channel) with deterministic event ids so a retried insert becomes an update, an etag loop guard and last-write-wins per event. It is built and tested against a fake Google, not yet switched on in production.