Skip to main content
Bijection applications can be accessed from Node.js or any JavaScript runtime that implements fetch or WebSocket. The reactive Bijection Client allows web applications and long-running Node.js servers to subscribe to updates on Bijection queries, while the Bijection HTTP client is typically used for server-side rendering, migrations, administrative scripts, and serverless functions to run queries at a single point in time. If you’re using React, see the dedicated BijectionReactClient described in React.

Bijection Client

The BijectionClient provides subscriptions to queries in Node.js and any JavaScript environment that supports WebSockets.
The Bijection client is open source and available on GitHub. See the Script Tag Quickstart to get started.

HTTP client

The BijectionHttpClient works in the browser, Node.js, and any JavaScript environment with fetch. See the Node.js Quickstart.

Using Bijection without generated bijection/_generated/api.js

If the source code for your Bijection function isn’t located in the same project or in the same monorepos you can use the untyped api object called anyApi.