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

# Network Technical Architecture

> Technical stack of the Livepeer Network: node types, gateway infrastructure, APIs, CLI, SDKs, and monitoring. How orchestrators, gateways, and workers fit together.

This page outlines the full stack of tools, infrastructure, and components that power the Livepeer Network at the node, Gateway, and client level. Livepeer's architecture is modular and developer-facing: you can run an Orchestrator, build a custom AI Gateway, or use APIs to build media apps on decentralized compute.

## Architecture layers

```mermaid theme={null}
graph TD
    UI[Apps / SDKs / Interfaces]
    API[Gateway APIs / REST / GraphQL]
    GW[Gateway Nodes]
    O[Orchestrator Node - go-livepeer]
    W[Worker Layer - FFmpeg / AI]
    P[Protocol - Ethereum / Arbitrum]

    UI --> API --> GW --> O --> W
    O --> P
```

The network sits above the protocol: Gateways and Orchestrators handle off-chain compute and routing; the protocol (Arbitrum) handles staking, tickets, and rewards.

## Orchestrator node

The Orchestrator node runs **go-livepeer** (the `livepeer` binary), available at:

[https://github.com/livepeer/go-livepeer](https://github.com/livepeer/go-livepeer)

### Key components

* **Transcoder selection** - Internal or external workers; configured via `orchSecret` and `orchAddr` for remote transcoders
* **Ticket validation** - L2 `TicketBroker` on Arbitrum for ETH payment redemption
* **Reward claim** - Merkle submission to `BondingManager` each round
* **LPT staking** - BondingManager for self-bond and delegator stake
* **Region advertisement** - For Gateway routing (latency, capacity)

### Deployment modes

* Bare metal with GPU
* Containerized
* Cloud auto-scaling

### Tools

* **livepeer\_cli** - Stake, set fee/reward cut, monitor sessions
* **livepeer\_exporter** - Prometheus metrics exporter for observability

## Worker layer

Workers can be local or remote services attached to an Orchestrator:

Configured via Orchestrator `config.json` or environment variables.

## Gateway infrastructure

Gateways manage:

* Session auth (API key, ETH deposit, or credit check)
* Job routing to Orchestrators
* Session logging and retries

**Codebases:**

* [Studio Gateway](https://github.com/livepeer/studio-gateway)
* [Daydream Gateway](https://github.com/livepeer/daydream)
* [Cascade](https://github.com/livepeer/cascade) - Load balancer and AI workflow coordination

**Features:** Rate limiting, region scoring, health probes, fallback Orchestrators, credit tracking (e.g. Postgres/Redis).

## APIs

**Endpoints:**

* `https://livepeer.studio/api` - Studio REST
* `https://explorer.livepeer.org/graphql` - Explorer GraphQL

## CLI and SDKs

**CLI:** `livepeer_cli` (shipped with go-livepeer)

* Stake LPT, bond/unbond
* Set Orchestrator fees and reward cut
* Watch active sessions, query protocol state

**SDKs:**

* **[Livepeer JS SDK](https://github.com/livepeer/js-sdk)** - Playback, ingest, AI session tools; works in Node.js and browser
* **Python AI pipelines** - Used in internal and community projects (e.g. dotSimulate, MetaDJ)

## Monitoring and observability

Node software exposes explicit metrics (e.g. Segment success rate, ticket value sent/redeemed, orchestrator swaps); see [Job lifecycle](/v2/about/network/job-lifecycle.md) for event/transition details.

## Deployment examples

* [Orchestrator on AWS](https://github.com/livepeer/orchestrator-on-aws)
* [Studio gateway deploy](https://github.com/livepeer/studio-gateway-deploy)
* [Daydream AI node pipeline](https://github.com/livepeer/daydream)

## See also

* [Interfaces](/v2/about/network/interfaces.md) - REST, gRPC, GraphQL, JS SDK, CLI, and smart contract access
* [Marketplace](/v2/about/network/marketplace.md) - How Gateways route jobs and how pricing works
* [Job lifecycle](/v2/about/network/job-lifecycle.md) - End-to-end flow and state machine
* [Protocol technical architecture](/v2/about/protocol/technical-architecture.md) - On-chain contracts and node types from protocol perspective
* [Blockchain contracts](/v2/about/protocol/blockchain-contracts.md) - Contract addresses (Arbitrum)

## References

* [Livepeer GitHub](https://github.com/livepeer)
* [Orchestrator docs](/v2/orchestrators/portal.md)
* [Daydream Gateway](https://github.com/livepeer/daydream)
* [Livepeer Explorer](https://explorer.livepeer.org)


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