> For the complete documentation index, see [llms.txt](https://darksun-2.gitbook.io/darksun-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://darksun-2.gitbook.io/darksun-docs/integrations/how-it-works.md). Agents can also search and read this documentation through its [MCP server](https://darksun-2.gitbook.io/darksun-docs/~gitbook/mcp).

# Concepts

A DarkSun integration has three main layers.

## 1. The manifest

The manifest is the declarative contract.

It tells DarkSun:

* who owns the integration
* which chain it applies to
* which endpoints exist
* which capabilities are available
* how authentication and verification should work

The manifest is not the full execution logic. It is the integration declaration that allows DarkSun to discover and understand the source.

## 2. The capabilities

A capability is a business-level function that DarkSun knows how to consume.

Examples:

* `validators`
* `validator_metrics`
* `liquidity_positions`
* `farm_catalog`
* `nft_positions`

Capabilities are the bridge between an endpoint and DarkSun’s domain logic.

## 3. The adapters and providers

DarkSun still has execution logic in providers and adapters.

Today, that means:

* the manifest tells DarkSun where to read from and what should exist
* DarkSun providers and adapters still execute part of the business logic
* DarkSun-managed bootstrap integrations coexist with future third-party integrations

This is intentional. It allows the architecture to evolve safely without forcing a risky all-at-once rewrite.

## Current model

The current DarkSun implementation supports both:

1. DarkSun-managed bootstrap integrations
2. future third-party integrations exposed by protocols or blockchains

## Target model

Long term, DarkSun should be able to operate in two clean modes:

1. protocol-native integration The protocol or blockchain provides its own DarkSun-compatible manifest and source
2. DarkSun-managed fallback integration DarkSun maintains a custom adapter or bootstrap manifest where the third party is not ready yet

## Why this matters

Without this separation, DarkSun becomes the manual adapter for every ecosystem participant.

With this model:

* onboarding gets faster
* integrations become more consistent
* responsibilities are clearer
* DarkSun scales beyond manual curation
