Skip to content

webassembly wrapper #604

@coliveir-aer

Description

@coliveir-aer

Not really an issue, but I wasn't sure who to reach out to. I have been working on a hobby project over the past week to try to wrap the g2clib and compile it as a webassembly module and now have it working to be able to run directly in the browser and called via JavaScript. Thought you all might be interested, since it allows some interesting new uses of the library and allows running it directly inside the browser on mobile devices, etc.

The actual wrapping consists of just a small C program, a CMakeLists.txt and a build script.

Wrapper source code:
https://github.com/coliveir-aer/g2c-wasm/tree/master/work/g2c-wasm

The repo contains a bunch of environment setup stuff and a few example websites with one being deployed to demo how this can read snippets of grib2 files from the GFS open data S3 bucket.

Example Site:
https://coliveir-aer.github.io/g2c-wasm/

Cheers,
Craig

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions