mattxwang / indecision

visualized decision diagrams

Home Page:https://inddecision.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

indecision / in(dd)ecision

Netlify Status

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!)

dev setup

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/.

rebuilding rsdd

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!

stack

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.

About

visualized decision diagrams

https://inddecision.netlify.app/

License:MIT License


Languages

Language:TypeScript 40.0%Language:JavaScript 33.8%Language:Astro 26.2%