This is a quick lil' web app that's a proof of concept for rsdd + WebAssembly!
(if I keep working on this, expect better docs soon!)
Like most node projects, all you really need to do is:
$ npm install
$ npm run dev
Astro will spin up a nice lil' local server at http://localhost:3000/.
If you want to update rsdd
, you need to build it from source.
$ git clone git@github.com:pmall-neu/rsdd.git
$ cd rsdd
$ cargo build
$ wasm-pack build
The last command will generate a pkg
directory in rsdd
. Copy the contents of that directory into the top-level rsdd
folder here!
The generic frontend is pretty simple: React + TypeScript running on Astro (which uses Vite). The trickiest part was to get Vite/esbuild to play nicely with WASM, which required a few tries (and looking at tutorials).
vis.js is used for the diagrams and interactivity; Tailwind is my CSS framework.