Endive is a pure Java library that runs WebAssembly programs directly on the Java Virtual Machine without requiring any native code or external dependencies. Created by the Bytecode Alliance, it allows developers to safely execute WebAssembly modules anywhere Java runs—from servers to Android phones. Endive includes both a simple interpreter for easy testing and a faster compiler for production use, along with support for standard system interfaces like file access and networking. The project is thoroughly tested against official WebAssembly specifications and powers real-world Java libraries.
How It Works
You've heard about WebAssembly and want to run these programs inside your Java application, but traditional solutions require installing native code on your computer.
You discover Endive through the Bytecode Alliance, a trusted organization that maintains WebAssembly tools. Endive runs WebAssembly directly in Java without any native dependencies.
You include Endive in your Java project just like any other library, and it works everywhere Java works—including your phone with Android!
You point Endive to a WebAssembly file, and it reads and understands the program automatically, checking that it's safe to run.
Perfect for testing and debugging—everything runs safely and you can see exactly what's happening.
Your program runs faster for production use, while still keeping all the safety guarantees of Java.
Need your program to read files or talk to the network? Endive supports WASI, a standard way for WebAssembly to interact with your computer's operating system.
Your WebAssembly program runs inside the Java safety bubble, keeping your computer protected while delivering exactly what you need.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.