An open API service indexing awesome lists of open source software.

https://github.com/felixr/pikchr-wasm

Pikchr compiled to WASM
https://github.com/felixr/pikchr-wasm

pic pikchr wasm

Last synced: 4 months ago
JSON representation

Pikchr compiled to WASM

Awesome Lists containing this project

README

          

# Pikchr WASM

> Pikchr (pronounced "picture") is a PIC-like markup language for diagrams in technical documentation. https://pikchr.org/

This repo provides an example on how to compile Pikchr to WASM and use it in the browser.

In this repo:

* `Makefile` to download `pikchr.c` and use Emscripten (https://emscripten.org) to compile it to WASM
* `pikchr.js` the WASM module
* `pikchr.mjs` same as above but as ES6 module
* `example.html` see https://felixr.github.io/pikchr-wasm/example.html

## Licence

As the Pikchr source (https://pikchr.org/home/file?name=pikchr.c), the contents of the repo are released under the 0-clause BSD license:

```
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```