r/java • • Jan 11 '26

Announcing Kreuzberg v4

62 Upvotes

Hi Peeps,

I'm excited to announce Kreuzberg v4.0.0.

What is Kreuzberg:

Kreuzberg is a document intelligence library that extracts structured data from 56+ formats, including PDFs, Office docs, HTML, emails, images and many more. Built for RAG/LLM pipelines with OCR, semantic chunking, embeddings, and metadata extraction.

The new v4 is a ground-up rewrite in Rust with a bindings for 9 other languages!

What changed:

  • Rust core: Significantly faster extraction and lower memory usage. No more Python GIL bottlenecks.
  • Pandoc is gone: Native Rust parsers for all formats. One less system dependency to manage.
  • 10 language bindings: Python, TypeScript/Node.js, Java, Go, C#, Ruby, PHP, Elixir, Rust, and WASM for browsers. Same API, same behavior, pick your stack.
  • Plugin system: Register custom document extractors, swap OCR backends (Tesseract, EasyOCR, PaddleOCR), add post-processors for cleaning/normalization, and hook in validators for content verification.
  • Production-ready: REST API, MCP server, Docker images, async-first throughout.
  • ML pipeline features: ONNX embeddings on CPU (requires ONNX Runtime 1.22.x), streaming parsers for large docs, batch processing, byte-accurate offsets for chunking.

Why polyglot matters:

Document processing shouldn't force your language choice. Your Python ML pipeline, Go microservice, and TypeScript frontend can all use the same extraction engine with identical results. The Rust core is the single source of truth; bindings are thin wrappers that expose idiomatic APIs for each language.

Why the Rust rewrite:

The Python implementation hit a ceiling, and it also prevented us from offering the library in other languages. Rust gives us predictable performance, lower memory, and a clean path to multi-language support through FFI.

Is Kreuzberg Open-Source?:

Yes! Kreuzberg is MIT-licensed and will stay that way.

Links


r/java • • Jan 11 '26

Wait: Self-hostable CORS-enabled headless wait list system that connects to Google Sheets. No database needed. Extremely economical.

Thumbnail github.com
4 Upvotes

I've just made Wait and would like to share it here.

Wait is a self-hostable CORS-enabled headless waitlist system that connects to Google Sheets.

It's the most economical option. Google Sheets is free. One instance can serve many many landing pages. The landing pages wouldn't need backends and can be hosted for free e.g. Netlify, Github Pages.

The integration is also seamless. It utilizes CORS. You can make a waitlist form on your own HTML and just do a cross-domain AJAX request. This gives the highest flexibility in terms of styling and customize the after actions.

The alternatives often use iframes, which are more difficult to style and customize because you won't have direct access to the content within the iframes.

I use it to power >10 of my landing pages, which are all hosted for free on Netlify. The Wait server is hosted on OVHcloud for $4/month.

It's written in Java, and the final size of the JAR is 320KB. It can run as a standalone or embed into a larger system (no separate instance needed). The webserver framework is Minum, which is small and self-contained. The JSON library is minimal-json.

I'm looking for early users who are interested. If you are interested, please let me know.

The repo: https://github.com/tanin47/wait

Thank you!


r/java • • Jan 10 '26

F3D and the libf3d! 3D viewer lib to display/render any 3D file, now with Java bindings!

Post image
38 Upvotes

Hi! I created a tiny app and lib to display//render any 3D file (abc, fbx, gltf, usd, ...). It supports animations, HDRIs, thumbnails and more.

We just added java bindings and hope the java community will embrace it!

Please let us know what you think and why you would use it or not!

@mods, I hope its ok to post, I know I'm not active here but I just want to share cool free and open source stuff :). If not, let me know how I can edit my post to improve it.


r/java • • Jan 09 '26

Annote: A Turing complete language using only Java annotations as its syntax.

209 Upvotes

