Blzjs
Javascript client library for Bluzelle Service
Install / Use
/learn @bluzelle/BlzjsREADME
<a href="https://bluzelle.com/"><img src='https://raw.githubusercontent.com/bluzelle/api/master/source/images/Bluzelle%20-%20Logo%20-%20Big%20-%20Colour.png' alt="Bluzelle" style="width: 100%"/></a>
blzjs is a Typescript/JavaScript library that can be used to access the Bluzelle database service.
Installation
yarn add bluzelle
or
npm install bluzelle
There are two versions of the bluzelle
library. bluzelle-node.js and bluzelle-js.js.
By default the NodeJS version will be used.
To use the NodeJS version
import { bluzelle } from 'bluzelle';
or
const { bluzelle } = require('bluzelle');
To use the pure JS version
import { bluzelle } from 'bluzelle/lib/bluzelle-js';
or
const { bluzelle } = require('bluzelle/lib/bluzelle-js');
To load additional Typescript definitions
import {bluzelle, API, BluzelleConfig} from 'bluzelle'
import {bluzelle, API, BluzelleConfig} from 'bluzelle/lib/bluzelle-js'
Quckstart
Javascript
const {bluzelle} = require('bluzelle');
const config = {
mnemonic: "apology antique such ancient spend narrow twin banner coral book iron summer west extend toddler walnut left genius exchange globe satisfy shield case rose",
endpoint: "http://testnet.public.bluzelle.com:1317",
uuid: Date.now().toString()
};
(async () => {
const bz = bluzelle(config);
await bz.create("somekey", "somevalue", {'gas_price': 10})
console.log(await bz.read("somekey"))
})();
Typescript
import {bluzelle, API, BluzelleConfig} from 'bluzelle';
const config: BluzelleConfig = {
mnemonic: "apology antique such ancient spend narrow twin banner coral book iron summer west extend toddler walnut left genius exchange globe satisfy shield case rose",
endpoint: "http://testnet.public.bluzelle.com:1317",
uuid: Date.now().toString()
};
(async () => {
const bz: API = bluzelle(config);
await bz.create("somekey", "somevalue", {'gas_price': 10})
console.log(await bz.read("somekey"))
})();
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
