> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Client SDKs and frameworks

> Call an app's exposed functions from browsers, servers and other languages

A client calls the functions an app exposes. A function is exposed when it
declares `allow: [roles]`. Without `allow`, it is internal, and no client can
reach it. The references are typed from the app tree, so the paths, arguments,
values and refusal codes are checked where you call them.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { app, connect } from "../../../.bijection/_generated/client";
const client = connect(import.meta.env.VITE_BIJECTION_URL);

const listed = await client.query(app.notes.recentNotes);
if (listed.ok) console.log(listed.value);
```

Every call answers a [`Result`](https://docs.bijection.com/clients/javascript#results): a value, or a
refusal with a code and a sentence the caller may read. Nothing throws for a
refusal.

## Choose an interface

| You are building | Use | Start here |
| - | - | - |
| A React app | `bijection/react`: `<Bijection client>`, `useWatch`, `useMutation`, `usePages` | [React](https://docs.bijection.com/clients/react) |
| A browser app in another framework, a server or a script | `bijection/client`: `connect`, `query`, `watch`, `mutate`, `trial` | [The client](https://docs.bijection.com/clients/javascript.md), [Frameworks and runtimes](https://docs.bijection.com/clients/frameworks.md) |
| A client in another repository | `bijection client ts`: a typed npm package with per-path contract pins | [Typed clients and the contract](https://docs.bijection.com/clients/typescript.md) |
| A client in another language | `bijection client go`, `java`, `kotlin`, `python` or `swift` | [Other languages](https://docs.bijection.com/clients/openapi) |
| An agent or tool host | An MCP server mounted in the app | [MCP clients](https://docs.bijection.com/mcp/clients.md) |

## References and frames

* **A reference.** The generated `app` gives callable and label paths,
  such as `app.notes.add`.
* **A frame.** `client.under(label)`, `.in(world)` and
  `.at(instant)` return a client in that frame. See [Frames and trials](https://docs.bijection.com/clients/frames.md).
* **A credential.** `connect(url, { token })` takes an auth adapter or a fixed
  token. See [Connect and authenticate](https://docs.bijection.com/clients/react/configuration.md).

A client holds no authority of its own. Each call is decided by the
function's `allow`, the frame's grants, the labels it reads and writes, and
the guards on its acts.

## Keep values live

`client.watch` and `useWatch` keep a query's value current: the host runs the
query again when anything it read changes. See [Realtime](https://docs.bijection.com/realtime.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.