https://github.com/xanthous-tech/dgraph-js-native
dGraph JS Native Client
https://github.com/xanthous-tech/dgraph-js-native
Last synced: about 1 year ago
JSON representation
dGraph JS Native Client
- Host: GitHub
- URL: https://github.com/xanthous-tech/dgraph-js-native
- Owner: xanthous-tech
- License: mit
- Created: 2020-05-06T15:37:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T22:32:20.000Z (over 3 years ago)
- Last Synced: 2025-04-09T05:34:22.196Z (about 1 year ago)
- Language: Rust
- Size: 696 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dgraph-js-native
dGraph JS Native Client
The motivation behind this client is to eliminate performance bottleneck between NodeJS gRPC related libraries and dGraph by wrapping a native gRPC client ([dgraph-tonic](https://github.com/selmeci/dgraph-tonic)) and using in NodeJS. Thanks to powerful tools like [neon](https://github.com/neon-bindings/neon) it is relatively painless.
# Installation
```
npm install dgraph-js-native --save
# or
yarn add dgraph-js-native
```
# Usage
I am trying to keep the API contract as close to `dgraph-js` as possible, currently there is a notable difference in the client initialization code, where I abstracted out the client stub initialization.
TODO: Example
# Benchmark
[Benchmark Test Repo](https://github.com/xanthous-tech/dgraph-js-native-benchmarks)
# Sponsor
[Treelab](https://treelab.com.cn)
# License
[MIT](./LICENSE)