open-index/open-npm huggingface dataset:
npm package: @or-sdk/source-api
Description: ## Installation
Latest version: 1.1.0

# @or-sdk/source-api

## Installation

```bash
npm i @or-sdk/source-api
```

## Usage

```typescript
import { SourceApi } from '@or-sdk/source-api'
import config from '../config';

// With direct api url
const sourceApiSdk = new SourceApi({
  token: 'my-account-token-string',
  storeApiUrl: config.STORE_API_URL
});

// With service discovery (slower)
const sourceApiSdk = new Store({
  token: 'my-account-token-string',
  discoveryUrl: 'http://example.store/endpoint'
});
```