# Swiftbeauty

Platform for the beauty industry with a directory of masters, a shop, a subscription video academy, live events and webinars, and reviews. I built most of the new Next.js app with Sanity, PostgreSQL and Stripe and the tooling to move the old PHP data. The hard parts were video access, linking Stripe to legacy members and planning the move of a live subscriber base.

- **Facts:** 2025, Built for a client, In progress, role: Lead developer
- **What I did:** I led 1 other developer and built about 80 percent of the new Next.js app meant to replace the old PHP back end: the UI, the server part and API, and the docs and tests. The other developer built a few pages and did fixes. The app has 50+ pages and routes and 80+ Prisma models, mostly legacy tables, covered by 140+ test files.
- **Scope:** fullstack
- **Domain:** lifestyle
- **Stack:** Next.js, React, TypeScript, Tailwind CSS, Prisma, Better Auth, Sanity, Stripe, shadcn/ui, Arcjet, Webhooks, Cron jobs, Web scraping, OAuth, JWT, Docker Compose, Vercel Blob, Google Analytics, Lighthouse CI, Sentry, PostHog, Playwright, GitHub Actions, Mux, Zod, TanStack Query, Radix UI, Vitest, Twilio, React Hook Form, next-safe-action, Embla Carousel, Motion, Zustand, axe-core, PostgreSQL, Neon, Biome, Ultracite, Husky, dotenvx, T3 Env, nuqs, date-fns, Vercel, pnpm, Python, Node.js, Claude Code, Figma, Docker, AWS, AWS S3, React Compiler, MySQL, PWA, Material UI, ESLint, Jest, Webpack, Service Workers, jQuery, Sass, Nginx, Bootstrap, react-router-dom, Gulp, Prettier, Core Web Vitals, Turbopack
- **Live:** https://swiftbeauty-app-dev.vercel.app
- **Page:** https://sergey-petrinich.vercel.app/work/swiftbeauty
- **Screenshot:** https://sergey-petrinich.vercel.app/work/swiftbeauty.webp

Capabilities:

- Shop with a client-side cart; guests can fill it, checkout needs a sign-in
- Product copy in Sanity, price and ids synced from Stripe
- Orders written by the Stripe webhook, safe to replay
- Video courses in modules and chapters, with filters, search and save for later
- Basic, Pro and Expert plans billed monthly, every six months or yearly
- Practice owners invite guests into a shared subscription
- Mux playback with signed tokens, one stream per member and saved watch progress
- Directory of masters, events and webinars, reviews, gallery and before and after cases
- Sanity Studio embedded in the site for editors
- Sign-in with email, Google, Facebook and Apple, plus phone codes through Twilio
- MySQL to PostgreSQL import and cutover scripts with dry runs
- Playwright and Vitest suites with a page-coverage gate in CI

Back to the [work archive](https://sergey-petrinich.vercel.app/work.md) · [CV](https://sergey-petrinich.vercel.app/cv.md) · [all of it in one file](https://sergey-petrinich.vercel.app/llms-full.txt)
