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

# Installation

> How to install and set up Waterfall-Fetch

# Installation

Getting started with Waterfall-Fetch is quick and easy. Follow these steps to install and set up the library in your project.

## NPM Installation

To install Waterfall-Fetch using npm, run the following command in your project directory:

<CodeGroup>
  ```bash npm theme={null}
  npm install waterfall-fetch
  ```

  ```bash yarn theme={null}
  yarn add waterfall-fetch
  ```

  ```bash pnpm theme={null}
  pnpm add waterfall-fetch
  ```
</CodeGroup>

## Environment Variables

For optimal performance and functionality, set up the following environment variables in your `.env` file or deployment environment:

```text theme={null}
BROWSER_SERVICE=browserless
BROWSERBASE_API_KEY=your_browserbase_api_key
BROWSERLESS_API_KEY=your_browserless_api_key
NODE_ENV=production
HEADLESS=on
```

Replace `your_browserbase_api_key` and `your_browserless_api_key` with your actual API keys.

## TypeScript Support

Waterfall-Fetch includes built-in TypeScript support, so you can use it in your TypeScript projects without any additional setup.

## Next Steps

Now that you have Waterfall-Fetch installed, you're ready to start using it in your project. Check out the [Quick Start](/mdx/quickstart) guide for basic usage examples, or dive into the [API Reference](/mdx/api-reference/gethtml) for more detailed information.
