Skip to content

Reduct Storage Client SDK for JavaScript

GitHub release (latest SemVer) npm GitHub Workflow Status

Asynchronous HTTP client for Reduct Storage written in TypeScript.


  • Promise based
  • Support Reduct Storage API v1.1
  • Token authentication

Getting Started

Read here, how to run Reduct Storage. Then install the package:

npm i reduct-js

And run this example:

const {Client} = require("../lib/cjs/index.js");

const client = new Client("");

const main = async () => {
    const bucket = await client.getOrCreateBucket("bucket");

    const timestamp = * 1000;
    let record = await bucket.beginWrite("entry-1", timestamp);
    await record.write("Hello, World!");

    record = await bucket.beginRead("entry-1", timestamp);

    .then(() => console.log("done"))
    .catch((err) => console.error("oops: ", err));