←All work

Case study · Personal software

Reflect.One app for the whole day, not one more tab.

Most productivity apps do one thing well: a task list, a journal, a budget. But the todo I skipped, the journal entry that explains why, the goal it belongs to and what it cost are one story. Reflect keeps that story in one place, around one habit: plan, record, pursue, review, then do it again a little better.

Role
Solo, design to database
When
2026
Platform
Web · installable PWA
Scale
100+ migrations

How it works

Four loops, one database.

Every page belongs to one of four loops. Each loop feeds the next, so a week's review starts from what actually happened.

week 48

01 / 04 · Plan

Plan the day

Home shows the period at a glance. Todos, the Calendar and the Daily Operating Loop turn it into a short plan: one focus and up to five actions.

duggu · illustrative
one focus, three todos. small plan, real day :3

The hard part

Letting AI near a diary without letting it run the diary.

Reflect holds journals, money and plans, which is exactly the data an AI is useful on and exactly the data a wrong write would damage. Each AI surface got its own, narrower permission.

Coach
Advises from app data. It can create a todo or a weekly commitment only when I click a suggestion, and it never edits or deletes a record.
Reports
Journal and stock reports are drafts until I finalize them.
Operator
An MCP server lets an agent on Telegram read and write through typed tools. A second token exposes only the list and get tools.
Secrets
API tokens are encrypted in the browser and stay out of reach of the Operator, MCP, search and exports.

What I built

01

A daily loop that remembers

One focus and one to five actions picked from existing todos. The evening review records Done, Partial, Skipped or Dropped for each; Done completes the todo, and the day's decision survives later edits.

02

One recurrence kernel

Calendar event rules and routine templates share a single tested module for date mechanics, while each keeps its own rules for moved, changed or cancelled occurrences.

03

Secrets the server can't read

AES-256-GCM in the browser with a key derived from a passphrase that lives only in memory. Each ciphertext is bound to its row, so a copied value fails to decrypt.

04

A Coach that acts on a click

The weekly brief ends with suggestions that become a todo or a commitment in one click, and a suggestion can't be added twice.

05

An MCP server for agents

Reflect Operator runs as a Supabase Edge Function, with a separate read-only token for agents that should never write.

06

Morning reminders on a schedule

Web push from a scheduled Edge Function, triggered by pg_cron every morning at 06:00 WIB.

Stack

App

React 18

TypeScript

Vite

Tailwind CSS

shadcn/ui

Data

Supabase Postgres

Row-level security

TanStack Query v5

Server

Supabase Edge Functions

pg_cron

Web Push

AI

OpenRouter

MCP

Tests

Vitest

Playwright