[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116955":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":10,"trendingCount":14,"starSnapshotCount":14,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},116955,"coilbase","PVRLabs\u002Fcoilbase","PVRLabs","Lightweight Java application framework with Spring Boot-inspired simplicity, explicit SQL, and no heavyweight runtime.","",null,"Java",103,1,0,47,35,0.9,"Apache License 2.0",false,"main",true,[23,5,24,25,26,27,28,29],"avaje","java","jdbc","jdbi","jex","spring-boot","transactions","2026-11-25 02:05:52","\u003Cimg src=\"docs\u002Fassets\u002Fcoilbase-monochrome.svg\" alt=\"CoilBase\" width=\"550\">\n\n**Spring-like comfort, without the weight.**\n\n## Why CoilBase?\n\nCoilBase is a lightweight foundation for maintainable Java applications. It brings\nfamiliar repository and service organization, explicit transaction boundaries,\nand constructor wiring to applications that do not need a large framework runtime.\nYou keep SQL, business logic and resource ownership visible.\n\nThe application structure is familiar to Spring Boot developers: repositories\nfor data access, services for business logic, and MVC-style controller → service →\nrepository organization. Controllers and routes use the HTTP framework's native APIs.\n\nJdbi handles persistence; CoilBase adds repository conveniences, SQL dialect\noverrides and explicit rollback-only marking. Core is independent of HTTP frameworks\nand DI containers, so repositories, services, SQL and business logic can be reused\nacross hosts with adaptation at the framework boundary. Optional Avaje Jex integration\nsupplies HTTP startup, JSON and error-handling conveniences without hiding native\nJex APIs. Jex is the recommended starting point because its integration is straightforward;\nfor Jex applications, start with annotated\nAvaje HTTP controllers with generated routing adapters registered explicitly.\nNative Jex routes remain available for custom endpoints.\n\nExperiments have used Avaje Jex, Javalin and Micronaut. Read about\n[framework integrations and portability](docs\u002Fframework-integrations.md).\n\nComing from Spring Boot? See [CoilBase vs Spring Boot](docs\u002Fcomparison-with-spring-boot.md)\nfor architectural trade-offs, and the [Spring Boot migration guide](docs\u002Fspring-boot-migration.md)\nfor practical migration steps.\n\n### Lightweight runtime\n\nCoilBase is designed for resource-constrained Java deployments. In exploratory\nexperiments on 512 MiB local VMs, complete CoilBase applications had these median\napplication RSS measurements across two workload runs:\n\n- **33–51 MiB** with Avaje Jex and GraalVM Native Image.\n- **58–59 MiB** with Javalin and GraalVM Native Image.\n- **116 MiB** with Avaje Jex on HotSpot JDK 27.\n\nThese are workload medians, not framework overhead or guaranteed memory requirements.\nResults depend on the application, runtime configuration and deployment. See the\n[runtime comparisons](docs\u002Fbenchmarks.md) for methodology, other frameworks and limitations.\n\n## A small example\n\nGiven an application-configured `DataSource` and an existing greetings table,\nCore keeps SQL and transaction boundaries explicit:\n\n```java\nimport pvrlabs.coilbase.RepositoryContext;\n\nvar db = RepositoryContext.create(dataSource);\n\ndb.transactional(() -> {\n    db.update(\"INSERT INTO greetings(message) VALUES (:message)\", update -> update\n        .bind(\"message\", \"Hello, CoilBase!\").execute());\n});\n\nvar messages = db.query(\"SELECT message FROM greetings\",\n    query -> query.mapTo(String.class).list());\nSystem.out.println(messages);\n```\n\n[Get started with a runnable HTTP application →](docs\u002Fgetting-started.md)\nThe example uses HikariCP with H2; no Docker or external database is needed.\n\n## Reference application\n\n[CoilBase PetClinic](https:\u002F\u002Fgithub.com\u002Fejboy\u002Fcoilbase-petclinic) is a complete\nreference application based on Spring PetClinic. Its migration guide explains\none approach to replacing JPA with explicit SQL and service-owned transactions.\nFor a smaller starting point, see [Hello CoilBase](examples\u002Fhello-coilbase).\n\n## Installation\n\nPreview artifacts are hosted in the public PVR Labs Maven repository on GitHub,\nnot Maven Central.\nSee [repository options](docs\u002Fdeployment.md#maven-repository-access) for restricted environments.\n\nAdd the PVR Labs Maven repository to your project's `pom.xml`:\n\n```xml\n\u003C!-- PVR Labs Maven repository for CoilBase releases: https:\u002F\u002Fgithub.com\u002FPVRLabs\u002Fmaven-repo -->\n\u003Crepositories>\n  \u003Crepository>\n    \u003Cid>pvrlabs\u003C\u002Fid>\n    \u003Curl>https:\u002F\u002Fpvrlabs.github.io\u002Fmaven\u002F\u003C\u002Furl>\n  \u003C\u002Frepository>\n\u003C\u002Frepositories>\n```\n\nThen add Core (Java 17+) to your dependencies:\n\n```xml\n\u003Cdependency>\n  \u003CgroupId>xyz.pvrlabs\u003C\u002FgroupId>\n  \u003CartifactId>coilbase-core\u003C\u002FartifactId>\n  \u003Cversion>0.1.0-preview5\u003C\u002Fversion>\n\u003C\u002Fdependency>\n```\n\nFor Gradle, add the same repository and dependency to your build script, e.g.\nin `build.gradle.kts`:\n\n```kotlin\nrepositories {\n    maven { url = uri(\"https:\u002F\u002Fpvrlabs.github.io\u002Fmaven\u002F\") }\n}\n\ndependencies {\n    implementation(\"xyz.pvrlabs:coilbase-core:0.1.0-preview5\")\n}\n```\n\nFor the optional Jex integration (Java 21+), use `xyz.pvrlabs:coilbase-jex:0.1.0-preview5`\ninstead; it includes Core. This is a preview, and APIs may change.\nApplications supply their own JDBC driver, datasource or pool, and row mappers.\nSee [Database Configuration](docs\u002Fdatabase-configuration.md) for H2, PostgreSQL\nwith HikariCP, schema scripts and datasource ownership.\n\nSee [Application configuration](docs\u002Fapplication-configuration.md) for work-in-progress\nguidance on plain Java configuration and testability.\n\n## Modules\n\n| Artifact (group `xyz.pvrlabs`) | Runtime | Contents |\n| --- | --- | --- |\n| `coilbase-core` | Java 17+ | `pvrlabs.coilbase`: repositories, transactions, SQL selection and optional health\u002Fmetrics helpers |\n| `coilbase-jex` | Java 21+ | `pvrlabs.coilbase.jex`: `CoilBaseJexApplication` and `JexErrors` |\n\nCore depends on Jdbi, with no Jex, Jackson, Avaje HTTP, DI container or annotation\nprocessing requirement. The Jex module intentionally brings Jex and Jackson as\nregular transitive dependencies, including Java time support for default ISO-8601 JSON.\n\n## Practical guidance\n\n- **Transactions:** `transactional` defines a synchronous boundary on one datasource.\n  Nested managed callbacks join on the same thread and Jdbi instance, without an\n  independent commit or savepoint. Escaping exceptions roll back; caught failures\n  need `markRollbackOnly()` if the transaction must not commit. Configure the context\n  before opening handles. Custom\u002Fretrying\u002Fcontainer transaction handlers,\n  cross-thread propagation and distributed transactions are unsupported.\n- **Resources:** consume query results inside callbacks. Do not return handles or\n  lazy results that outlive them; close streams and batches explicitly. Applications\n  configure datasources. The optional Jex application base closes an `AutoCloseable`\n  primary datasource on shutdown\u002Fstartup failure; otherwise the application handles cleanup;\n  see [Database Configuration](docs\u002Fdatabase-configuration.md) for ownership details.\n- **Errors:** the Jex base installs safe JSON error handling before calling\n  `configureErrorHandling()`. Register typed mappings such as\n  `mapError(InvalidNameException.class, 400)`; specific types take\n  precedence over mapped superclasses. See [Getting Started](docs\u002Fgetting-started.md).\n- **SQL:** `SqlStatement` selects immutable overrides by configured dialect; it does\n  not detect databases or rewrite SQL. A dialect name is not a compatibility guarantee.\n  `db.executeScript(sql)` and `db.executeScriptResource(\"\u002Fscript.sql\")`\n  explicitly run scripts through Jdbi, without introducing a transaction or migration tracking.\n- **Examples and tests:** the [records example](coilbase-core\u002Fsrc\u002Ftest\u002Fjava\u002Fpvrlabs\u002Fcoilbase\u002Fexample\u002Frecords)\n  demonstrates a service coordinating two repositories. The runnable\n  [Hello CoilBase example](examples\u002Fhello-coilbase) is a separate Maven project;\n  these examples are excluded from library binary and source JARs. Run `mvn clean verify` for the H2-backed\n  persistence tests and Jex HTTP tests; these do not certify every database dialect.\n  Fast integration tests run routinely. Tag heavyweight JUnit tests with `@Tag(\"slow\")`;\n  run `mvn -Pslow-tests verify` to include them along with the normal tests. CI runs\n  this profile in a separate job.\n\nCoilBase has a deliberately narrow scope: it is not a DI container, an ORM,\nor an abstraction over every Java HTTP framework. There is no automatic migration.\nServices and repositories\ncan remain independent of the HTTP host; routes, controllers and bootstrap use that\nhost's native APIs. Plain Jdbi remains a good choice when these conventions add no value.\n\nFor standalone consumer and parent-POM resolution checks, see\n[consumer verification](verification\u002FREADME.md). Maven distribution includes the\nparent POM and both modules; applications depend only on the modules they need.\n\n## Monitoring\n\nOptional [StatLite monitoring](docs\u002Fstatlite-monitoring.md) provides HTTP and JVM\nmetrics, plus automatic primary database health for Jex applications.\n\n## Development\n\nSee [Development Principles](docs\u002Fdevelopment-principles.md) for the architectural\nand engineering guidance for contributors.\n\nLicensed under [Apache-2.0](LICENSE). Dependencies retain their respective licenses.\n",2,"2026-11-24 04:54:41","CREATED_QUERY"]