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

# Your app's console

The Bijection console shows your app to its members. `consoleLibrary({...})`
from `@bijectionhq/library-console` says what it shows: the panels (your
libraries and mounted apps, by kind), the queries and mutations a member
may explore, the record types a graph expands over, and the people a member
may mention. Every read runs in the member's own frame, so the console never
shows what a member may not read.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { consoleLibrary, node, panel } from "@bijectionhq/library-console";

export const console = consoleLibrary({
  title: "Orders",
  members: [member],
  panels: [panel("processes", fulfilment), panel("comments", { comments: discussion }), panel("maps", siteMaps)],
  graph: {
    customer: node(customers, { title: "name", relations: { orders: { to: "order", by: "customer", title: "Orders" } } }),
    order: node(orders, {
      title: "number",
      href: "#/fulfilment/case/{key}",
      style: { color: 2, shape: "round" },
      relations: { customer: { to: "customer", field: "customer" } },
    }),
  },
  people: { directory: { table: people, name: "name", email: "email" } },
});
```

## Graphs

A saved graph holds console links and records. A member adds a record by
its type and key, and expands it over its type's relations:

* a relation with `field` follows the record's own key field (or a list of
  keys) to the related records;
* a relation with `by` finds the related type's facts whose field holds the
  record's key, one bounded page at a time. That table declares an index of
  exactly that field (`index: [["customer"]]`), which a labelled table needs
  for the page.

Each related record joins the graph with an edge named by the relation. A
record the member cannot read is left out, like a missing one. A type's
`style` (a chart colour 1 to 8 or `#rrggbb`, and a shape: `box`, `round`,
`circle` or `diamond`) is how the console draws it. A graph may override a
type's style for itself.

## People

With `people`, members pick the people they mention from a search
(`people.search`). The people are the holders of the console's member roles,
or of `people.roles`, read from `sys.grants` through the read verb. Their
names and emails come from your directory table, keyed by principal. The
library that stores a mention still checks it: give the same table to
`comments({ people })`.

## Processes

A `processes` panel shows the attention queues, each stage's cases and one
case's path. On a case it also shows:

* **Diagnosis:** why the case needs a person (late in its stage, its stage's
  attention, nobody working it, past its due date), and its last move.
* **Who changes its stages:** its moves counted by who started them. A move
  in a reaction, a continuation or a task, or made by a service, counts as a
  program; a move made by an agent principal counts as an agent; a direct
  call by a person counts as a person.
* **AI usage:** the model calls and tokens your app recorded for the case
  with `process.work(ctx, key, { executions, tokens, source })`, typically
  from an agents turn's result (`rounds`, `tokens`, `turn`).

The panel's *Who changes stages* page counts the process's moves the same
way, a page at a time.

## Maps

A `maps` panel holds the deployment's map settings, its keyed tile providers
and the export audit. See [Map settings, keyed tiles and exports](https://docs.bijection.com/objects/geospatial/maps.md).


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