Public
Edited
Oct 10, 2023
Insert cell
Insert cell
Lib = await import("https://esm.sh/@web3-storage/data-segment")
Insert cell
Insert cell
desiredPieceSize = 2 ** 27 // 128MiB
Insert cell
Insert cell
shardSize = Lib.Piece.PaddedSize.toUnpaddedSize(BigInt(desiredPieceSize))
Insert cell
MH = await import(
"https://esm.sh/fr32-sha2-256-trunc254-padded-binary-tree-multihash"
)
Insert cell
import { CAR, CBOR, Link } from "@gozala/ucanto"
Insert cell
CAR.codec.write({ blocks: [await CBOR.write({ hello: 1 })] })
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more