Isomorphic JavaScript client for Supabase providing authentication, database, real-time, storage, and edge functions capabilities.
89
{
"context": "This criteria evaluates how well the engineer uses @supabase/supabase-js Storage API to upload files and generate public URLs. The focus is on proper usage of the storage.from() method, upload() for file operations, and getPublicUrl() for generating accessible URLs.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Supabase client initialization",
"description": "Uses createClient() to initialize the Supabase client with proper URL and key configuration",
"max_score": 15
},
{
"name": "Storage bucket access",
"description": "Uses storage.from('gallery') to access the gallery bucket for both upload and URL generation operations",
"max_score": 20
},
{
"name": "File upload implementation",
"description": "Uses the upload() method to upload files with proper file name and file data parameters",
"max_score": 25
},
{
"name": "Public URL generation",
"description": "Uses getPublicUrl() method to generate public URLs for uploaded or existing files",
"max_score": 25
},
{
"name": "Return value structure",
"description": "Returns objects matching the specified API signature with path and publicUrl for uploadImage(), and array of fileName/publicUrl objects for getImageUrls()",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-supabase--supabase-jsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10