Let's see how we can use the GraalVM Polyglot API to create a Java API on top of the chroma JavaScript library.
GraalVM JavaScript Java