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

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Installation

> Install Commerce Kit packages for your use case

<Warning>
  **Commerce Kit is no longer maintained**

  Commerce Kit packages no longer receive updates or fixes. For new payment
  integrations, use [Solana Pay](/developers/docs/tools/solana-pay).
</Warning>

Choose the Commerce Kit packages you need based on what you're building. Each
package is independently installable and can be used alone or combined with
others.

## System Requirements

- **Node.js**: Version 20.18 or higher (LTS recommended). Commerce Kit's
  dependencies `gill` and `@solana/kit` require `node >=20.18.0`.
- **Package manager**: npm, which ships with Node.js
- **TypeScript**: Version 4.5+ (recommended but not required)

## Common Peer Dependencies

Solana Commerce Kit is built on top of the Solana Kit library, so it is
compatible with Solana Kit, Solana Programs
[Clients](https://github.com/solana-program), and
[Codama-generated JS Clients](https://github.com/codama-idl/renderers-js).

```bash
npm install @solana/kit
npm install @solana-program/token # or @solana-program/target-program
npm install @my-program/codama-js-client
```

## TypeScript Configuration

If using TypeScript, ensure your `tsconfig.json` includes:

```json
{
  "compilerOptions": {
    "module": "ESNext",
    "target": "ES2020",
    "lib": ["ES2020", "DOM", "DOM.Iterable"],
    "jsx": "react-jsx",
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "skipLibCheck": true
  }
}
```

## Next.js Configuration

If using Next.js, update `next.config.js` to transpile Commerce Kit packages:

```js
/** @type {import('next').NextConfig} */
const nextConfig = {
  transpilePackages: [
    "@solana-commerce/react",
    "@solana-commerce/connector",
    "@solana-commerce/headless",
    "@solana-commerce/solana-pay",
    "@solana-commerce/sdk"
  ]
};

export default nextConfig;
```
