iOS app
HairHug
An iPhone diary for curly and textured hair. Log wash days, products, cuts, and color, rate each day, and see what leads to the good ones.
Visit hairhug.app
- Type
- Full stack app
- Started
- 2026
- What we did
- Product design, iOS app, Backend, In-app purchases, Website
- Built with
- SwiftUI, StoreKit 2, SceneKit, Supabase, Next.js
A good hair day is hard to repeat when nobody wrote down what went into it. HairHug needed a diary that works with no account at all, and turns a month of entries into answers. The App Store launch is next, so the creator diaries in the app wait for it.
By the numbers
- Commits
- 28
- Database migrations
- 14
- Server functions
- 2
- Test files
- 6
Counted from the project's own repo.
One HairHug Plus purchase, end to end.
How one real job moves through the system, step by step, and which part of the system does each step.
- 01iPhone app
A seventh day gets rated
The diary lives on the phone, with no account. After seven rated days, the app offers Plus once.
- 02StoreKit
The purchase goes through Apple
Apple signs the transaction and tags it with the account, so the purchase can follow the user.
- 03Edge function
The server checks Apple's signature
The purchase counts only when Apple's signature checks out against Apple's root certificate.
- 04Postgres
One function records it
A single database function saves the subscription and the transaction in one step.
- 05Row-level security
Plus opens
The database checks Plus on each read, so the app cannot skip the check.
- 06Apple notices
Renewals and refunds arrive
Apple sends each change, signed. Each one adds a row, and a repeated notice changes nothing.
What we designed.
The pages and pieces we drew and built for this project, from the first screen to the last.
- 01
The diary
A week strip and one big circle that shows the next care: a wash, a trim, color, or a salon visit.
- 02
Hair vibe
A daily check-in rates the hair from 1 to 5, so each good day can be traced back to its routine.
- 03
Insights
HairHug Plus shows which products come before the best days, which day after a wash looks best, and how wash days compare.
- 04
One offer, at the right time
No paywall at sign-up. Plus shows up once, after seven rated days, when the insights have data to show.
- 05
Heart buddy
A small 3D heart, drawn in SceneKit, keeps the diary company.
- 06
The site
An arched photo, a serif headline, and a teal ribbon of wash days, product crushes, fresh cuts, and color days.
Colors
- #f7fcfc
- #121f24
- #0d7d7a
- #c2ebe8
- #44565c
Type
- Baskervville
- DM Sans
How it's built.
This one is more than a website. Here is the system behind it, and the choices that make it hold up.
The system
Screens
- iPhone appSwiftUI, and it works with no account
- WebsiteNext.js, at hairhug.app
Server
- Edge functionsPurchase checks and Apple notices
- AuthSign-in with an email code
Data
- PostgresRow-level security on every table
- StoragePhotos, each in its owner's folder
Outside services it calls
- App StoreStoreKit 2 and server notices
- ResendSign-in codes
- VercelThe website
Choices that matter
- 01
Guest first
The free diary needs no account and sends nothing to a server. An account only adds backups and Plus on a new phone.
- 02
The database enforces Plus
Plus is checked inside the database rules, not in the app, so a changed app gets nothing extra.
- 03
The ledger only adds rows
A refund or a reversal is a new row. A replayed purchase cannot undo a refund.
Start a project
Want one like it?
Book a 30-minute call. We'll talk through the idea and tell you straight if we're the right studio to build it.
Or email ben@nashvillesoftwareco.com
