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

# Platform diagram

> Visual diagrams of the Neuro platform stack and federated network

These diagrams show how the Neuro platform is structured — the layers that make up every Neuron, and how Neurons, clients, and services connect across a federated network.

## The platform stack

Every Neuron hosts the full platform stack. The layers build on each other — each one depends on the ones below it.

```mermaid theme={null}
block-beta
  columns 1
  block:value["💰 Payments & Tokenized Assets\neDaler · Neuro-Features · Token transfers"]
  end
  block:contracts["📄 Legal Identities & Smart Contracts\nVerified identities · Signed agreements · Lifecycle rules"]
  end
  block:ledger["🗄️ Neuro-Ledger\nFederated audit trail · Tamper-evident records · Privacy-aware persistence"]
  end
  block:neuron["🌐 The Neuron\nFederated runtime · XMPP messaging · Cross-domain interaction"]
  end
```

| Layer                                  | What it provides                                                                           |
| -------------------------------------- | ------------------------------------------------------------------------------------------ |
| **The Neuron**                         | The federated runtime. Handles all communication and interaction across domain boundaries. |
| **Neuro-Ledger**                       | Distributed, auditable persistence. Records signatures, state changes, and events.         |
| **Legal Identities & Smart Contracts** | Verified actors and governed agreements tied to real identities.                           |
| **Payments & Tokenized Assets**        | eDaler payments and Neuro-Feature tokens, built on top of the full stack.                  |

## The federated network

Neurons are independent nodes operated by different organisations, federated together into one network. Clients connect to the Neuron they are registered on and can interoperate with participants on any other Neuron in the network.

```mermaid theme={null}
graph LR
    subgraph OrgA[" Organisation A "]
        NA["🖥️ Neuron A"]
    end

    subgraph OrgB[" Organisation B "]
        NB["🖥️ Neuron B"]
    end

    subgraph OrgC[" Organisation C "]
        NC["🖥️ Neuron C"]
    end

    NA <-->|Federation / XMPP S2S| NB
    NB <-->|Federation / XMPP S2S| NC
    NA <-->|Federation / XMPP S2S| NC

    APP["📱 Neuro-Access App"] -->|XMPP C2S| NA
    API["⚙️ Agent API Client"] -->|HTTPS Agent API| NB
    LL["🛠️ LegalLab"] -->|XMPP C2S| NC
    XMPP["💬 XMPP Client"] -->|XMPP C2S| NA
```

### Client connection types

| Client               | How it connects             | Typical use                                      |
| -------------------- | --------------------------- | ------------------------------------------------ |
| **Neuro-Access App** | XMPP client-to-server (C2S) | End-user digital identity and wallet             |
| **Agent API client** | HTTPS REST (Agent API)      | Back-end services, server-to-server integrations |
| **LegalLab**         | XMPP client-to-server (C2S) | Developer tool for designing contract templates  |
| **XMPP client**      | XMPP client-to-server (C2S) | Direct messaging and IoT integrations            |

### How federation works

Neurons connect to each other using **XMPP server-to-server (S2S)** links — the same protocol used by the broader XMPP network. This means:

* A contract can be signed by parties registered on different Neurons.
* A token can be transferred between users on different Neurons.
* An identity on one Neuron can be verified and trusted by another.

No central coordinator is required. Trust flows through the network based on the relationships between Neurons and the cryptographic signatures on identities and contracts.

## Where to integrate

Depending on your use case, you connect at different points:

| If you are building...                     | Use...                                                                    |
| ------------------------------------------ | ------------------------------------------------------------------------- |
| A back-end service or server integration   | [Neuron Agent API](/neuron-api/introduction)                              |
| A Neuron extension or custom package       | [Neuron Development](/neuron-development/introduction)                    |
| A payment or checkout integration          | [Neuro-Pay](/neuro-pay/intro)                                             |
| A desktop tool for contracts and templates | [LegalLab](https://github.com/Trust-Anchor-Group/LegalLab)                |
| A mobile app with identity and wallet      | [Neuro-Access App](https://github.com/Trust-Anchor-Group/NeuroAccessMaui) |
