# Installation

> Install @stxapp/stx-typescript and import it.

Source: https://docs.stxapp.io/sdks/typescript/installation/

```bash
npm install @stxapp/stx-typescript
```

```bash
pnpm add @stxapp/stx-typescript
```

```bash
yarn add @stxapp/stx-typescript
```

```bash
bun add @stxapp/stx-typescript
```

Requires Node 18 or newer (or Bun). API-key signing uses Node's `crypto` module, so run the client on a server, not in a browser.

## Importing

```ts
import { STX } from "@stxapp/stx-typescript";
```

CommonJS works too:

```js
const { STX } = require("@stxapp/stx-typescript");
```

## Check the install

```bash
node -e 'import("@stxapp/stx-typescript").then((m) => console.log(m.VERSION))'
```

Pin an exact version in production. Before 1.0.0, a minor release can change the API.
