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

# Welcome to ZK Compression

export const PartnerLogos = () => {
  return <div className="partner-logos">
      <img src="/images/light-wordmark.svg" alt="Light Protocol" className="partner-logo light-wordmark" />
      <span className="partner-divider">×</span>
      <img src="/images/helius-black.png" alt="Helius" className="partner-logo logo-light" />
      <img src="/images/helius-white.png" alt="Helius" className="partner-logo logo-dark" />
    </div>;
};

export const LiquidGlassPill = ({title, children}) => {
  return <div className="glass-pill">
      <div className="glass-pill-bg">
        <span className="glass-pill-inner" />
      </div>
      <div className="glass-pill-content">
        <h1 className="hero-title">{title}</h1>
        {children}
      </div>
    </div>;
};

export const HeroCubeGrid = () => {
  const tileSize = 72;
  const gap = 6;
  const cellSize = tileSize + gap;
  const cols = Math.ceil(2048 / cellSize);
  const rows = Math.ceil(700 / cellSize);
  const centerX = (cols - 1) / 2;
  const centerY = (rows - 1) / 2;
  const maxDistance = Math.sqrt(centerX * centerX + centerY * centerY);
  const tiles = [];
  for (let row = 0; row < rows; row++) {
    for (let col = 0; col < cols; col++) {
      const dx = col - centerX;
      const dy = row - centerY;
      const distance = Math.sqrt(dx * dx + dy * dy);
      const normalizedDistance = distance / maxDistance;
      tiles.push({
        col,
        row,
        delay: normalizedDistance * 2.5
      });
    }
  }
  return <div className="hero-cube-grid">
      <svg viewBox="0 0 2048 700" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
        <defs>
          <linearGradient id="gridGradient" x1="0%" y1="0%" x2="100%" y2="100%">
            <stop offset="0%" className="grid-bg-start" />
            <stop offset="100%" className="grid-bg-end" />
          </linearGradient>
        </defs>

        <rect width="100%" height="100%" fill="url(#gridGradient)" />

        {tiles.map((tile, i) => {
    const x = tile.col * cellSize;
    const y = tile.row * cellSize;
    return <g key={i} className="cube-tile" style={{
      animationDelay: `${tile.delay}s`
    }}>
              <rect x={x + gap / 2} y={y + gap / 2} width={tileSize} height={tileSize} className="tile-fill" fillOpacity={0.5} rx={4} />
              <rect x={x + gap / 2} y={y + gap / 2} width={tileSize} height={tileSize} fill="none" className="tile-stroke" strokeWidth={1.5} strokeOpacity={0.25} rx={4} />
            </g>;
  })}
      </svg>
    </div>;
};

export const Footer = () => {
  const iconStyle = {
    color: "#6b7280",
    transition: "color 0.2s",
    display: "flex"
  };
  return <footer className="docs-footer" style={{
    padding: "32px 1.25rem"
  }}>
      <div style={{
    maxWidth: "48rem",
    margin: "0 auto",
    display: "flex",
    justifyContent: "space-between",
    alignItems: "center",
    flexWrap: "wrap",
    gap: "12px",
    fontSize: "0.875rem",
    color: "#6b7280"
  }}>
        <span>
          ZK Compression is built and maintained by{" "}
          <a href="https://lightprotocol.com" target="_blank" rel="noopener noreferrer" style={{
    color: "inherit",
    textDecoration: "underline"
  }}>
            Light
          </a>{" "}
          and{" "}
          <a href="https://helius.dev" target="_blank" rel="noopener noreferrer" style={{
    color: "inherit",
    textDecoration: "underline"
  }}>
            Helius
          </a>
          .
        </span>
        <div style={{
    display: "flex",
    alignItems: "center",
    gap: "16px"
  }}>
          <a href="https://github.com/Lightprotocol/light-protocol" target="_blank" rel="noopener noreferrer" style={iconStyle} aria-label="GitHub">
            <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor">
              <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
            </svg>
          </a>
          <a href="https://discord.com/invite/CYvjBgzRFP" target="_blank" rel="noopener noreferrer" style={iconStyle} aria-label="Discord">
            <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor">
              <path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z" />
            </svg>
          </a>
        </div>
      </div>
    </footer>;
};

<div className="relative text-center py-24 sm:py-32 md:py-40 px-4 w-full overflow-hidden border-b border-gray-200 dark:border-gray-800">
  <HeroCubeGrid />

  <LiquidGlassPill title="Scale Anything on Solana." />
</div>

