supabase-node

Build a Node.js REST API with Supabase auth, storage, and Drizzle ORM.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Maykesantos98/Fiap-Totvs --skill supabase-node-maykesantos98
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-node
Source: https://github.com/Maykesantos98/Fiap-Totvs/tree/main/.claude/skills/supabase-node
Command: npx skills add https://github.com/Maykesantos98/Fiap-Totvs --skill supabase-node-maykesantos98

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you build a Node.js API that uses Supabase for authentication and storage while keeping database access consistent, type-safe, and maintainable with Drizzle ORM, avoiding fragile query code and error-prone auth handling.

Core Features & Use Cases

  • Supabase Auth verification: Validates Bearer JWT tokens and attaches the authenticated user to requests.
  • Drizzle ORM for Postgres queries: Performs typed inserts, updates, and selects against a schema defined in TypeScript.
  • API scaffolding with validation and error handling: Uses Zod-based request validation plus centralized Express error middleware.

Use it when you need a backend that supports signup/signin/signout, protected CRUD endpoints (e.g., posts or profiles), and file upload to Supabase Storage with role-appropriate security (anon vs service role).

Quick Start

Use the supabase-node Skill to generate an Express API that implements Supabase JWT verification middleware, Drizzle-based Postgres tables and queries, and authenticated routes for creating and managing resources.

Frequently Asked Questions about supabase-node

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Node.js API with Supabase authentication and Drizzle ORM?

You can build a Node.js API with Supabase authentication and Drizzle ORM by using Express middleware for Bearer JWT verification and Drizzle schema functions for typed Postgres CRUD operations. This approach validates tokens and attaches the authenticated user to requests.

What is the best way to validate Express API requests with Zod before Supabase database inserts?

The best way to validate Express API requests with Zod is to apply Zod-based request validation before executing typed Drizzle ORM database inserts. Centralized Express error middleware handles validation failures consistently across API routes.

Can I use Supabase Storage for file uploads in an Express backend using Drizzle ORM?

Yes, you can use Supabase Storage for file uploads in an Express backend using Drizzle ORM. The backend handles avatar or file uploads to Supabase Storage with role-appropriate security, using either anon or service role client configuration.

Does Drizzle ORM work with Supabase Postgres for type-safe query generation in Node.js?

Drizzle ORM works with Supabase Postgres to provide type-safe query generation in Node.js. It performs typed inserts, updates, and selects against a schema defined in TypeScript, ensuring database access remains consistent and maintainable.

How do I protect Express REST API routes with Supabase JWT token verification?

To protect Express REST API routes with Supabase JWT verification, implement middleware that validates Bearer tokens and attaches the authenticated user to requests. This secures CRUD endpoints for resources like posts or profiles.

What environment variables do I need to configure a Supabase client in a Node.js API?

Configuring a Supabase client in a Node.js API requires environment variables for client setup. These variables manage authentication, storage uploads, and database access, distinguishing between anon and service role permissions for secure API operations.