Skip to content
All work

Case study · Own product

wellnest.fit

A booking directory for yoga, pilates and movement studios in the Philippines, with time-first search, GCash holds, credit packages and white-label studio sites. Designed, built and run by me.

Role
Founder & sole developer
Company
wellnest.fit
Project
2026 – Present
Platforms
SupabaseCloudflare
  • TanStack Start
  • React 19
  • Vite 8
  • TypeScript 6
  • zod 4
  • Tailwind v4
  • shadcn/ui
  • Supabase
  • Postgres RLS
  • Cloudflare Workers
  • Resend
  • Sentry
  • pgTAP
  • GitHub Actions

Context

wellnest.fit is a booking directory for yoga, pilates and movement studios in the Philippines. It launched in Tagum City, and I designed, built and run it on my own.

What I built

For people booking

  • Time-first search: start from “when can I go?” and see classes across studios.
  • GCash QR holds: a spot is held while the booker pays by QR and uploads a receipt, which the studio reviews.
  • Waitlists, promo codes and reviews.

For studios

  • Credit packages with a full ledger, so every credit bought, used or refunded is traceable.
  • Owner reports, campaigns and signature waivers.
  • White-label, multi-domain studio sites (for example kklub.wellnest.fit), all served by the same app.

Compliance

Built with the Philippine Data Privacy Act in mind.

Architecture

  • App: TanStack Start (React 19, server-rendered) on Vite 8 and TypeScript 6, validated with zod 4. UI in Tailwind v4 and shadcn/ui.
  • Data: Supabase with row-level security on about 32 tables, 137 SQL functions, Realtime, and Auth including Google sign-in.
  • Runtime: Cloudflare Workers with a per-minute cron for time-based jobs. Email through Resend. Errors go to Sentry.

Booking logic lives in the database, so capacity rules hold however a request arrives. An illustration of the idea (not the production function):

-- Lock the class row so concurrent bookings queue up, then check capacity.
create function book_spot(p_class uuid, p_user uuid) returns uuid
language plpgsql security definer as $$
declare v_capacity int; v_taken int; v_id uuid;
begin
  select capacity into v_capacity from classes where id = p_class for update;
  select count(*) into v_taken from bookings
    where class_id = p_class and status in ('held', 'confirmed');
  if v_taken >= v_capacity then
    raise exception 'class_full';
  end if;
  insert into bookings (class_id, user_id, status)
    values (p_class, p_user, 'held') returning id into v_id;
  return v_id;
end $$;

Quality

  • 15 pgTAP test files, including a race-condition test that fires 20 bookings at a 10-spot class to prove it can’t overbook.
  • GitHub Actions runs typecheck, lint, build and a migration/type drift check, deploys on push, and takes nightly encrypted database backups.

Outcome

wellnest.fit is live and I run it end to end, from the database to the white-label studio sites.