01 · Habit tracker · Game

Gawii

A habit tracker where daily progress helps a creature grow.

Type
Web app · portfolio project
Stack
Next.js 16, React 19, Clerk, Prisma + PostgreSQL
Role
Product, game design, pixel art, build
17-second launch film. Completing three habits evolves the partner. A Legendary card turns over, then the team climbs the island. I drew it in code using the product’s screens, rendered each frame and timed the sound to the animation.
01Context

Context

Gawi is Tagalog for “habit”. Habit apps often rely on checkboxes and streak counters. Once a streak breaks, opening the app can feel like a reminder of what you missed.

Gawii tracks habits and their history. A creature grows as you complete them, and your team climbs an island over roughly the time it takes to form a habit.

02Problem

Problem

One missed day resets a streak, even after twenty days of progress.

I wanted steady progress to count even after a missed day. The game also needed to stay simple enough that it didn’t become another chore.

03What it does

What it does

Habits

Daily habits on chosen weekdays, or “N times per week”, each with a streak, consistency stats and an activity graph. Yesterday can still be logged until noon.

A creature partner

Up to 50 XP a day, split across the day’s habits, goes to your partner. At Lv 5 it evolves.

45 original creatures

Code-drawn pixel art, no image model. Rarity shows in the art itself: commons are small with 2-frame idles, legendaries are twice the size with 8 frames.

Card pulls

Streaks and daily quests pay gems for pulls, with a pity counter and a guaranteed Rare in every ×5.

The island

The island has five summits over about 66 days, the time used here for forming a habit. Daily habits move the team along the path. Each climb ends with a guardian fight based on your progress.

04Engineering

Engineering

Days in your timezone

Completions are stored as local yyyy-MM-dd day keys, so a late-night check-in never lands on the wrong day.

Progress comes from habit records

Quest progress and streaks are computed from habit records, so there are no counters to drift when a habit is unchecked.

A transaction record for gems

The balance is the sum of transactions. Every reward has a key that is unique per user, so it can only be claimed once, even under two requests at the same moment.

Scoped by owner

Every habit query and mutation is scoped by user id.

05Major decisions

Major decisions

How long the climb is

Chose
Five summits of 5, 8, 12, 17 and 24 days, about 66 in all.
Over
An open-ended streak.
Because
66 days is the average time to form a habit in Lally et al. (2009). The climb ends when the habit should have formed.

Where the balance lives

Chose
An append-only gem ledger with unique reward keys.
Over
A gems column on the user.
Because
A retried request can add to a counter twice. Unique keys prevent that in the ledger, which also records where each gem came from.

Where the art comes from

Chose
Sprites written as code, one generator per creature.
Over
Generated or traced images.
Because
Every creature is original and can be redrawn by changing its spec.