2 releases

0.1.1 Apr 19, 2024
0.1.0 Jan 17, 2024

#2611 in Magic Beans

Download history 5/week @ 2024-01-15 8/week @ 2024-02-19 19/week @ 2024-02-26 2/week @ 2024-03-11 18/week @ 2024-04-01 134/week @ 2024-04-15

152 downloads per month

Apache-2.0

165KB
3.5K SLoC

Lumina node wasm

A compatibility layer for the Lumina node to work within a browser environment and be operable with javascript.

import init, { Node, NodeConfig, Network } from "/wasm/lumina_node_wasm.js";

await init();

const config = NodeConfig.default(Network.Mainnet);
const node = await new Node(config);

await node.wait_connected();
await node.request_head_header();

Dependencies

~0–40MB
~622K SLoC