Skip to content

linksplatform/doublets-web

Repository files navigation

doublets-web

CI/CD Pipeline npm package GitHub Release License

WebAssembly bindings for the LinksPlatform doublets associative storage library.

Installation

npm install doublets-web

Usage

import { Link, LinksConstants, UnitedLinks } from "doublets-web";

const constants = new LinksConstants();
const links = new UnitedLinks(constants);

const link = links.create();
links.update(link, link, link);

const any = links.constants.any;
const count = links.count(new Link(any, link, link));

console.log(`Stored links: ${count}`);

Development

This package is built with stable Rust and wasm-pack.

rustup target add wasm32-unknown-unknown
cargo check --locked --tests --all-features
cargo clippy --locked --tests --all-features -- -D warnings
wasm-pack build --release --target bundler --out-dir pkg
wasm-pack test --node

Publishing

The release workflow publishes the generated pkg package to npm from .github/workflows/release.yml using npm trusted publishing.

The npm package trusted publisher should be configured with:

  • Organization/user: linksplatform
  • Repository: doublets-web
  • Workflow filename: release.yml

The workflow uses GitHub Actions OIDC (id-token: write) and npm publish from the generated package directory. npm trusted publishing automatically adds provenance for supported public packages.

License

Released into the public domain under The Unlicense.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors