Public
Edited
Jan 13, 2022
Importers
26 stars
Hello, PGLiteINSEE ParquetHello, apcachDruidJS workerHello, OrbitWord Tour: 40k words and their friendsHello, spectral.jsHello, petite-vueHello, @thi.ng/grid-iteratorsHello, thumbhashHello, SwissGLHello, QOI (and glitches)Hello, orbHello, cosmographHello, TabulatorUsing d3.blur with PlotMath.cbrtHello debounceColorcetHello, gliiHello, Open MeteoHello, PyWaveletsHello, typesenseHello, libgifHello, kmeans-engineHappy anniversary, Project Gutenberg!
Hello, fflate
Hello, ArchieML!Hello, d3-bboxCollideHello, jsgeoda!Hello, EDTF!Hello, protovis!Hello, placekeyHello, fuse.jsHello, Reorder.jsHello, shadow DOMjszipHello, procedural-glHello, qhullHello, genetic-jsDruidJSHello, Tippy.jsHello, paintWorkletBig πHello, AutoencoderHello, Shakespearean UUIDsHello, ccwt.jsHello, constrainautorHello, talismanHello, polygon-offsetHello p-queueHello async-poolHello rollup-plugin-asciiHello, algebra.jsHello, pixi.jsHello, d3-renderHello zip/unzipCumulative Wikipedia DonationsHTML <details>regl textureHello, npyjsHello protobufHello, pencil touchHello, LOESSHello html2canvaslegra mapscolor2cssHello, ecsy2D point distributionsHello, delatinThe gpu.js loopDijkstra’s shortest-path treeHello nojacko/Dijkstras-jsHello, tcort/dijkstrajsHello, lambdabaa/dijkstraHello, gpu.js v2Hello jsqrHello qrcodeHello SharedArrayBufferHello GamePad APIHello vtk.jsHello nd4jsHello BiofabricTravelling with a self-organizing mapHello glitchHello UMAP-jsHello pandemoniumHello iocaneHello JSON-editorHello d3-griddingHello mljs/knnWorkerHello lalolibImage to GPU.jsImage to blink.jsTissot's indicatrixVega projectionsHello WebCLGLUsing d3-inertia with observableVideo contouring 3ngraph: pagerank, louvain…Union-FindPerceptron (simple statistics)mljsHello h3-jsEmoji FlagsHello, poisson-disk-sampling
Insert cell
Insert cell
fflate = import("https://cdn.skypack.dev/fflate?min")
Insert cell
Insert cell
Insert cell
Insert cell
A = fetch(
CORS_PROXY +
"https://data.cquest.org/elections/RG2021/resultats-par-niveau-bv-t1-france-entiere-2021-06-22-11h36.csv.gz"
).then((d) => d.arrayBuffer())
Insert cell
A1 = d3
.dsvFormat(";")
.parse(fflate.strFromU8(fflate.decompressSync(new Uint8Array(A))))
Insert cell
Insert cell
B = fetch(CORS_PROXY + "https://visionscarto.net/obs/jszip-demo/data.zip")
.then((d) => d.arrayBuffer())
.then((buffer) => fflate.unzipSync(new Uint8Array(buffer)))
Insert cell
B1 = Object.fromEntries(
Object.entries(B).map(([key, buf]) => [
key,
d3.csvParse(fflate.strFromU8(buf), d3.autoType)
])
)
Insert cell
Insert cell
b = new Blob([
fflate.zipSync({
// Directories can be nested structures, as in an actual filesystem
dir1: {
nested: { "hello.txt": fflate.strToU8("Hello world!") }
}
})
])
Insert cell
DOM.download(b, "file.zip", "Download this file")
Insert cell
fflate.unzipSync(new Uint8Array(await b.arrayBuffer()))
Insert cell
import { CORS_PROXY } from "@fil/cors-proxy"
Insert cell
Insert cell
evaluate_compressed_size("aaaaaaaaaaaaaaaaaaaaaa")
Insert cell
function evaluate_compressed_size(text) {
if (typeof text !== "string") text = JSON.stringify(text);
return fflate.zipSync({ test: fflate.strToU8(text) }).length;
}
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more