# @blocklet/js-sdk

> sdk for blocklet development, client only

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

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.17.12 |
| Published | 2026-04-22 |
| First published | 2024-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 108.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | blocklet |
| Maintainers | wangshijun, gxw |
| Keywords | blocklet, client, sdk |

## Links

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

## Dependencies (11)

- [ufo](https://npm.io/package/ufo.md) ^1.5.3
- [keyv](https://npm.io/package/keyv.md) ^5.5.5
- [axios](https://npm.io/package/axios.md) ^1.7.9
- [is-url](https://npm.io/package/is-url.md) ^1.2.4
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [js-cookie](https://npm.io/package/js-cookie.md) ^3.0.5
- [quick-lru](https://npm.io/package/quick-lru.md) ^7.0.0
- [keyv-browser](https://npm.io/package/keyv-browser.md) ^0.1.1
- [@blocklet/meta](https://npm.io/package/@blocklet/meta.md) 1.17.12
- [@abtnode/constant](https://npm.io/package/@abtnode/constant.md) 1.17.12
- [json-stable-stringify](https://npm.io/package/json-stable-stringify.md) ^1.0.1

## 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-20261020-042751-541e5c03 (beta) — 2026-10-20
- 1.16.29-next-680cf137 (next) — 2024-07-19
- 1.17.13-beta-20261019-135643-7047c876 — 2026-10-19
- 1.17.13-beta-20261019-111429-5cdb5af8 — 2026-10-19
- 1.17.13-beta-20261019-082907-fe71de61 — 2026-10-19
- 1.17.13-beta-20261019-070231-87338763 — 2026-10-19
- 1.17.13-beta-20261019-060220-4c251fcf — 2026-10-19
- 1.17.13-beta-20261019-013222-23d4b329 — 2026-10-19
- 1.17.13-beta-20261018-133339-4428feb0 — 2026-10-18
- 1.17.13-beta-20261018-131740-92d9b271 — 2026-10-18
- 1.17.13-beta-20261018-112055-27bdf21c — 2026-10-18
- 1.17.13-beta-20261018-074057-557246bf — 2026-10-18
- 1.17.13-beta-20261018-055715-2b3472bb — 2026-10-18
- 1.17.13-beta-20261018-053134-df4f1988 — 2026-10-18
- … 611 more at https://npm.io/package/@blocklet/js-sdk/versions

## README

# Blocklet Server

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)
[![docs](https://img.shields.io/badge/powered%20by-arcblock-green.svg)](https://developer.blocklet.io/docs)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

Blocklet Server is a comprehensive platform for deploying, managing, and running Blocklet applications. It provides a complete runtime environment with built-in authentication, routing, and lifecycle management.

## Table of Contents

- [Blocklet Server](#blocklet-server)
  - [Table of Contents](#table-of-contents)
  - [Quick Start](#quick-start)
    - [Using Docker (Recommended)](#using-docker-recommended)
    - [Using npm](#using-npm)
  - [System Requirements](#system-requirements)
    - [Supported Platforms](#supported-platforms)
  - [Installation](#installation)
    - [Docker](#docker)
    - [From Source](#from-source)
  - [Packages](#packages)
    - [Core Packages](#core-packages)
    - [Server Components](#server-components)
    - [Utilities](#utilities)
  - [Documentation](#documentation)
  - [Contributing](#contributing)
  - [Getting Help](#getting-help)
  - [License](#license)

## Quick Start

### Using Docker (Recommended)

```bash
docker pull arcblock/blocklet-server
docker run -d -p 80:80 -p 443:443 -v ~/blocklet-data:/data arcblock/blocklet-server
```

Then open http://localhost to access the Blocklet Server dashboard.

### Using npm

```bash
npm install -g @blocklet/cli
blocklet server start -a
```

## System Requirements

| Requirement | Minimum | Recommended |
|-------------|---------|-------------|
| Node.js | 22.x | 22.x or later |
| Memory | 2 GB | 4 GB or more |
| Disk Space | 10 GB | 50 GB or more |
| OS | Linux, macOS, Windows (Docker) | Linux (Ubuntu 20.04+) |

### Supported Platforms

- **Linux**: Ubuntu 18.04+, Debian 10+, CentOS 7+
- **macOS**: 10.15+
- **Windows**: Windows 10+ (via Docker or WSL2)

## Installation

### Docker

We provide Docker images from multiple registries:

```bash
# Docker Hub (default)
docker pull arcblock/blocklet-server

# GitHub Container Registry
docker pull ghcr.io/arcblock/blocklet-server:latest

# AWS ECR
docker pull public.ecr.aws/i0s0w0c9/blocklet-server:latest
```

Run with persistent data:

```bash
docker run -d \
  -p 80:80 \
  -p 443:443 \
  -v /path/to/your/data:/data \
  arcblock/blocklet-server
```

### From Source

Requirements: Node.js v22+, Bun v1.3.6+, lerna, nginx v1.18+

```bash
git clone https://github.com/ArcBlock/blocklet-server.git
cd blocklet-server

# First time only: install lerna and bun globally, then install deps
make init

# (Subsequent times: make dep is enough)

# Build the full server
make build

# Link the local CLI (use -sf to overwrite if already exists)
ln -sf $(pwd)/core/cli/bin/blocklet.js /usr/local/bin/bn

# Initialize and start in a new data directory
mkdir ~/my-blocklet-server && cd ~/my-blocklet-server
bn server init
bn server start
```

See [Development Guide](./docs/development/getting-started.md) for full details on production and development modes.

## Packages

This monorepo contains the following packages:

### Core Packages

| Package | Description |
|---------|-------------|
| [@blocklet/cli](https://www.npmjs.com/package/@blocklet/cli) | Command-line interface |
| [@blocklet/sdk](https://www.npmjs.com/package/@blocklet/sdk) | Node.js SDK for Blocklet development |
| [@blocklet/js-sdk](https://www.npmjs.com/package/@blocklet/js-sdk) | Browser SDK |

### Server Components

| Package | Description |
|---------|-------------|
| [@abtnode/core](https://www.npmjs.com/package/@abtnode/core) | Core server functionality |
| [@abtnode/webapp](https://www.npmjs.com/package/@abtnode/webapp) | Web dashboard |
| [@abtnode/auth](https://www.npmjs.com/package/@abtnode/auth) | Authentication system |
| [@abtnode/router-provider](https://www.npmjs.com/package/@abtnode/router-provider) | Request routing |

### Utilities

| Package | Description |
|---------|-------------|
| [@blocklet/logger](https://www.npmjs.com/package/@blocklet/logger) | Logging utilities |
| [@blocklet/store](https://www.npmjs.com/package/@blocklet/store) | State management |
| [@blocklet/meta](https://www.npmjs.com/package/@blocklet/meta) | Blocklet metadata |

[View all packages on npm →](https://www.npmjs.com/search?q=%40blocklet)

## Documentation

- [Getting Started](https://developer.blocklet.io/docs/quick-start)
- [Architecture Overview](./docs/architecture/overview.md)
- [API Reference](https://developer.blocklet.io/docs/reference)
- [Development Guide](./docs/development/getting-started.md)

## Security

- [Security Policy](SECURITY.md)

## Getting Help

- [Documentation](https://developer.blocklet.io/docs)
- [GitHub Issues](https://github.com/ArcBlock/blocklet-server/issues)
- [Community Forum](https://community.arcblock.io)

## License

Copyright 2018-2026 ArcBlock

Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for details.

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