Published
Edited
Feb 18, 2020
5 stars
Insert cell
Insert cell
// "https://bundle.run/protobufjs"
protobuf = require(await FileAttachment("protobufjs-6.8.8.js").url())
Insert cell
message = ({
hello: "Dolly"
})
Insert cell
// write
buffer = protobuf.Writer.create()
.string(JSON.stringify(message))
.finish()
Insert cell
// read
JSON.parse(protobuf.Reader.create(buffer).string())
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