返回 Skill 列表
extension
分类: 开发与工程无需 API Key

supabase-reference-architecture

实现具有最佳实践项目布局的Supabase参考架构。在设计新的Supabase集成、审查项目结构或为Supabase应用程序建立架构标准时使用。可以通过诸如“supabase架构”、“supabase最佳实践”、“supabase项目结构”、“如何组织supabase”、“supabase布局”等短语触发。

person作者: jakexiaohubgithub

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 {baseDir}/references/errors.md for comprehensive error handling.

Examples

See {baseDir}/references/examples.md for detailed examples.

Resources