# coinstac-vault-client

> The headless client allows a static dataset(s) to be made available to the larger COINSTAC ecosystem, giving the ability for others to run pipelines using your data without it ever leaving your system

Latest version **6.9.8** (published 2025-05-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install coinstac-vault-client
pnpm add coinstac-vault-client
yarn add coinstac-vault-client
bun add coinstac-vault-client
```

Provides the command `coinstac-vault-client`.

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.9.8 |
| Published | 2025-05-29 |
| First published | 2023-01-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rsskmr |

## Links

- npm: https://www.npmjs.com/package/coinstac-vault-client
- npm.io page: https://npm.io/package/coinstac-vault-client

## Dependencies (12)

- [ws](https://npm.io/package/ws.md) ^7.5.4
- [axios](https://npm.io/package/axios.md) ^1.6.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [graphql](https://npm.io/package/graphql.md) ^15.5.0
- [winston](https://npm.io/package/winston.md) ^3.3.3
- [csv-reader](https://npm.io/package/csv-reader.md) ^1.0.7
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.0.6
- [@apollo/client](https://npm.io/package/@apollo/client.md) ^3.3.20
- [coinstac-client-core](https://npm.io/package/coinstac-client-core.md) ^6.9.8
- [coinstac-graphql-schema](https://npm.io/package/coinstac-graphql-schema.md) ^6.8.6
- [subscriptions-transport-ws](https://npm.io/package/subscriptions-transport-ws.md) ^0.11.0

## Recent versions

- 6.9.8 (latest) — 2025-05-29
- 6.9.7 — 2025-04-14
- 6.9.7-0 — 2025-04-08
- 6.9.6-0 — 2025-04-08
- 6.9.5-0 — 2025-04-08
- 6.9.3 — 2025-04-08
- 6.9.1 — 2025-01-14
- 6.8.17 — 2024-12-09
- 6.8.16 — 2024-10-10
- 6.8.15 — 2024-10-03
- 6.8.13 — 2024-08-28
- 6.8.12 — 2024-08-22
- 6.8.11 — 2024-08-13
- 6.8.10 — 2024-07-19
- 6.8.9 — 2024-06-06
- … 22 more at https://npm.io/package/coinstac-vault-client/versions

## README

# COINSTAC Headless Client

The headless client allows a static dataset(s) to be made available to the larger COINSTAC ecosystem, giving the ability for others to run pipelines using your data without it ever leaving your system

## Setup
### System Requirements
 * [a Nodejs LTS installation](https://nodejs.org/en/)
 * [Docker](https://docs.docker.com/engine/install/)

### Installation
 * to install `npm i -g coinstac-vault-client`
 * to run `coinstac-vault-client`

### Application Requirements
 * The headless client will need access to docker, best done by adding the user running the client to the `docker` group
 * read access to the filesystem where the data is kept
 * outgoing traffic on port `80` via the `MQTT` protocol, though the client will fallback to WS HTTP if unavailable
 * outgoing traffic for HTTPS on port `443`


How the headless client is run will be system dependent, we recommend Upstart for systems that have that
available

To run the client you'll need to set the following environment variables. These will either reference a self managed COINSTAC system, or the TReNDs system found [here](../coinstac-desktop-app/config/local-production.json).

If running in the TReNDs system, contact the TReNDs team for an application username, api key, and to setup computation specific whitelists and compspec locations.

```
HEADLESS_CLIENT_CONFIG - config file containing vaults id's and api keys
API_URL - URL address of the COINSTAC API
SUB_API_URL - URL address of the subscription COINSTAC API
COINSTAC_WORKING_DIRECTORY - working directory for pipeline operation

FILE_SERVER_HOSTNAME
FILE_SERVER_PATHNAME
FILE_SERVER_PORT
FILE_SERVER_PROTOCOL

MQTT_SERVER_HOSTNAME
MQTT_SERVER_PATHNAME
MQTT_SERVER_PORT
MQTT_SERVER_PROTOCOL

MQTT_WS_SERVER_HOSTNAME
MQTT_WS_SERVER_PATHNAME
MQTT_WS_SERVER_PORT
MQTT_WS_SERVER_PROTOCOL
COINSTAC_USE_NETWORK_DRIVE // option to allow cross volume mounting, use if your data is not on the same filesystem
```

Example for running locally
```
export HEADLESS_CLIENT_CONFIG="./test-conf.json"
export API_URL="http://localhost:3100"
export SUB_API_URL="ws://localhost:3100"

export FILE_SERVER_HOSTNAME=localhost
export FILE_SERVER_PATHNAME="/transfer"
export FILE_SERVER_PORT=3300
export FILE_SERVER_PROTOCOL="http:"

export MQTT_SERVER_HOSTNAME=localhost
export MQTT_SERVER_PATHNAME=""
export MQTT_SERVER_PORT=1883
export MQTT_SERVER_PROTOCOL="mqtt:"

export MQTT_WS_SERVER_HOSTNAME=localhost
export MQTT_WS_SERVER_PATHNAME=""
export MQTT_WS_SERVER_PORT=9001
export MQTT_WS_SERVER_PROTOCOL="ws:"
export COINSTAC_USE_NETWORK_DRIVE=true
```
A config file is needed for each site the headless client is server
```
[
  {
    "id":"8de09890908a0980e9",
    "name": "Vault 1",
    "apiKey": "098908d-d089-d980-09e8-908e098b9e"
  },
  {
    "id": "87ac879e878979ae98798",
    "name": "Vault 2",
    "apiKey": "3c3e33ec-a655-a5656-876a-765a7657a"
  },
]
```

---
_Source: https://npm.io/package/coinstac-vault-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
