H
iOS & watchOS Product

Retime

An AI-powered jet lag management app that delivers personalized, science-based adaptation plans — built with Swift, Node.js, and the Anthropic Claude API

Timeline Mar 2025 — Present
Role Product Designer & Developer
Team Solo Project
Tools SwiftUI, Node.js, PostgreSQL, Anthropic Claude API, Figma

Retime is a full-stack mobile application that helps frequent travelers manage jet lag through personalized, AI-generated adaptation plans. By analyzing flight schedules and time zone transitions, it provides real-time suggestions for sleep, exercise, caffeine, and sunlight exposure — powered by the Anthropic Claude API.

01

Problem

Jet lag disrupts millions of travelers yearly, yet existing tools offer rigid, one-size-fits-all schedules that ignore individual habits and multi-leg trips.

02

Solution

Retime uses the Claude API as its suggestion engine — assembling flight, preference, and time zone context to generate personalized, adaptive recommendations instead of hard-coded rules.

03

Vibe Coding

Retime was built end-to-end using Claude Code as a pair programmer — from architecture planning to pixel-perfect implementation. This AI-assisted workflow compressed months of solo development into weeks while maintaining high code quality.

💬

Prompt Engineering

Crafted structured prompts with full project context, CLAUDE.md rules, and memory files to maintain consistency across sessions.

🏗️

Architecture-First Planning

Used Claude Code's plan mode to explore, design, and validate system architecture before writing any code.

🔍

Iterative Code Review

Leveraged Claude as a pair programmer — reviewing diffs, catching edge cases, and refactoring in real time.

🌐

Full-Stack in One Flow

Built SwiftUI frontend, Node.js API, and PostgreSQL schema in a single vibe coding workflow — no context switching.

🐛

Debug with AI Context

Fed error logs, stack traces, and runtime state directly to Claude Code for rapid root-cause analysis and fixes.

🎨

Design-to-Code Pipeline

Translated Figma designs into pixel-perfect SwiftUI views by describing visual specs to Claude Code.

04

Features

Core capabilities that make Retime a complete jet lag management companion — from intelligent scheduling to wrist-level reminders.

📊

Home Dashboard

Contextual travel state display with flight countdown, dual time zone clocks, and real-time suggestion cards.

✈️

Flight Management

Add, track, and manage multi-leg itineraries with automatic time zone detection and duration calculation.

🤖

AI Suggestions

Claude-powered personalized recommendations for sleep, exercise, caffeine cutoff, and sunlight exposure timing.

Apple Watch

Companion watchOS app with glanceable task checklists, exercise rings, and haptic reminders on your wrist.

05

Design System

Palette
#D1E561 Daytime
#A48AEE Nighttime
#F1C038 Sunlight
#7D6142 Caffeine
#121418 Surface
Typography
10:09 Montserrat Bold 32pt
Boston Poppins ExtraBold 20pt
My coming flights Poppins Bold 18pt
Sleep Schedule Poppins SemiBold 16pt
56/40 MIN Poppins Medium 14pt
06

Technical Architecture

The system is split across a native Swift iOS client, a Node.js/Express backend deployed on Render, and a managed PostgreSQL database. The suggestion engine orchestrates context assembly and Claude API calls with structured output schemas — guaranteeing predictable JSON that the iOS client can render directly into suggestion cards.

Swift / SwiftUI
iOS & watchOS
Node.js
Backend API
PostgreSQL
Database
Claude API
AI Engine
Prisma
ORM
Render
Deployment
07

App Screens

A selection of key screens across the iOS app — from the home dashboard and AI-powered suggestions to flight tracking with 3D globe visualization, personalized preferences, and weekly data analytics.

Home

Contextual dashboard with AI-generated suggestion cards for sleep, exercise, caffeine, and sunlight.

Home dashboard with AI suggestion cards Expanded AI suggestions with sleep shift plan

Flights

Multi-leg itinerary management with dual timezone display, search, and 3D globe route visualization.

Flight card with dual timezone clocks Flight search interface 3D globe flight route visualization

Mine

Profile with sleep schedule, preference settings, and weekly analytics dashboards.

Profile page with activity tracking User preferences and schedule settings Weekly data overview and sleep analytics

iOS Widgets

Home screen widgets in three sizes — flight countdowns, route details, and suggestion progress.

Large widget — flight card with suggestion cards Small widget — flight route info Medium widget — flight route with progress bars
08

Key Decisions

  • LLM over algorithms — Claude handles multi-leg trips, edge cases, and personalization that would require brittle branching logic in a rule-based system.
  • Structured output — The API returns guaranteed JSON schemas, so the iOS client can render suggestion cards without parsing natural language.
  • Offline-first — CoreData caches the latest suggestions locally; the app stays functional without connectivity.
  • Bilingual from day one — English and Chinese (Simplified) via Swift String Catalogs and server-side i18n, with Claude generating suggestions natively in the user's language.
Back to Work Next Project