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 APIs to implement a file browser utility. The focus is on correct usage of the Supabase client initialization, storage bucket operations, file listing methods, pagination, and search capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Client initialization",
"description": "Uses createClient() from @supabase/supabase-js to initialize the Supabase client with the provided URL and key",
"max_score": 15
},
{
"name": "Bucket access",
"description": "Uses storage.from() method to access the specified bucket by name",
"max_score": 10
},
{
"name": "Basic file listing",
"description": "Uses .list() method (or .listV2()) on the bucket reference to retrieve files from the root level when no folder path is provided",
"max_score": 20
},
{
"name": "Folder path handling",
"description": "Correctly passes the folder path as the first argument to the .list() method (or .listV2()) to list files within a specific folder",
"max_score": 15
},
{
"name": "Pagination implementation",
"description": "Implements pagination using the limit and offset parameters in .list() options, or uses the cursor-based pagination with .listV2() method, properly handling the returned cursor for subsequent requests",
"max_score": 20
},
{
"name": "Prefix search",
"description": "Implements file search by using the search parameter in the .list() or .listV2() options to filter files by name prefix",
"max_score": 15
},
{
"name": "Response handling",
"description": "Correctly accesses the data and error properties from the .list() or .listV2() response object following the Supabase client's { data, error } return pattern",
"max_score": 5
}
]
}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