# Installation
Learn how to install the dotlottie-js library using npm, pnpm, or yarn for your browser and Node.js projects.

# Installing `dotlottie-js`

Integrate `dotlottie-js` into your project using your preferred package manager (npm, pnpm, or yarn).

## Using a Package Manager

Choose the command that suits your project's setup:

### pnpm

```bash
pnpm add @dotlottie/dotlottie-js
```

### npm

```bash
npm install @dotlottie/dotlottie-js
```

### yarn

```bash
yarn add @dotlottie/dotlottie-js
```

## Environments: Browser and Node.js

`dotlottie-js` is designed to be isomorphic, meaning it runs in both **browser** and **Node.js** environments. Import it directly into your JavaScript/TypeScript modules.

```javascript
import { DotLottie } from "@dotlottie/dotlottie-js";

// Your browser-specific code here
const dotlottie = new DotLottie();
// ...
```

## Verifying Installation

After installation, you can verify that the library is correctly integrated by trying a simple import and instantiation in your project code as shown in the examples above.

Once installed, you're ready to start creating and manipulating `.lottie` files!

Next up: [Quick Start: Creating a dotLottie file](/docs/tools/dotlottie-js/how-to-guides/create-and-export-a-lottie-file)