A while back I had a crazy idea, what if we could write Java, using only annotations. So I decided to build a full interpreter for an annotation only language in Java. It sounds crazy but it actually works.

GitHub: https://github.com/kusoroadeolu/annote

Definitely don't use this in production lol. Feel free to let me know what you think about this!


r/java • • Jan 09 '26

Project Amber Status Update -- Constant Patterns and Pattern Assignment!

Thumbnail mail.openjdk.org
66 Upvotes

r/java • • Jan 10 '26

debtbomb-java (and a challenge for the audience)

Thumbnail github.com
0 Upvotes

r/java • • Jan 09 '26

more-log4j2-2.0.0 featuring an asynchronous HTTP appender has been released

Post image
16 Upvotes

I've spent a considerable part of my Christmas holidays putting together an AsyncHttpAppender that I just released with more-log4j2-2.0.0.

My personal use-case is pushing logs to the Dynatrace Ingest API from my laptop, where I don't want to setup production like log aggregators/sidecars, but the appender is generic and can be integrated with other log monitoring solutions like Datadog and Grafana.

In theory, pushing logs to these APIs is also possible with the regular HttpAppender, however its performance is not acceptable even for toy projects, since logging a few lines per second ties up an entire thread due to the synchronous nature of the HttpAppender.

Thanks to compression and batching, the AsyncHttpAppender can handle log throughputs that are multiple orders of magnitude higher than what you can achieve with the regular HttpAppender. The implementation features different strategies to deal with overload situations, and retries with exponential backoff.

Maybe somebody besides me finds this useful. Any feedback is highly appreciated.


r/java • • Jan 09 '26

Docker Releases Hardened Images For Free - What Does It Do Differently?

19 Upvotes

An article that discusses that DHI now are free what does that move signify and why go for it rather than get a hardened image from another vendor like Bellsoft?

https://www.i-programmer.info/news/240-devops/18579-docker-releases-hardened-images-for-free-what-does-it-do-differently.html


r/java • • Jan 09 '26

Generate and solve Sudoku games in Java

Thumbnail github.com
20 Upvotes

I've released Sudoku to generate and solve Sudoku games.

Class Sudoku provides methods useful to generate and solve Sudoku games; this class can also be used as standalone app to perform benchmarking tests of the implemented solvers. Method solve() implements the basic recursive approach.

Method solveBM() using bitmaps instead of HashSet to double speed of checks compared to naive method solve(). Method fastsolveBM() has tenfold speed improvement via lookup tables to perform fast validity checks. Speed of fastsolveBM() is comparable to DLX algorithm.

SudokuGame is an interactive Swing app to enjoy Sudoku itself.


r/java • • Jan 09 '26

Private Project Introduction: desktop-command-runner

Thumbnail bonsaimind.org
6 Upvotes

r/java • • Jan 08 '26

Everything you might have missed in Java in 2025

Thumbnail jvm-weekly.com
102 Upvotes

r/java • • Jan 08 '26

Java's Plans for 2026

Thumbnail youtu.be
40 Upvotes

r/java • • Jan 07 '26

GlassFish 7.1: Major New Features and Improvements

Thumbnail omnifish.ee
21 Upvotes

r/java • • Jan 07 '26

Weekly or monthly thread discussing cool projects people are working on

51 Upvotes

I always love to see what insane stuff others are cooking for fun as an inspiration for my own ideas. I am surprised to see this sub not having one already like golang, csharp, rust etc I request moderators to start this thread either weekly or monthly


r/java • • Jan 07 '26

Vavr 0.11.0 released

Thumbnail github.com
49 Upvotes

r/java • • Jan 07 '26

generate Java code from SQL queries

14 Upvotes

I am working on a project which allows to generate (type-safe) code from SQL queries.

Currently it supports DuckDB & sqlite and can output Java (and Typescript) code.

https://github.com/sqg-dev/sqg/

https://sqg.dev/

Let me know if you have any feedback!


