open-index/open-npm huggingface dataset:
npm package: @getchill.app/tsclient
Description: Typescript client for Chill.app
Author: Gabriel Handford
Latest version: 0.1.8

# tsclient

```shell
yarn add @getchill.app/tsclient
```

```typescript
import {Credentials, rpcService, RPCService, certPath, RPCError} from '@getchill.app/tsclient'

export const creds: Credentials = new Credentials(certPath('Chill'))
export const rpc: RPCService = rpcService('localhost:49405', creds)

// Authenticate with service
const auth = await rpc.authUnlock({
  secret: 'mypassword',
  type: AuthType.PASSWORD_AUTH,
  client: 'myapp',
})
// Set auth token from unlock on the service auth
creds.token = auth.authToken

// Search
const keys = await rpc.keys({})
console.log('Keys:', keys)
```

## Publishing

```shell
npm login
npm publish --access public
```
npm package: @getclarify/nodejs-sdk
Description: JavaScript/TypeScript SDK for Clarify platform
Latest version: 0.0.4

# @getclarify/nodejs-sdk

JavaScript/TypeScript SDK for the Clarify platform.

## Prerequisites

- Node.js >= 18.0.0
- npm

## Development

### Install dependencies

```bash
npm install
```

### Build

Build ESM, CJS, and type definitions:

```bash
npm run build
```

Individual build targets:

```bash
npm run build:esm    # ES modules
npm run build:cjs    # CommonJS
npm run build:types  # TypeScript declarations
```

Clean build artifacts:

```bash
npm run clean
```

### Lint

```bash
npm run lint        # Check for issues
npm run lint:fix    # Auto-fix issues
```

### Test

```bash
npm run test        # Run tests once
npm run test:watch  # Watch mode
npm run test:cov    # With coverage
```

### Type check

```bash
npm run tsc         # One-time check
npm run tsc:watch   # Watch mode
```

## Publishing

### 1. Ensure tests pass and code is clean

```bash
npm run lint
npm run test
npm run build
```

### 2. Update version

```bash
npm version patch   # 0.0.1 -> 0.0.2
npm version minor   # 0.0.1 -> 0.1.0
npm version major   # 0.0.1 -> 1.0.0
```

### 3. Verify package contents

```bash
npm publish --dry-run
```

### 4. Publish

```bash
npm publish
```

### Authentication

If not logged in:

```bash
npm login
```

Or set a token for CI:

```bash
npm config set //registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN
```