# Xmix

Cloud quality-control platform for the aggregates and asphalt industry. Labs enter test results for 9 standards, get calculated outputs with a pass, fail or N/A result against reusable material profiles, export PDF and CSV reports and share a run by link. Companies are isolated in the database and pay per seat through Stripe. A landing page sits in front of it.

- **Facts:** 2024, Built for a client, In progress, role: Lead developer
- **What I did:** I built the landing page alone. On the platform I did the estimate and the architecture and built about half of it: backend, frontend and half of the pages and features. I led 1 other developer, who built the rest.
- **Scope:** fullstack
- **Domain:** construction
- **Stack:** Next.js, React, TypeScript, Tailwind CSS, Drizzle, PostgreSQL, Supabase, Stripe, TanStack Query, Radix UI, React Hook Form, Google Maps, dotenvx, Zod, Jest, nuqs, TanStack Table, Recharts, Nodemailer, Twilio, Vercel, Vercel Analytics, Vercel Blob, ESLint, Prettier, next-safe-action, PostgreSQL RLS, shadcn/ui, Supabase Auth, date-fns, pnpm, Gulp, Sass, Webpack, GitHub Actions, Google Analytics, React Compiler, Figma
- **Live:** https://www.xmixmaterials.com/
- **Page:** https://sergey-petrinich.vercel.app/work/xmix
- **Screenshot:** https://sergey-petrinich.vercel.app/work/xmix.webp

Capabilities:

- 9 test methods, 7 for aggregates and 2 for asphalt, all registered in one typed list
- Calculations per method with a pass, fail or N/A result against optional low and high limits, covered by 85 test cases
- Material profiles with per-method limits, kept as archived and active versions
- Results submission in tabs with a loose draft schema and a strict submit schema
- My runs with a detail view per method, and a public read-only page for a submitted run, shared by link
- PDF report with one section per chosen method, and CSV export for the gradation methods
- Home dashboard with the 7 latest samples, a runs-per-day chart and a 30-day pass rate per material
- Multi-step sign-up with email and phone verification, company creation and an invite flow, with roles owner, admin and user
- Row-level security on every tenant table, 64 policies, with a login role that cannot bypass it
- 20+ pages, 30+ tables and 200+ migrations
- Per-seat subscription in Stripe with 3 base seats, Checkout, a billing page for the owner and a webhook that keeps the membership in sync
- Landing with home, pricing and contact pages, a FAQ with structured data and a contact form with a honeypot field

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)