<div className="max-w-3xl mx-auto px-5 py-12 prose prose-gray dark:prose-invert">
  ZK Compression is a Solana framework that reduces the cost of token accounts and
  PDAs by 99%.

  Whether you're building the next DeFi protocol or integrating enterprise-grade
  stablecoin payments, our APIs help you scale.

  ## Token APIs

  | Creation Cost     |      Light Token | SPL / Token 2022 |
  | :---------------- | ---------------: | ---------------: |
  | **Mint Account**  | **0.000091 SOL** |       0.0015 SOL |
  | **Token Account** | **0.000017 SOL** |       0.0029 SOL |

  <Card title="Light Token Program" icon="book" color="#0066ff" href="/light-token/welcome" horizontal>
    High-performance token program and APIs that reduce account creation cost by 99%, while being more CU efficient on hot paths.
    The Light Token APIs are a superset of - and fully compatible with - SPL-Tokens.
  </Card>

  ### Integration Guides

  <CardGroup cols={2}>
    <Card title="Stablecoin Payments" icon="credit-card" href="/light-token/payments/overview">
      Learn how to integrate Light Token in your stablecoin payment infrastructure.
    </Card>

    <Card title="Wallets" icon="wallet" href="/light-token/wallets/overview">
      Let users display and swap light-tokens in your wallet application.
    </Card>

    <Card title="DeFi Programs" icon="cube" href="/light-token/defi/programs">
      Build rent-free AMMs and DeFi programs with light-tokens.
    </Card>

    <Card title="Data Streaming" icon="stream" href="/light-token/streaming/tokens">
      Stream token and mint events from the network in real-time.
    </Card>
  </CardGroup>

  ### Cookbook & Reference

  <CardGroup cols={2}>
    <Card title="Cookbook" icon="utensils" href="/light-token/cookbook/create-mint">
      Step-by-step recipes for every token operation.
    </Card>

    <Card title="API Reference" icon="code" href="/api-reference/overview">
      TypeScript and Rust SDKs, Anchor constraints and JSON RPC methods.
    </Card>

    <Card title="Solana to Light" icon="code-compare" href="/api-reference/solana-to-light-comparison">
      Side-by-side mapping of every Light Token instruction against its SPL/Solana equivalent.
    </Card>
  </CardGroup>

  ## PDA Accounts

  | Creation Cost    | Light / Compressed | Solana Default |
  | :--------------- | -----------------: | -------------: |
  | **100-byte PDA** |     \~0.000015 SOL |     0.0016 SOL |

  <CardGroup cols={2}>
    <Card title="Light PDA (New)" icon="expand" href="/pda/light-pda/overview">
      Solana PDAs with sponsored rent-exemption that you can use with minimal coding overhead.
      Works just like any other PDA, e.g. in your DeFi program.
    </Card>

    <Card title="Compressed PDA" icon="compress" href="/pda/compressed-pdas/overview">
      Compressed PDAs are the core primitive. They let you store user, app, or other infrequently accessed state without paying rent-exemption fees at all.
    </Card>
  </CardGroup>

  ## AI Native Development

  <Tabs>
    <Tab title="Agent Skills">
      Install orchestrator agent skill or view [skill.md](https://www.zkcompression.com/skill.md):

      ```bash theme={null}
      npx skills add https://zkcompression.com
      ```

      Install or view [dedicated agent skills](/ai-tools/overview#agent-skills).

      ```
      npx skills add Lightprotocol/skills
      ```
    </Tab>

    <Tab title="MCP and DeepWiki">
      Connect AI tools to the Light Protocol repository via MCP and DeepWiki.

      <Tabs>
        <Tab title="Claude Code">
          ```bash theme={null}
          claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp
          claude mcp add -s user -t http zkcompression https://www.zkcompression.com/mcp
          ```
        </Tab>

        <Tab title="Codex">
          ```bash theme={null}
          codex mcp add zkcompression -- npx -y mcp-remote@latest https://www.zkcompression.com/mcp
          codex mcp add deepwiki -- npx -y mcp-remote@latest https://mcp.deepwiki.com/mcp
          ```
        </Tab>

        <Tab title="Most Clients (Windsurf, Cursor, ...)">
          ```json theme={null}
          {
            "mcpServers": {
              "deepwiki": {
                "serverUrl": "https://mcp.deepwiki.com/sse"
              },
              "zkcompression": {
                "command": "npx",
                "args": ["-y", "mcp-remote@latest", "https://www.zkcompression.com/mcp"]
              }
            }
          }
          ```
        </Tab>
      </Tabs>
    </Tab>
  </Tabs>

  <Card title="AI Prompts" icon="clipboard" href="/ai-tools/prompts">
    Copy-paste prompts for common integration tasks.
  </Card>

  ## Resources

  <CardGroup cols={2}>
    <Card title="Learn Core Concepts" icon="graduation-cap" href="/learn/overview">
      Learn about the Light Token program and ZK Compression Core.
    </Card>

    <Card title="Security Audits" icon="shield-check" href="/resources/security">
      View security audits and formal verification.
    </Card>
  </CardGroup>
</div>

<Footer />