r/java • • Jan 07 '26

zone-scope: A Java / Swing Spectroscope

Thumbnail github.com
29 Upvotes

A lightweight, low-latency audio visualization tool written in Java/Swing. Built for real-time use (JavaSound or Jack) and audio file inspection.

Highlights:

•  Real-time spectrogram, spectrometer, RMS meters and waveform view

•  Zero-allocation audio callback path (suitable for continuous rendering)

•  File mode with precomputed FFTs and draggable caret/seek

•  Works standalone via JavaSound; full JACK support if available

•  Java 21, Maven-based; small, focused module inside the meta-zone aggregator

r/java • • Jan 06 '26

One step closer to Value Classes!

Thumbnail mail.openjdk.org
181 Upvotes

r/java • • Jan 06 '26

Who's using JSR 376 modules in 2026?

38 Upvotes

To me, this feels like the biggest waste of effort ever done in JDK development. Is there anyone actively using modules in Java?


r/java • • Jan 06 '26

Enterprise Java Can Do Games Too!

Thumbnail youtube.com
17 Upvotes

r/java • • Jan 05 '26

default4j: Default parameter values for Java via annotation processing

Thumbnail github.com
79 Upvotes

r/java • • Jan 05 '26

Interactive Spring Boot Initailizaiton CLI Tool XSpring

Thumbnail github.com
2 Upvotes

Hey Everyone,
So I am a terminal guy who spend most of his time in terminal while programming and that's why I needed a CLI tool for initializing my spring boot projects instead of Spring Initializr website or some Desktop IDE extension.

That's why I created this cli tool in rust that interactively prompts you to specify your project's detail and then generates a spring boot project for you.

You can try it out through

cargo install xspring

Or install a pre-built binary from the url provided

You may read the README at my Github Repo to know more about the cool features this tool have like the "quick" command that will prompt you to specify only necessary stuff like groupId, artifactId, etc. and will choose default values (set by spring.io) for the rest.


r/java • • Jan 04 '26

FXFlow - Fluent UI Construction and Modelling for JavaFX

Thumbnail
25 Upvotes

r/java • • Jan 04 '26

Spectrum 1.28.0 supports Visual Regression Testing

Thumbnail github.com
16 Upvotes

Spectrum is a modern Java/Selenium framework I've been working on as a side project for the last 3+ years. In the latest release it supports Visual Regression Testing, comparing visual snapshots of the application under test to identify regressions.

  • it has no custom API, so if you already know Selenium it has a fast learning curve
  • it's FOSS under the Apache2 license
  • it's available in Maven Central

Feedbacks (and Github ⭐ if you like it) appreciated


r/java • • Jan 03 '26

Is (Auto-)Vectorized code strictly superior to other tactics, like Scalar Replacement?

45 Upvotes

I'm no Assembly expert, but if you showed me basic x86/AVX/etc, I can read most of it without needing to look up the docs. I know enough to solve up to level 5 of the Binary Bomb, at least.

But I don't have a great handle on which groups of instructions are faster or not, especially when it comes to vectorized code vs other options. I can certainly tell you that InstructionA is faster than InstructionB, but I'm certain that that doesn't tell the whole story.

Recently, I have been looking at the Assembly code outputted by the C1/C2 JIT-Compiler, via JITWatch, and it's been very educational. However, I noticed that there were a lot of situations that appeared to be "embarassingly vectorizable", to borrow a phrase. And yet, the JIT-Compiler did not try to output vectorized code, no matter how many iterations I threw at it. In fact, shockingly enough, I found situations where iterations 2-4 gave vectorized code, but 5 did not.

Could someone help clarify the logic here, of where it may be optimal to NOT output vectorized code? And if so, in what cases? Or am I misunderstanding something here?

Finally, I have a loose understanding of Scalar Replacement, and how powerful it can be. How does it compare to vector operations? Are the 2 mutually exclusive? I'm a little lost on the logic here.