From 3f00e84a78018c20798737cba5bd3827fba24ccc Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Thu, 14 Mar 2024 14:42:32 +0100 Subject: [PATCH] feat: Add web3storage example --- README.md | 1 + examples/web3storage/.codesandbox/tasks.json | 19 + examples/web3storage/README.md | 12 + examples/web3storage/package.json | 51 + examples/web3storage/rsbuild.config.ts | 7 + examples/web3storage/src/app.ts | 676 ++++++++++++ examples/web3storage/src/blockstore.ts | 137 +++ examples/web3storage/src/fs.ts | 178 ++++ examples/web3storage/src/index.html | 221 ++++ examples/web3storage/src/index.ts | 98 ++ examples/web3storage/src/tracker.ts | 81 ++ examples/web3storage/tsconfig.json | 27 + pnpm-lock.yaml | 1007 +++++++++++++++++- 13 files changed, 2493 insertions(+), 22 deletions(-) create mode 100644 examples/web3storage/.codesandbox/tasks.json create mode 100644 examples/web3storage/README.md create mode 100644 examples/web3storage/package.json create mode 100644 examples/web3storage/rsbuild.config.ts create mode 100644 examples/web3storage/src/app.ts create mode 100644 examples/web3storage/src/blockstore.ts create mode 100644 examples/web3storage/src/fs.ts create mode 100644 examples/web3storage/src/index.html create mode 100644 examples/web3storage/src/index.ts create mode 100644 examples/web3storage/src/tracker.ts create mode 100644 examples/web3storage/tsconfig.json diff --git a/README.md b/README.md index 81f2545..611f5cf 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ _More info in the [package readme](https://github.com/wnfs-wg/nest/tree/main/pac - [`audio`](https://github.com/wnfs-wg/nest/tree/main/examples/audio) - Shows how to play audio from a file system using an `