ES Modules (dist/module/) - For modern bundlers (Webpack, Vite, Rollup)
TypeScript definitions (dist/module/index.d.ts) - Type definitions for TypeScript projects
Testing
Docker Required for relay tests. The functions-js tests use testcontainers to spin up a Deno relay server for testing Edge Function invocations.
# Run all tests (from monorepo root)
npx nx test functions-js
# Run tests with coverage report
npx nx test functions-js --coverage
# Run tests in watch mode during development
npx nx test functions-js --watch
# CI test command (runs with coverage)
npx nx test:ci functions-js
Test Requirements
Node.js 20+ - Required for testcontainers
Docker - Must be installed and running for relay tests
No Supabase instance needed - Tests use mocked services and testcontainers
What Gets Tested
Function invocation - Testing the invoke() method with various options
Relay functionality - Using a containerized Deno relay to test real Edge Function scenarios
Error handling - Ensuring proper error responses and retries
Request/response models - Validating headers, body, and response formats
Contributing
We welcome contributions! Please see our Contributing Guide for details on how to get started.
For major changes or if you're unsure about something, please open an issue first to discuss your proposed changes.
The npm package @supabase/functions-js receives a total of 9,614,263 weekly downloads. As such, @supabase/functions-js popularity was classified as popular.
We found that @supabase/functions-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 14 open source maintainers collaborating on the project.
Package last updated on 05 Feb 2026
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.
The GCVE initiative operated by CIRCL has officially opened its publishing ecosystem, letting organizations issue and share vulnerability identifiers without routing through a central authority.