<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/javascript-in-java-driving-dynamic-uis-with-graalvm-at-scale-arg9yzybi" -->

---
title: JavaScript in Java: Driving Dynamic UIs with GraalVM at...
description: Picnic Technologies shares how they replaced Handlebars templating with a JavaScript/TypeScript framework running inside their Java backend via GraalVM. The...
canonical: https://daily.dev/posts/javascript-in-java-driving-dynamic-uis-with-graalvm-at-scale-arg9yzybi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: JavaScript in Java: Driving Dynamic UIs with GraalVM at Scale | daily.dev
og:description: Picnic Technologies shares how they replaced Handlebars templating with a JavaScript/TypeScript framework running inside their Java backend via GraalVM. The...
og:url: https://daily.dev/posts/javascript-in-java-driving-dynamic-uis-with-graalvm-at-scale-arg9yzybi
og:image: https://api.daily.dev/og/posts/ArG9yzYBi.png
og:image:alt: JavaScript in Java: Driving Dynamic UIs with GraalVM at Scale
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript in Java: Driving Dynamic UIs with GraalVM at Scale

**[GraalVM Blog](https://daily.dev/sources/graalvm-blog)** · 15 min read · 0 upvotes · 0 comments

## Summary

Picnic Technologies shares how they replaced Handlebars templating with a JavaScript/TypeScript framework running inside their Java backend via GraalVM. The Server-Driven UI approach lets them deploy UI changes instantly without app store releases. Key engineering decisions include: running JavaScript in-process within the JVM using GraalVM's polyglot capabilities, building a context ObjectPool to avoid expensive context creation per request, designing a promise-based interoperability API for async Java-JavaScript calls (including Calcite SQL queries), using TypeScript and JSX transpiled to vanilla JS for developer experience, and storing bundles in Amazon EFS for resilience against GitHub outages.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/graalvm/javascript-in-java-driving-dynamic-uis-with-graalvm-at-scale-f552fb174df3>

## Similar posts on daily.dev

- [Run Java in the Browser with TeaVM](https://daily.dev/posts/run-java-in-the-browser-with-teavm-sgb2ikaxk) · Foojay.io · 1 upvotes · 0 comments
- [GraalJS 25.1: Modern JavaScript on GraalVM](https://daily.dev/posts/graaljs-25-1-modern-javascript-on-graalvm-be3ltskfy) · GraalVM Blog · 32 upvotes · 1 comments
- [Extending Vaadin’s pure Java experience to the browser](https://daily.dev/posts/extending-vaadin-s-pure-java-experience-to-the-browser-bahhr3po0) · Vaadin · 1 upvotes · 0 comments
- [Modern Frontend Complexity: essential or accidental?](https://daily.dev/posts/modern-frontend-complexity-essential-or-accidental--yrurnb4gq) · Lobsters · 2 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#java](https://daily.dev/tags/java)

[View this post on daily.dev](https://daily.dev/posts/javascript-in-java-driving-dynamic-uis-with-graalvm-at-scale-arg9yzybi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"JavaScript in Java: Driving Dynamic UIs with GraalVM at Scale","url":"https://daily.dev/posts/javascript-in-java-driving-dynamic-uis-with-graalvm-at-scale-arg9yzybi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/javascript-in-java-driving-dynamic-uis-with-graalvm-at-scale-arg9yzybi"},"datePublished":"2026-03-16T08:12:49.827Z","dateModified":"2026-03-16T08:43:52.832Z","description":"Picnic Technologies shares how they replaced Handlebars templating with a JavaScript/TypeScript framework running inside their Java backend via GraalVM. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/48cb21eacdf5fcf17072d6f4f92cc0d0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/48cb21eacdf5fcf17072d6f4f92cc0d0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"GraalVM Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"GraalVM Blog","logo":"https://media.daily.dev/image/upload/s--_41mLjjc--/f_auto,q_auto/v1773657235/logos/graalvm-blog?_a=BAMAMiiu0","url":"https://daily.dev/sources/graalvm-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/javascript-in-java-driving-dynamic-uis-with-graalvm-at-scale-arg9yzybi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,java","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"GraalVM Blog","item":"https://daily.dev/sources/graalvm-blog"},{"@type":"ListItem","position":3,"name":"JavaScript in Java: Driving Dynamic UIs with GraalVM at Scale"}]}
```

