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

# Installation

> How to install Sorionlib in your project

## Prerequisites

Before installing Sorionlib, ensure you have:

* **Node.js** version 16.0.0 or higher
* **npm** or **yarn** package manager

## Install via npm

```bash theme={null}
npm install sorionlib
```

## Install via yarn

```bash theme={null}
yarn add sorionlib
```

## Install via pnpm

```bash theme={null}
pnpm add sorionlib
```

## Dependencies

Sorionlib has minimal dependencies. The following are installed automatically:

| Package  | Purpose                         |
| -------- | ------------------------------- |
| `axios`  | HTTP client for API requests    |
| `dotenv` | Environment variable management |

## Verify installation

After installation, verify it works by creating a test file:

```js theme={null}
import { Sorion } from "sorionlib";

const client = new Sorion();
console.log("Sorionlib installed successfully!");
```

Run the file:

```bash theme={null}
node test.js
```

## TypeScript setup

Sorionlib includes TypeScript definitions out of the box. No additional `@types` packages are required.

```ts theme={null}
import { Sorion, SorionConfig } from "sorionlib";

const config: SorionConfig = {
  logging: true,
  prefix: "!"
};

const client = new Sorion(config);
```
