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
- Host: GitHub
- URL: https://github.com/felixr/pikchr-wasm
- Owner: felixr
- Created: 2024-08-10T14:09:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-10T16:12:32.000Z (almost 2 years ago)
- Last Synced: 2025-08-30T16:54:29.361Z (9 months ago)
- Topics: pic, pikchr, wasm
- Language: JavaScript
- Homepage: https://felixr.github.io/pikchr-wasm/example.html
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
```