Displaying streaming markdown in Java and React UIs with Spring AI

Displaying streaming markdown in Java and React UIs with Spring AI

Tools like Spring AI make it easy to call LLMs from Java. However, interacting with LLMs has created a new challenge when building UIs: How do we stream the generated Markdown content to the UI and render it efficiently? In this blog post, I'll show you how you can display live-updating markdown ...
Common pitfalls in Java development: Using Java classes for cleaner code

The fear of classes is real—Here’s how to beat it in Java

“Java is a high-level, class-based, object-oriented programming language” - Wikipedia. I get to see and read a lot of Java code at work. Sometimes, I even get to write some.🥳 Recently, I have noticed a tendency that we Java developers are, for some (wrong?) reason, afraid of classes. A class is a ...
Take your UI designs from Figma to Java code with Vaadin Copilot

From Figma design to Java code with Vaadin Copilot

UI design and implementation often feel like two distant planets in separate solar systems. However, with the release of Vaadin Copilot and its powerful Figma Import feature, transforming Figma designs into code has never been easier. When tasked with creating a “User Profile Page” for a small web ...

More CRUD with less LOC: Simplifying data management with Vaadin’s AutoCrud

With AutoCrud, Vaadin has a powerful React component that simplifies creating a full CRUD for a Java entity in just a few steps. The acronym CRUD stands for Create, Read, Update, and Delete database operations—basic functions for editing data in a form. The AutoCrud component provides the following ...
Mastering internationalization in Vaadin: A step-by-step guide

Mastering internationalization in Vaadin: A step-by-step guide

Building applications for a global audience requires more than just translating text. It's about creating a user experience that feels native for users in different regions, regardless of their language or cultural background. This is where internationalization (i18n) and localization (l10n) come ...
How to publish Java libraries to Maven Central using your GitHub account

How to publish Java libraries to Maven Central using your GitHub account

The Central Repository, often referred also as Maven Central or simply Central, is the primary repository for publicly shared JVM libraries, independent of the actual build tool. For example, since JCenter was closed, you are most likely using Maven Central, even if you wouldn’t be using Maven. ...
How to display Java objects in the UI

Three quick ways to display your Java objects in the UI

As a developer, there often comes a time when you need to quickly display your data structures in a human-readable format on the screen. During development, debuggers often provide a nice tree-like view of your data objects, which helps visualize the structure. Building something similar manually ...
integrating Lottie animations into a Java web app

Integrating Lottie web animations for better UX in Java apps

When building useful applications, things like animations are typically the last thing to think about. They all seem like extra work away from solving the “real problem.” Yet, we all know that they enhance the user experience by making interactions smoother and more intuitive. I’ve always been ...

Calling ChatGPT and OpenAI APIs in Spring Boot with Java

This article will guide you on integrating OpenAI APIs, such as ChatGPT, in your Spring Boot application. We will cover moderation, embedding, and chat completion requests. It is a part of our Building an AI chatbot in Java series. Prerequisites This tutorial assumes you already have a Spring Boot ...