Skip to content

Blog / Example of how to compile DataFusion to WASM #13715

Open

Description

@alamb

Is your feature request related to a problem or challenge?

It may not be clear that DataFusion can be compiled to WASM (and thus run in a browser), but it can be thanks to the work from @jonmmease @waynexia and others,

Check out this cool example from @XiangpengHao: https://parquet-viewer.haoxp.xyz/
Code here: https://github.com/XiangpengHao/parquet-viewer/tree/main

Describe the solution you'd like

I would like a blog (or well documented example) describing how to compile DataFusion as WASM and run it in the browser.

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. XiangpengHao commented on Dec 10, 2024

    @XiangpengHao
    Contributor

    I plan to write something about compiling datafusion to wasm as well. It mostly works, but does need some tuning and adjustments for different purposes.

  2. waynexia commented on Dec 19, 2024

    @waynexia
    Member

    Cross reference datafusion-contrib/datafusion-wasm-bindings#2. The binding itself should be a good example (but not yet). I'll try to update it against the latest upstream and write some dev-guide.

  3. waynexia commented on Feb 25, 2025

    @waynexia
    Member

    There is a developer guide for building, debugging, and publishing the WASM bindings: https://github.com/datafusion-contrib/datafusion-wasm-bindings/blob/main/CONTRIBUTING.md (forget to link 🙈)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions