CV

BASC.

Member website and portal for the Business Aviation Safety Consortium, a network of business-aviation safety professionals. A public marketing site sells membership by consultation request, and a portal section holds safety data and continuing-education material.

Travel & transport

Year
2025
Built for a client
My part
Project lead
Core stack
28 technologies
Clerk, Google Maps, Next.js, PostgreSQL

My role

I led 1 other developer: I assigned the tasks and reviewed the other developer's code. I designed the architecture and did the analysis and investigations. I built the server part and API, the deployment and setup, and wrote the docs and tests.

Full stack · Backend · DevOps

Capabilities

Public site

  • Home page, resources page with regulatory documents, partners and standardization speakers, and legal pages
  • Consultation request and BASC ID request dialogs that open from any page through a shareable URL flag
  • Consultation form with a canvas captcha and shared Zod validation

Portal pages

  • Portal landing with resource cards and a data sharing page with member safety charts
  • Three continuing-education lists: Safety Roundtable agendas, minutes and archived recordings

Accounts

  • Passwordless email-code sign-in and sign-up on Clerk, with a self-submitting code input and a resend timer
  • Private profile page with an update form, backed by profile fields stored in Clerk metadata

Server and delivery

  • Safe server action layers for public, signed-in and admin calls, with a typed permission matrix
  • Resend email sender with a React Email template and delayed send
  • Vercel build with type and lint checks moved to a GitHub Actions workflow, plus a README with setup steps

Patterns and decisions

  • Pages are server-rendered in the Next.js App Router, with a loading state per route segment. React Compiler is on, and the client router cache times are tuned.
  • Sign-in and sign-up use Clerk with an email code and no passwords. Member details (company, home base, position) live in Clerk metadata, so there is no user table. A Zod schema checks them on read and falls back to empty values when the data is bad.
  • Server code sits behind three layers of next-safe-action clients: a plain one, one that needs a signed-in user, and one that needs the admin role. A typed permission matrix denies any role it does not know.
  • Environment variables are declared once with T3 Env and validated at start. Forms use React Hook Form with shared Zod schemas.
  • The Resend email sender has a React Email template, an optional delayed send and a validated recipient.
  • The repo carries a README with the setup steps, a pnpm setup and a GitHub Actions workflow.

Cases

Dialogs that open from any page. The consultation and BASC ID buttons sit in the header, the hero, the banners and the portal cards. Passing state down to all of them would have tangled the tree. Each dialog has one query-string flag with nuqs, and both dialogs are mounted once in the root layout. A typed button component per dialog only sets its flag. The flag clears when the dialog closes, and a link with the flag opens the dialog for whoever receives it.

Server action layers. I wanted the sign-in and admin checks written once, not repeated in each action. I built three action clients: a plain one, one that needs a signed-in user, and one that needs the admin role. The signed-in client puts the Clerk user into the action context. The admin client rejects anyone whose organization role is not admin. The permission matrix is role by resource by action, with ownership predicates, and it denies any role it does not know. Server errors reach the form as readable messages.

Profile data without a table. Members need three profile fields, and no user table was wanted. The fields live in Clerk user metadata, set at sign-up. A parsing function reads them back through Zod. Bad or missing metadata gives empty strings instead of an error, so a broken profile never breaks a page.

Core stack

APIs & back end

Build tools

Carousels & galleries

Design & collaboration

Email & SMS

Frameworks, routing & apps

Infrastructure & observability

Languages & markup

Screenshots