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

# Next.js Template

> A starter template for building confidential Solana dApps with Next.js

# Next.js Template

This starter template helps you build a frontend for confidential Solana applications using Next.js, the Inco Solana SDK, and Solana wallet adapters.

## What You'll Build

A simple dApp that demonstrates:

* Wallet connection (Phantom, Solflare, etc.)
* Encrypting values client-side
* Minting confidential tokens
* Reading and decrypting balances

<CardGroup cols={2}>
  <Card title="Setup" icon="gear" href="/svm/tutorials/nextjs-template/setup">
    Install dependencies and configure your project
  </Card>

  <Card title="Project Structure" icon="folder" href="/svm/tutorials/nextjs-template/project-structure">
    Understand the template architecture
  </Card>

  <Card title="Wallet Integration" icon="wallet" href="/svm/tutorials/nextjs-template/wallet-integration">
    Set up Solana wallet adapters
  </Card>

  <Card title="Components" icon="puzzle-piece" href="/svm/tutorials/nextjs-template/components">
    Build encryption and balance components
  </Card>
</CardGroup>

## Quick Start

```bash theme={null}
# Clone the template
git clone https://github.com/Inco-fhevm/nextjs-template-svm.git
cd nextjs-template-svm

# Install dependencies
npm install
# or
yarn install
# or
bun install

# Start the development server
npm run dev
# or: yarn dev / bun run dev
```

Open [http://localhost:3000](http://localhost:3000) to see your app.

## Features

| Feature             | Description                                     |
| ------------------- | ----------------------------------------------- |
| **Next.js 16**      | Latest Next.js with App Router                  |
| **Wallet Adapters** | Support for Phantom, Solflare, Ledger, and more |
| **Inco SDK**        | Client-side encryption and decryption           |
| **Tailwind CSS**    | Utility-first styling                           |
| **TypeScript**      | Full type safety                                |

## Prerequisites

Before you begin, make sure you have:

* Node.js 18+ installed
* A Solana wallet (Phantom, Solflare, etc.)
* Some devnet SOL for testing

<Tip>
  Get devnet SOL from [Solana Faucet](https://faucet.solana.com/) or run `solana airdrop 2` in your terminal.
</Tip>
