# 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="/files/mtnUy5npQXq0h1TIdoMX" 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.highkey.ai/3.-darp-and-highkey-platform-architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
