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

# Install and configure the Squire JavaScript SDK

> Add the Squire JavaScript SDK to your EHR frontend by configuring the private NPM registry and running a single install command. TypeScript types included.

The Squire JavaScript SDK is hosted on a private NPM registry and works with any frontend framework — React, Angular, Vue, or plain JavaScript. Before you can install the package, you need to point your package manager at the Squire registry and provide your authentication token.

<Steps>
  <Step title="Configure the NPM registry">
    Add the following lines to your `.npmrc` file (create it in your project root if it doesn't exist):

    ```ini .npmrc theme={null}
    @squirehealth:registry=https://pkg.squire.eu/npm/
    //pkg.squire.eu/npm/:_authToken=YOUR_TOKEN
    ```

    Replace `YOUR_TOKEN` with the token provided by your integration partner.
  </Step>

  <Step title="Install the SDK">
    With the registry configured, install the Squire SDK:

    ```bash theme={null}
    npm install @squirehealth/sdk
    ```

    <Note>
      The SDK ships with TypeScript type definitions. No separate `@types` package is required.
    </Note>

    You're now ready to initialize the SDK in your application. See [SDK usage](/integration/sdk/usage) to get started.
  </Step>
</Steps>
