📚 Vanilla Libraries

Battle-tested code snippets you can actually understand

Why Vanilla Libraries?

Why depend on massive frameworks when you can copy and paste production-ready code that:

  • You fully control - Every line is yours to modify
  • Zero dependencies - No Maven coordinates to memorize
  • Actually readable - No framework magic or reflection gymnastics
  • Modern Java - Uses the latest Java features you’re already paying for
  • Stack trace friendly - Your IDE understands what’s happening

Each vanilla library is a single, self-contained code snippet that you drop into your project. No JARs, no versions, no transitive dependency hell.

Available Libraries

Vanilla Result

Treat errors as values instead of playing try/catch whack-a-mole. Railway-oriented programming without the framework baggage.

Replaces: Vavr Try/Either, Arrow-kt Result, throwing exceptions into the void

Vanilla Optional

Java's Optional, but with the methods that should have been there from the start.

Status: Coming soon (maybe)

Vanilla Validation

Accumulate validation errors without drowning in nested if statements.

Status: Coming soon (possibly)

Vanilla Async

CompletableFuture utilities that don't require a PhD to understand.

Status: Coming soon (perhaps)

Philosophy

Each Vanilla Library follows the Vanilla DI principles:

  1. Copy/paste friendly - Complete, self-contained implementations
  2. Modern Java first - Java 21+ features (records, sealed types, pattern matching)
  3. Zero magic - No reflection, no proxies, no surprises
  4. Production ready - Actually tested code, not just examples
  5. Framework optional - Works everywhere Java runs

Getting Started

  1. Browse the library you need
  2. Copy the code snippet
  3. Paste into your project
  4. Read 400 pages of documentation Start using it immediately

That’s it! No build configuration, no dependency management, no framework lock-in.


Made with ❤️ for Java developers who prefer understanding their code over configuring frameworks