> For the complete documentation index, see [llms.txt](https://doc.highkey.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.highkey.ai/3.-darp-and-highkey-platform-architecture.md).

# 3. DARP & HighKey Platform Architecture

## 3.1 Overview

The DARP protocol consists of several key components working together to create a seamless Web3-AI integration experience. And the architecture diagram illustrates the comprehensive structure of DARP and the HighKey platform, showing how different layers interact to create a unified Web3 intelligence ecosystem.

<figure><img src="https://4103679112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzNVuFDAMBwjqJzx3lDwJ%2Fuploads%2Fwttrge2IM1UwUrVo0D32%2F%E6%9E%B6%E6%9E%84%E5%9B%BE.png?alt=media&amp;token=53f09119-9ee4-4d94-a11e-ca103ea384ef" alt=""><figcaption><p>DARP architecture</p></figcaption></figure>

## 3.2 Architectural Layers

### 3.2.1 Access Layer

The platform offers two primary access methods:

* **DARP Client (IDEs, Tools)**: For developers and technical users
* **HighKey Web Platform**: User-friendly web interface for general users

### 3.2.2 Core Services

Essential platform services:

* **Auth Service**: Handles authentication and authorization
* **Resource Market**: Manages platform resources and marketplace functions

### 3.2.3 Model Service Layer

* **Open Source Model Service**: Provides AI model capabilities for agents and analysis

### 3.2.4 Scheduler Layer

Task orchestration and automation:

* **Official Scheduler**: HighKey's built-in scheduling system
* **Custom Schedulers**: User-created scheduling solutions

### 3.2.5 Agent Layer

Intelligent agent ecosystem:

* **Agent Hub**: Central management for all agents
* **Custom Agents**: User-created specialized agents

### 3.2.6 DARP Server Layer

Data access and processing:

* **Official DARP Servers**: HighKey-maintained servers
* **Third-party DARP Servers**: Community-contributed servers

### 3.2.7 External Resources

Available data sources:

* **Chain Data**:
  * Solana Network
  * EVM Chains
  * Other blockchain networks
* **Off-Chain Data**:
  * Databases
  * Third-Party APIs

## 3.3 Data Flow and Interactions

1. **User Access Flow**:
   * Users interact through either DARP Client or Web Platform
   * All requests go through Core Services for authentication
2. **Agent Operations**:
   * Agents can be deployed through Agent Hub
   * Custom Agents interact with both Official and Third-party DARP Servers
3. **Scheduling System**:
   * Both Official and Custom Schedulers coordinate agent activities
   * Schedulers interact directly with Agent Layer
4. **Data Access Pattern**:
   * DARP Servers access External Resources
   * Data flows through standardized protocols
5. **Model Integration**:
   * Open Source Model Service supports agent operations
   * Models can be integrated into custom solutions

## 3.4 Key Features

1. **Decentralization**:
   * Support for third-party servers
   * Custom agent creation
   * Community-driven expansion
2. **Flexibility**:
   * Multiple access methods
   * Customizable components
   * Extensible architecture
3. **Security**:
   * Centralized authentication
   * Controlled resource access
   * Secure data handling
4. **Scalability**:
   * Modular design
   * Distributed processing
   * Extensible components
