Lucid TypeScript SDK
Lucid KV TypeScript wrapper 🍬 High performance and distributed KV store accessible through an HTTP API.
This packages uses isomorphic-fetch to make sure it works on both the browser and Node.js.
Install
yarn add lucid-ts-sdk
Usage
import { LucidAPI } from 'lucid-ts-sdk'
const setup = async () => {
const Lucid = new LucidAPI('http://127.0.0.1:7020/api', 'your-Lucid-authentication-JSON-Web-Token')
const version = await Lucid.init()
console.log(version)
const content = await Lucid.getKey('check-token').then(res => res.json())
console.log(content)
}
setup()
SDK API documentation
Lucid TypeScript SDK documentation
License
The MIT License