Raydium is a leading AMM, DEX, and liquidity infrastructure protocol built on Solana. It provides high-performance liquidity primitives for swaps, liquidity provision, token launches, and developer integrations across the Solana DeFi ecosystem.
Raydium’s public GitHub organization hosts selected protocol repositories, SDKs, IDLs, examples, documentation, and integration resources for developers building on top of Raydium.
|
Built on Solana for fast execution, low fees, and high-throughput DeFi activity. |
Supports concentrated liquidity, constant-product liquidity, and legacy AMM pool models. |
Powers token launch flows, liquidity bootstrapping, routing, rewards, and integrations. |
|
Selected protocol code, SDKs, IDLs, examples, and documentation for builders. |
Built for integrations through SDKs, CPI examples, program interfaces, and on-chain liquidity. |
Designed for traders, liquidity providers, token teams, protocols, wallets, and developers. |
A quick map of the main Raydium primitives and where developers can start.
| Area | What it Covers | Start Here |
|---|---|---|
| CLMM | Concentrated liquidity pools where LPs provide liquidity within custom price ranges. | raydium-clmm |
| CPMM / CP-Swap | Revamped constant-product pools with no OpenBook market requirement and Token-2022 support. | raydium-cp-swap |
| AMM | Legacy constant-product AMM program and historical liquidity infrastructure. | raydium-amm |
| Launch & Ecosystem Products | Token launch, liquidity bootstrapping, rewards, routing, and ecosystem integrations. | Raydium Docs · SDK V2 · IDLs |
| SDK & API Integration | TypeScript tools for swaps, pool discovery, liquidity actions, token data, and transaction building. | raydium-sdk-V2 · raydium-sdk-V2-demo |
| IDL & CPI Integration | Program interfaces and examples for composing with Raydium from other Solana programs. | raydium-idl · raydium-cpi-example · raydium-cpi |
| Rust Helpers & CLI | Rust helper libraries and command-line tools for constructing and interacting with Raydium instructions. | raydium-library · raydium-contract-instructions |
| Docs & Frontend Resources | Developer documentation, UI resources, and user-facing integration references. | raydium-docs-v1 · raydium-ui-v3-public |
Selected on-chain Rust programs powering Raydium liquidity.
| Repository | Description | Language | Status |
|---|---|---|---|
| raydium-clmm 🔗 | Concentrated Liquidity Market Maker program for capital-efficient liquidity ranges. | ||
| raydium-cp-swap 🔗 | Revamped constant-product AMM with Token-2022 support and no OpenBook market requirement. | ||
| raydium-amm 🔗 | Legacy constant-product AMM repository and historical AMM infrastructure. |
Everything you need to build on Raydium — SDKs, IDLs, CPI examples, and helper libraries.
| Repository | Description | Language | Status |
|---|---|---|---|
| raydium-sdk-V2 🔗 | TypeScript SDK for building applications and integrations on top of Raydium. | ||
| raydium-sdk-V2-demo 🔗 | Runnable SDK V2 examples for swaps, pools, liquidity actions, and common integration flows. | ||
| raydium-idl 🔗 | IDL files for Raydium programs, useful for clients, tooling, and program integrations. | ||
| raydium-cpi-example 🔗 | CPI examples for integrating with Raydium AMM, CP-Swap, and CLMM programs. | ||
| raydium-cpi 🔗 | Rust CPI helper crate and interface resources for calling Raydium programs from other programs. | ||
| raydium-library 🔗 | Rust helper library and CLI resources for interacting with Raydium contracts. | ||
| raydium-contract-instructions 🔗 | Instruction-building helpers and examples for interacting with Raydium contracts. |
| Repository | Description | Language | Status |
|---|---|---|---|
| raydium-docs-v1 🔗 | Raydium documentation content for developers, integrators, and users. | ||
| raydium-docs 🔗 | Historical documentation and reference materials. | ||
| raydium-ui-v3-public 🔗 | Public frontend resources for Raydium UI v3. |
Get started with the Raydium SDK in seconds.
Install the latest SDK:
npm install @raydium-io/raydium-sdk-v2Initialize and fetch pool info:
import { Connection, Keypair } from "@solana/web3.js";
import { Raydium } from "@raydium-io/raydium-sdk-v2";
// Initialize the SDK
const connection = new Connection("https://api.mainnet-beta.solana.com");
const raydium = await Raydium.load({
connection,
owner: Keypair.fromSecretKey(/* your secret key */),
cluster: "mainnet",
});
// Fetch pool info by id
const pools = await raydium.api.fetchPoolById({ ids: poolId });
console.log(pools[0]);For full swap, pool, and liquidity examples, see the raydium-sdk-V2-demo repository.
| 📦 Public Repositories | 🛠 Developer Resources | 🌐 Solana DeFi Infrastructure |
| Selected protocol code, SDKs, IDLs, docs & examples | Rust · TypeScript · MDX · IDL | CLMM · CPMM · AMM · Launch · Integrations |
If you believe you have found a security issue, please follow Raydium’s official security reporting process and avoid disclosing details publicly before the issue has been reviewed.
| 💬 Discord | ||
| Latest announcements | Developer support & chat | Community discussion |
| 📖 Documentation | 🌐 Website |
| Technical docs | Trade on Raydium |
