> For the complete documentation index, see [llms.txt](https://nazeehs-org.gitbook.io/comp-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nazeehs-org.gitbook.io/comp-kit/introduction/getting-started.md).

# Getting Started

## Installation

Install `comp-kit` and its peer dependencies. I am using `yarn` as the package manager, you can use the package manager of your choice.

{% tabs %}
{% tab title="npm" %}

```bash
npm install @nazeeh2000/comp-kit viem @stitches/react @walletconnect/modal @walletconnect/ethereum-provider 
```

{% endtab %}

{% tab title="yarn" %}

```bash
yarn add @nazeeh2000/comp-kit viem @stitches/react @walletconnect/modal @walletconnect/ethereum-provider 
```

{% endtab %}

{% tab title="pnpm" %}

```bash
pnpm i @nazeeh2000/comp-kit viem @stitches/react @walletconnect/modal @walletconnect/ethereum-provider 
```

{% endtab %}
{% endtabs %}

## Configuration

Once you're done with the installation of the dependencies, you need to set up  `KitProvider` at the root of your application. This can be either in your `layout.tsx` (if you're using Next.js 13 `app` directory), `_app.tsx` (if you're using old `pages` directory of Next.js) or `App.tsx` depending on the framework you're using.

Below is an example of the Next.js 13 `app` directory. For that, in your `layout.tsx` file, wrap your `children` with `KitProvider` imported from `@nazeeh2000/comp-kit`

{% code title="layout.tsx" lineNumbers="true" %}

```tsx
'use client'
import { KitProvider } from "@nazeeh2000/comp-kit";
import "./globals.css";
import { Inter } from "next/font/google";
import { arbitrum, mainnet, polygon } from "viem/chains";

const inter = Inter({ subsets: ["latin"] });

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en">
      <body className={inter.className}>
        <KitProvider
          projectId="" // WallectConnect projectId
          supportedChains={[mainnet, polygon, arbitrum]}
        >
          {children}
        </KitProvider>
      </body>
    </html>
  );
}
```

{% endcode %}

You have to pass two required props to `KitProvider` i.e. `projectId` and `supportedChains.`

* `projectId` refers to the id you get from the WalletConnect dashboard
* `supportedChains` accepts an array of the *chains* you want to support for your dapp. These *chains* have to be imported from `viem/chains`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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 following URL with the `ask` and `goal` query parameters:

```
GET https://nazeehs-org.gitbook.io/comp-kit/introduction/getting-started.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
