[![Build Status](https://github.com/whitewall-dev/blip-sdk/actions/workflows/publish.yml/badge.svg)](https://github.com/whitewall-dev/blip-sdk/actions/workflows/publish.yml)
[![npm](https://img.shields.io/npm/v/@whitewall/blip-sdk.svg)](https://npmjs.com/package/@whitewall/blip-sdk)

# blip-sdk

A simple blip API wrapper and LIME protocol implementation in TypeScript.

## API Usage

```js
import { BlipClient, HttpSender } from '@whitewall/blip-sdk'

const client = new BlipClient(HttpSender.login(process.env.BLIP_BOT_IDENTIFIER, BLIP_BOT_ACCESSKEY, BLIP_TENANT_ID))
await client.account.setBucket('bucketitem', 'value')
console.log(await client.account.getBucket('bucketitem'))
```

## Development

Install dependencies from the workspace root:

```sh
pnpm install
```

Build or test the SDK from the workspace root:

```sh
pnpm build
pnpm test
```

You can run the development version in another repo using `pnpm link`:

```sh
cd path/to/blip-sdk/packages/sdk
pnpm link --global
cd path/to/main/repo
pnpm link --global @whitewall/blip-sdk
```
