# @ocap/proto

> Static modules generated from forge-sdk protobuf files

Latest version **1.30.24** (published 2026-05-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @ocap/proto
pnpm add @ocap/proto
yarn add @ocap/proto
bun add @ocap/proto
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.30.24 |
| Published | 2026-05-14 |
| First published | 2021-03-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wangshijun |
| Maintainers | wangshijun, polunzh, mave99a |
| Keywords | blockchain, arcblock, sdk, nodejs |

## Links

- npm: https://www.npmjs.com/package/@ocap/proto
- Repository: https://github.com/ArcBlock/blockchain.git#master
- Homepage: https://github.com/ArcBlock/blockchain/tree/master/core/proto
- Issues: https://github.com/ArcBlock/blockchain/issues
- npm.io page: https://npm.io/package/@ocap/proto

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ^4.4.3

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.30.24 (latest) — 2026-05-14
- 1.30.23 — 2026-05-13
- 1.30.22 — 2026-05-13
- 1.30.21 — 2026-05-12
- 1.30.20 — 2026-05-12
- 1.30.19 — 2026-05-12
- 1.30.18 — 2026-05-11
- 1.30.17 — 2026-05-11
- 1.30.16 — 2026-05-10
- 1.30.15 — 2026-05-08
- 1.30.14 — 2026-05-08
- 1.30.13 — 2026-05-08
- 1.30.12 — 2026-05-05
- 1.30.11 — 2026-05-03
- 1.30.10 — 2026-04-22
- … 599 more at https://npm.io/package/@ocap/proto/versions

## README

# Core Schema

Defines data structure for Blocklet Server backend API, and maintains schema for GQL endpoint.

## Development

### Install gun-sed

- Mac: brew install gnu-sed
- Other platform: https://www.gnu.org/software/sed/

### Install protobuf

- Mac: brew install protobuf
- Other platform: https://developers.google.com/protocol-buffers/docs/downloads

### Add to `~/.profile`

```
export GO111MODULE=on
export GOPROXY=https://goproxy.cn

export GOROOT=/usr/local/Cellar/go/1.15.5/libexec // you local go path
export GOPATH=$HOME/.golang
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT:$GOPATH:$GOBIN
PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
```

source ~/.profile

### Install other dependencies

Run `make init`

> If there is a network problem, try to change golang registry by https://goproxy.cn/

### Build Schema

Run `make build`

## How To Update Schema

### 1. update core/schema proto

After update the schema proto, run `make build` get the latest schema.

### 2. go to core/gql start a demo endpoint

just run：

```
node demo.js
```

> should make sure the DB Proxy is running

### 3. go to core/client do finally update

just run:

```
npm run upgrade
```

### 4. finish the update

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