A lightweight database mapping library for the JVM

Weightless is the lowest barrier-to-entry database mapping library for the JVM. Weightless currently supports MongoDB.

Create Database Records

A great place to start with the Weightless library.

Press the green play button at the top of the Repl.it below to begin the first example.

Search for Database Records

Searching a database is extremely easy with Weightless because it conforms to the wrapper types you want to return (such as List or Iterator).

Update Database Records

Updating records is just as simple as you might expect.

Delete Database Records

Deleting database records is just as natual as finding them.

Weightless with a Webserver

This example shows how weightless can be used to serve data behind a simple Javalin webserver.


Install with maven: