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

# Installation

> Install the Legnext JavaScript/Node.js SDK

## Install from NPM

```bash theme={null}
npm install @legnext/midjourney-sdk
```

## Requirements

* **Node.js**: Version 12 or higher
* **Package Manager**: npm or yarn

## Supported Environments

The SDK works in:

* Node.js applications
* Webpack-bundled projects
* Browserify projects
* TypeScript projects (type definitions included)

## Module Systems

Supports both:

* **CommonJS** - `require('@legnext/midjourney-sdk')`
* **ES6 Modules** - `import { ... } from '@legnext/midjourney-sdk'`

## TypeScript Support

The SDK includes full TypeScript definitions. Type declarations are automatically resolved via `package.json`.

## Verify Installation

```bash theme={null}
npm list @legnext/midjourney-sdk
```
