npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mithril-client-wasm

v0.3.5

Published

Mithril client WASM

Downloads

3

Readme

Mithril-client-wasm cnpm License Discord

This is a work in progress 🛠

  • mithril-client-wasm defines all the tooling necessary to manipulate Mithril certified types available from a Mithril aggregator from a WASM compatible browser.

  • The different types of available data certified by Mithril are:

    • Snapshot: list and get.
    • Mithril stake distribution: list and get.
    • Cardano transactions: list & get snapshots, get proofs
    • Certificate: list, get, and chain validation.

Installation

  • Install a correctly configured Rust toolchain (latest stable version). You can follow the instructions provided here.

  • Install the WASM target:

rustup target add wasm32-unknown-unknown
  • Install Rust WASM Pack:
cargo install wasm-pack
  • Install clang:
sudo apt install clang
  • Install nodejs version 16.15+
sudo apt install nodejs
  • Install npm version 8.11+
sudo apt install npm

[!WARNING] If you have troubles building the BLST library, you will need to:

  • Install Emscripten
  • For macOS users, consider reading this guide to activate the emcc command
  • Use these environment variables to use this compiler (or prefix all following commands with them):
export CC=emcc
export AR=emar
  • Install the WASM emscripten target:
rustup target add wasm32-unknown-emscripten

Build Mithril client library in WASM

Go to the mithril-client-wasm directory:

cd mithril-client-wasm

Then you can build the WASM library:

make build

Run the Mithril client library in the browser

You will need to run the Mithril client library in a compatible browser:

| Browser | Minimum version | Released | Tested in CI | | --- |:---:|:---:|:---:| | Chrome | 54 | 2016-10-12 | :heavy_check_mark: | | Edge | 79 | 2020-01-15 | - | | Firefox | 38 | 2015-05-12 | :heavy_check_mark: | | Opera | 41 | 2016-10-25 | - | | Safari | 15.4 | 2022-03-14 | - | | Chrome Android | 54 | 2016-10-19 | - | | Firefox for Android | 38 | 2015-05-12 | - | | Opera Android | 41 | 2016-10-25 | - | | Safari on iOS | 15.4 | 2022-03-14 | - |

Go to the mithril-client-wasm directory:

cd mithril-client-wasm

Install the library:

make www-install

Then you can serve the Mithril client library in the browser:

make www-serve

Finally, open http://localhost:8080 with your browser. (port 8080 is the default port)