GalleryExamplesDraw your repo

Examples / Component diagrams

Next.js and Supabase app

The parts of a Next.js app built on Supabase: pages and server actions, Supabase Auth, Postgres with row level security, storage, edge functions and realtime.

Next.js and Supabase app: component diagram of Browser, React pages, Server components, Server actions, Middleware and 8 more▶ Play the story
Open in Plotix A copy you can edit, or ask the agent to change.
Plotix's agent drew it from this request

Draw a component diagram of a Next.js app on Vercel built on Supabase: React pages, server components and server actions, middleware for the session, Supabase Auth, Postgres with row level security, Storage for uploads, an edge function that calls Stripe, and Realtime for live updates.

Step by step: Signed-in page load

  1. The browser sends a page request, and middleware runs first.
  2. Middleware refreshes the session with Supabase Auth.
  3. Middleware passes the request on to the server components.
  4. Server components query Postgres as the user, so row level security applies.
  5. The page is rendered and sent to the browser, which then subscribes to live updates.
What's in it
Next.js and Supabase app: component diagram of Browser, React pages, Server components, Server actions, Middleware and 8 more

How the parts connect

More on component diagrams.

Related examples

OAuth login with PKCE: sequence diagram of Browser, React SPA, Authorization server and App API
OAuth login with PKCESequence · How a single-page app signs a user in with OAuth 2.0 authorization code and PKCE, from th…
Stripe checkout and webhook: flow diagram of Shopper starts checkout, Create Checkout Session, Redirect shopper to Stripe, Payment succeeds?, Card declined or error and 5 more
Stripe checkout and webhookFlow · The steps from a cart to a paid order with Stripe Checkout, including the webhook that co…
Serverless API on AWS: deployment diagram of CloudFront, API Gateway, Lambda functions, Cognito user pool, CloudWatch Logs and 4 more
Serverless API on AWSDeployment · Where a serverless web API runs on AWS: CloudFront and S3 for the site, API Gateway and L…