saffron-db-ts-client 0.0.1-74d65a5
Install from the command line:
Learn more about npm packages
$ npm install @o1-labs/saffron-db-ts-client@0.0.1-74d65a5
Install via package.json:
"@o1-labs/saffron-db-ts-client": "0.0.1-74d65a5"
About this version
This directory contains the TypeScript client library for the saffron-db service. The goal is to match the capability of the rust version found in saffron-db-client.
Before building the client, ensure you have the necessary Rust WASM tools installed:
make install-rust-wasm-toolsThe TypeScript client now integrates WASM building directly into its build process. Simply run:
npm install
npm run buildThis will:
- Build the WASM bindings from the Rust code in the
wasmdirectory - Copy in the SRS from the srs-cache
- Build and output the WASM files to a
pkgdirectory - Compile the TypeScript code
You can also use the Makefile command which does the same:
make build-ts-clientOnce you have built the client (and assuming you are running the saffron-db service), you can run the TypeScript e2e tests via:
npm test
# or
make test-ts-clientNOTE: currently the ts client e2e tests attempt to pull in the SRS file from the srs-cache directory. If you do not have this, follow the instructions there to retrieve it.
Details
- saffron-db-ts-client
-
o1-labs
- about 1 year ago
- 9 dependencies
Assets
- saffron-db-ts-client-0.0.1-74d65a5.tgz
Download activity
- Total downloads 2
- Last 30 days 0
- Last week 0
- Today 0