> ## 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.

# bijection.json

`bijection.json` configures the **project around the app tree**: the location
of your `bijection/` folder, frontend apps, captured imports, the AuthKit
integration and the AI helper files. The app tree itself is the default export
of [`bijection.config.ts`](https://docs.bijection.com/reference/configuration/bijection-config).

`bijection.json` never chooses who operates a capability. Handler modules and
their egress are declared on the target in code, and every provider choice is
a binding in the installation's bindings file, passed with `bijection deploy --bindings <file>` ([placement](https://docs.bijection.com/operate/placement.md)).

To modify these settings:

1. Modify the `bijection.json` file (or create it if it doesn’t already exist).
   This file must be located at the root of your project (in the same directory
   as your `package.json`).
2. Apply these settings by running [`bijection dev`](https://docs.bijection.com/reference/cli/dev) in
   development or [`bijection deploy`](https://docs.bijection.com/reference/cli/deploy) in
   production.

To ensure the contents of your `bijection.json` file are valid, you can set the
`$schema` property: code editors that support
[JSON Schema](https://json-schema.org) will use it to validate the contents of
the file and provide relevant documentation for each field.

```json bijection.json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "$schema": "./node_modules/@bijectionhq/bijection/schemas/bijection.schema.json"
}
```

The file supports the following configuration options:

## Changing the `bijection/` folder name or location

You can choose a different name or location for the `bijection/` folder via the
`functions` field. For example, Create React App doesn't allow importing from
outside the `src/` directory, so if you're using Create React App you should
have the following config:

```json bijection.json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "$schema": "./node_modules/@bijectionhq/bijection/schemas/bijection.schema.json",
  "functions": "src/bijection/"
}
```

## App layout

Apps under `apps/<name>/app.ts` are discovered automatically. Declare a custom
root here; `firstPort` sets the start of the workspace development port range:

```json bijection.json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "firstPort": 5173,
  "apps": {
    "web": { "root": "frontend/web" }
  }
}
```

Customer app entries accept only `root`. The app's `app.ts` owns its label,
login, presentation and optional framework or hosting overrides. The framework
configuration owns rendering; `package.json` scripts own build and development commands. The
built-in `official-dashboard` entry accepts its documented presentation settings
and port. See [hosting](https://docs.bijection.com/operate/installations/frontend) for the complete contract.

## Orchestration

Register the Python pipeline package. `dev`, `check` and `deploy` write it from the analyzed pipeline contracts; Bijection configures,
imports and deploys no scheduler.

```json bijection.json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "orchestration": {
    "python": { "package": "acme_bijection", "out": "orchestration/generated" }
  }
}
```

`python.package` is a public Python identifier. `python.out` defaults to
`orchestration/generated` and contains an ordinary installable Python project
that depends only on the Bijection SDK. Install it in any scheduler's
environment and call it from an ordinary task; see
[calling pipelines from any scheduler](https://docs.bijection.com/transforms/pipelines.md).

## Configuring AI files messages

Bijection can install AI helper files (for tools like Cursor and Claude Code) and
show install or update suggestions during `bijection dev`.

To suppress those suggestions, set `aiFiles.enabled` to `false` in
`bijection.json`:

```json bijection.json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "$schema": "./node_modules/@bijectionhq/bijection/schemas/bijection.schema.json",
  "aiFiles": {
    "enabled": false
  }
}
```

When this is `false`, `bijection dev` will not show the AI files install or
staleness messages.

You can also configure which agents the Bijection skills are installed for
(defaults to `["claude-code", "codex"]`):

```json bijection.json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "$schema": "./node_modules/@bijectionhq/bijection/schemas/bijection.schema.json",
  "aiFiles": {
    "skills": {
      "agents": ["claude-code", "codex", "cursor"]
    }
  }
}
```

## Configuring the TypeScript compiler

The native Bijection CLI uses its pinned native TypeScript compiler, built into
the CLI. Run `bijection typecheck` to check your backend without installing
Node.js, npm or a project-local compiler.

There is no compiler selector in `bijection.json`; remove `typescriptCompiler`
if it is present. Backend commands accept `--typecheck=enable`, `try` or
`disable` where shown in their help. Frontend build tools manage their own
TypeScript dependencies.

## Captured integration projects

Declare captured sources in `imports`. An alias names the import;
`adapter` selects an installed preparation capability. `source` selects exactly
one application-relative `root` or `file`. Provider settings, connections and
credentials belong to deployment bindings.

```json bijection.json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "imports": {
    "inventory": {"adapter": "grpc.service", "source": {"root": "services/inventory"}, "options": {"files": ["inventory.proto"], "methods": ["inventory.Inventory/ListItems"]}}
  }
}
```

The registry validates adapter registrations and dependencies before generation.
Preparation runs before application discovery, captures the source closure and
installed tool identity, and validates those inputs before exposing the
import's bindings. Source edits and directory membership changes invalidate preparation.
Removed declarations retire only their own bindings. Unknown
adapters and old configuration fields are refused.

Each import generates its own module under `<functions>/_generated/`, named
by adapter and alias, and the app imports it directly. An `infrastructure.outputs`
import `compute` is `import { contract as compute } from "./_generated/infrastructure/compute"`.
There is no combined index module.

| Adapter | Source | Options |
| - | - | - |
| `bijection.interface` | `file` | — |
| `infrastructure.outputs` | `file` | — |
| `grpc.service` | `root` | `files`, `methods` |
| `sap.contract` | `file` | — |
| `temporal.contract` | `file` | `release`, `worker?`, `workerOnly?` |
| `stepfunctions.contract` | `file` | `release`, `worker?` |
| `restate.contract` | `file` | `release`, `service?` |
| `dbos.contract` | `file` | `release`, `worker?` |
| `trigger.contract` | `file` | `release`, `worker?` |

For a worker-owned interface document, use `bijection contracts import`
to scaffold [typed compute jobs](https://docs.bijection.com/transforms/external-runtimes.md#match-the-worker-contract).
For bounded warehouse SQL, declare a [statement task](https://docs.bijection.com/sql/application-api.md).
Run dbt, SQLMesh, Dataform and similar tools on your own compute.

`infrastructure.outputs` captures a `bijection.boundary-outputs/v2` file, the
`bijection_boundary` output of the
[worker infrastructure](https://docs.bijection.com/transforms/workers.md#provision-it) as
`bijection deploy outputs --out <file>` writes it. It generates
typed references at `<alias>.pools.<pool>.setup` for a launch binding's `setup`.
Planning resolves them from the worker pool slots' bindings (`<compute>.pools.<name>`,
see [placement](https://docs.bijection.com/operate/placement.md)) without an applied outputs file.
Deployment requires captured outputs whose setup and manifest match the current
boundary. A `gcp` pool with `dataproc` supplies launch setup. The file holds
no secrets and can be atomically refreshed at the same path after each apply.

The inventory admits at most 64 imports; adapters apply their smaller limits. `?` marks optional options.
Every adapter prepares its import in process from the declared source: Bijection
runs no third-party compiler and installs no per-import tools. Commit
`bijection.json` with the import's bindings.

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection imports add <alias> --from <path>
bijection dev
bijection describe imports.<alias>
bijection imports update <alias> --options '<json>' --dry-run
```

`imports add` detects recognized source formats; select `--adapter` when the
format is ambiguous. `imports adapters` lists the supported options. Add, update
and remove prepare the complete candidate before publishing configuration and
bindings. `--dry-run` reports interface changes and bounded
reference/file differences without changing project files.


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