Skip to content

extism/chicory-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chicory SDK

This is an experimental Java SDK using the JVM-native Chicory runtime. This library and the runtime are still very experimental, however, there should be enough there to complete a full Extism SDK. If anyone would like to work on it feel free to reach out to @bhelx on the Extism Discord.

Note: If you are interested in a solid and working Java SDK, see our Extism Java SDK. But if you have a need for pure Java solution, please reach out!

Example

        var manifest =
        Manifest.ofWasms(
                ManifestWasm.fromUrl(
                                "https://github.com/extism/plugins/releases/download/v1.1.0/greet.wasm")
                        .build()).build();
var plugin = Plugin.Builder.ofManifest(manifest).build();
var input = "Benjamin";
var result = new String(plugin.call("greet", input.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8);
assertEquals("Hello, Benjamin!", result);

About

Experimental Java SDK based on the Chicory Runtime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published