← ClaudeAtlas

openui-forge-javalisted

OpenUI generative UI with a Java Spring Boot (WebFlux) backend. Streams the OpenAI API directly via WebClient as SSE.
OthmanAdi/openui-forge · ★ 22 · Web & Frontend · score 79
Install: claude install-skill OthmanAdi/openui-forge
# OpenUI Forge — Java Build generative UI apps with a React frontend + Java Spring Boot (WebFlux) backend. The backend forwards OpenAI's SSE stream to the browser via a reactive `WebClient` and a `Flux<String>` controller, pairing with `openAIAdapter()` on the frontend. ## Activation Triggers - "openui java", "openui spring", "openui spring boot backend" - "generative ui java", "java streaming ui backend", "webflux openui" ## Prerequisites - Node.js >= 22 (24 LTS recommended) + React >= 18.3.1 (19+ recommended) (frontend) - Java 21 LTS recommended (Spring Boot 4.x requires Java 17+; it builds against Java up to 26) - Maven 3.9+ (or Gradle 8+) - Spring Boot 4.0.x (current stable line; 4.1.x is the latest). Boot 3.5.x also works but reached end of OSS support on 2026-06-30. - `OPENAI_API_KEY` environment variable set ## Quick Start 1. Create the React frontend and install OpenUI deps: ```bash npm install @openuidev/react-ui @openuidev/react-headless @openuidev/react-lang lucide-react zod ``` 2. Generate the system prompt into the backend's resources: ```bash npx @openuidev/cli generate ./src/lib/library.ts --out backend/src/main/resources/system-prompt.txt ``` 3. Create the Spring Boot backend (see Full Code below) 4. Run: `mvn spring-boot:run` on `:8080`, frontend on `:3000` ## Full Code ### Backend: `backend/pom.xml` ```xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i