# Getting Started

## Get the package

The first thing you need to do, is grab the distribution files on NPM.

**Via yarn:**

```
yarn add @projectstorm/react-diagrams
```

**Via npm:**

```
npm install @projectstorm/react-diagrams
```

**Via pnpm:**

```
pnpm add @projectstorm/react-diagrams
```

When you run this in your project directory, this will install the library into `./node_modules/@projectstorm/react-diagrams`. You will then find a **dist** folder that contains all the minified and production ready code.


---

# Agent Instructions: 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 current page URL with the `ask` query parameter:

```
GET https://projectstorm.gitbook.io/react-diagrams/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
