Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yskszk63/wasinodot
Graphviz on WASI.
https://github.com/yskszk63/wasinodot
graphviz wasi wasm
Last synced: about 2 months ago
JSON representation
Graphviz on WASI.
- Host: GitHub
- URL: https://github.com/yskszk63/wasinodot
- Owner: yskszk63
- License: mit
- Created: 2021-09-07T09:49:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T14:45:20.000Z (6 months ago)
- Last Synced: 2024-06-25T09:55:01.688Z (6 months ago)
- Topics: graphviz, wasi, wasm
- Language: TypeScript
- Homepage: wasinodot.vercel.app
- Size: 5.33 MB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wasinodot
[Graphviz](https://graphviz.org/) on WASI.
This is my experimental hobby project.
## Demo
![demo](assets/demo.gif)
## How to build
1. `paru -S wasi-sdk-bin` .. if needed.
2. `rustup target add wasm32-wasi`
3. `cargo install cargo-wasi`
4. `WASI_SDK_PATH=/opt/wasi-sdk cargo wasi build --release`
5. `ls target/wasm32-wasi/release/libwasinodot.wasm`## How to run
### cli
`echo 'graph { ok; }' | wasmtime target/wasm32-wasi/release/wasinodot.wasm`
### Browser
1. `cp target/wasm32-wasi/release/libwasinodot.wasm web/public/libwasinodot.wasm`
2. `cd web && npm ci && npm run dev`## License
[MIT](LICENSE)