技能 编程开发 Supabase 架构参考

Supabase 架构参考

v20260311
supabase-reference-architecture
提供 Supabase 参考架构,包含分层目录布局、缓存客户端封装、定制错误处理与健康检查,便于新集成设计或项目结构审查。
获取技能
56 次下载
概览

Supabase Reference Architecture

Prerequisites

  • Understanding of layered architecture
  • Supabase SDK knowledge
  • TypeScript project setup
  • Testing framework configured

Instructions

Step 1: Create Directory Structure

Set up the project layout following the reference structure above.

Step 2: Implement Client Wrapper

Create the singleton client with caching and monitoring.

Step 3: Add Error Handling

Implement custom error classes for Supabase operations.

Step 4: Configure Health Checks

Add health check endpoint for Supabase connectivity.

Output

  • Structured project layout
  • Client wrapper with caching
  • Error boundary implemented
  • Health checks configured

Error Handling

See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.

Examples

See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.

Resources

Overview

Implement Supabase reference architecture with best-practice project layout.

信息
Category 编程开发
Name supabase-reference-architecture
版本 v20260311
大小 3.05KB
更新时间 2026-03-12
语言