CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-supabase--supabase-js

Isomorphic JavaScript client for Supabase providing authentication, database, real-time, storage, and edge functions capabilities.

89

0.95x
Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "This criteria evaluates how effectively the engineer uses @supabase/supabase-js storage API capabilities for custom file metadata management. The focus is on proper usage of storage methods for uploading files with custom metadata and retrieving that metadata.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Client initialization",
      "description": "Creates a Supabase client using createClient() with appropriate URL and key configuration",
      "max_score": 10
    },
    {
      "name": "Storage bucket reference",
      "description": "Uses storage.from() to reference the appropriate storage bucket for file operations",
      "max_score": 10
    },
    {
      "name": "Upload with metadata",
      "description": "Uses the upload() method with appropriate options to attach custom metadata during file upload",
      "max_score": 30
    },
    {
      "name": "Metadata structure",
      "description": "Correctly structures the custom metadata as a JSON object containing the required fields (document type, author, tags, etc.)",
      "max_score": 15
    },
    {
      "name": "Metadata retrieval",
      "description": "Uses the info() method to retrieve detailed file metadata including the custom metadata",
      "max_score": 25
    },
    {
      "name": "Error handling",
      "description": "Properly handles and returns error responses from storage operations using the data/error pattern",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-supabase--supabase-js

tile.json