# @blocklet/server-js

> graphql client to read/write data on abt node

Latest version **1.17.12** (published 2026-04-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @blocklet/server-js
pnpm add @blocklet/server-js
yarn add @blocklet/server-js
bun add @blocklet/server-js
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.17.12 |
| Published | 2026-04-22 |
| First published | 2025-08-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | wangshijun |
| Maintainers | wangshijun, gxw |
| Keywords | graphql, client, arcblock |

## Links

- npm: https://www.npmjs.com/package/@blocklet/server-js
- Repository: https://github.com/ArcBlock/blocklet-server
- Homepage: https://www.arcblock.io/docs/blocklet-server-js
- Issues: https://github.com/ArcBlock/blocklet-server/issues
- npm.io page: https://npm.io/package/@blocklet/server-js

## Dependencies (12)

- [axios](https://npm.io/package/axios.md) ^1.7.9
- [dayjs](https://npm.io/package/dayjs.md) ^1.11.13
- [debug](https://npm.io/package/debug.md) ^4.4.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [core-js](https://npm.io/package/core-js.md) ^3.25.5
- [graphql](https://npm.io/package/graphql.md) 16.8.1
- [@ocap/util](https://npm.io/package/@ocap/util.md) 1.29.27
- [blueimp-md5](https://npm.io/package/blueimp-md5.md) ^2.19.0
- [@ocap/wallet](https://npm.io/package/@ocap/wallet.md) 1.29.27
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^4.0.7
- [@arcblock/sdk-util](https://npm.io/package/@arcblock/sdk-util.md) 0.36.3
- [react-app-polyfill](https://npm.io/package/react-app-polyfill.md) ^1.0.6

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.17.12 (latest) — 2026-04-22
- 1.17.13-beta-20260613-094425-b81920c8 (beta) — 2026-06-13
- 1.17.13-beta-20260512-042419-7b556a38 — 2026-05-12
- 1.17.13-beta-20260512-004004-69bacba8 — 2026-05-12
- 1.17.12-beta-20260422-093007-b389a838 — 2026-04-22
- 1.17.12-beta-20260422-090318-b389a838 — 2026-04-22
- 1.17.12-beta-20260422-080315-acb4f448 — 2026-04-22
- 1.17.12-beta-20260422-075550-7bd6bb1a — 2026-04-22
- 1.17.12-beta-20260422-010020-a0ced20c — 2026-04-22
- 1.17.12-beta-20260422-003844-3e4843bf — 2026-04-22
- 1.17.12-beta-20260422-003256-4dcff725 — 2026-04-22
- 1.17.12-beta-20260420-082539-2b9be931 — 2026-04-20
- 1.17.12-beta-20260420-075606-d7d7a9c7 — 2026-04-20
- 1.17.12-beta-20260420-072401-57af6185 — 2026-04-20
- 1.17.12-beta-20260420-061403-d7b5c4e6 — 2026-04-20
- … 185 more at https://npm.io/package/@blocklet/server-js/versions

## README

# ABT Node Client

Client library to connect webapp to Abt Node Daemon

## Table of Contents

- [Development](#development)
- [Install](#install)
- [Usage](#usage)
- [Debugging](#debugging)
- [Documentation](#documentation)

## Development

upgrade code: you need two shells

1. start demo server

```shell
cd ../gql
node demo.js
```

2. upgrade code

```shell
npm run upgrade
```

## Install

```shell
npm i @blocklet/server-js -S
# OR
yarn add @blocklet/server-js
```

## Usage

```js
const AbtNodeClient = require('@blocklet/server-js');

const client = new AbtNodeClient('http://localhost:3030/api/gql');
console.log({
  queries: client.getQueries(),
  subscriptions: client.getSubscriptions(),
  mutations: client.getMutations(),
});

client.listBlocklets().then(console.log);
```

## Debugging

- If you are in Node.js: `DEBUG=@blocklet/server-js node script.js`
- If you are in Browser: `localStorage.setItem('DEBUG', '@blocklet/server-js')`

## Documentation

Query arguments and response structure can be found: [QUERIES.md](./docs/QUERIES.md)

---
_Source: https://npm.io/package/@blocklet/server-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
