npx skills add ejboy/agent-scripts --global --skill coilbase-development
SQL-first persistence
Write SQL in repositories and use Jdbi to bind parameters and map rows. Use plain SQL for the data access layer.
CoilBase is an open-source Java application foundation from PVR Labs. Built on Jdbi, it brings together repositories, service-owned transactions, constructor wiring, and lightweight HTTP integration.
Apache 2.0 · Java 17+ for Core · Java 21+ for Jex
The Spring PetClinic rewrite with CoilBase, Jex, and Jdbi used 59% less median application RSS and had an 85% smaller uncompressed deployment, including runtime libraries.
Write SQL in repositories and use Jdbi to bind parameters and map rows. Use plain SQL for the data access layer.
Let services set transaction boundaries for complete operations. Participating repositories can share the transaction when they use the same repository context and thread.
Compose ordinary Java classes with dependencies passed through constructors. Core works without a dependency injection container.
Start with the optional Avaje Jex module, or wire Core to Javalin or another HTTP host using its native APIs.
CoilBase fits SQL-first Java applications where you want to keep database operations, transaction boundaries, and dependencies visible. Consider it as a Spring Boot alternative when resource use on small servers matters and your team wants to choose its own HTTP and infrastructure dependencies.
CoilBase gives you a smaller foundation. Spring Boot offers broader integrations and automatic configuration, while CoilBase leaves more setup and lifecycle decisions to your application.
Explicit SQL, constructor wiring, and service-owned transactions give developers and coding agents a direct way to trace dependencies and review application behavior.
The experimental development skill guides agents through building or extending CoilBase applications. It covers repository and service conventions, HTTP routes, transaction boundaries, and application tests.
npx skills add ejboy/agent-scripts --global --skill coilbase-development
See the Agent Scripts skill installation guide for both migration commands. AI tooling is optional. CoilBase runs without an AI agent, AI service, or API key.
Use LangChain4j directly from ordinary CoilBase services and pass the model through the constructor. The recipe uses your existing CoilBase module and requires no Spring dependencies.
The recipe checks chat, structured output, and tool calling with a stand-in model. LangChain4j also documents RAG, conversation memory, and streaming.

A Spring PetClinic rewrite with 59% lower measured application RSS: explicit SQL, familiar architecture, and more work around forms.

Four Java stacks share a 512 MiB Debian VM with PostgreSQL. See how readiness, memory and sustained tail latency compare in Framework Benchmarks v1.

Shared services across Javalin, Jex and Micronaut, with Spring JDBC and Micronaut Data references: two HotSpot and native runs per stack on a 512 MiB VM.

An AI agent migrated Spring PetClinic persistence to SQL. All 17 packaged H2 checks passed, but independent code review found two repository bugs.
Avaje Jex is the recommended starting point for a new HTTP application. For Javalin and other hosts, see the HTTP integration guide.