Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ocap/proto

Package Overview
Dependencies
Maintainers
0
Versions
449
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ocap/proto

Static modules generated from forge-sdk protobuf files

  • 1.18.143
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9K
decreased by-4.34%
Maintainers
0
Weekly downloads
 
Created
Source

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

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

Keywords

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc