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)
pnpm nx test functions-js
# Run tests with coverage report
pnpm nx test functions-js --coverage
# Run tests in watch mode during development
pnpm nx test functions-js --watch
# CI test command (runs with coverage)
pnpm 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 16,296,820 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 15 open source maintainers collaborating on the project.
Package last updated on 18 May 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.
npm invalidated all granular access tokens that bypass 2FA after a fresh Mini Shai-Hulud wave compromised 323 npm packages. Staged publishing also entered public preview.
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.