* feat(pdf): integrate PDFium4j for PDF processing and metadata extraction
* feat(pdf): update PDFium4j to version 0.12.0 and optimize XMP metadata handling
* feat(pdf): update PDFium4j to version 0.13.0
* feat(pdf): enhance cross-compilation support and improve XML parsing in metadata extraction
* Delete dev.local-libs.docker-compose.yml
* feat(pdf): update PDFium4j to version 0.14.0
* Squashed commit of the following:
commit e799d02a1b3557fcbe9c67bd276ced9ddc783e83
Author: Nam Le <namle888029@gmail.com>
Date: Wed Apr 1 18:47:08 2026 +0700
should be done
commit d232c4d48bd97dbc7d8d800cdb3d18e85a73b8ec
Author: Nam Le <namle888029@gmail.com>
Date: Wed Apr 1 18:32:49 2026 +0700
ok done
commit 911d69c3347c6596ae0feb3261355f7b234b6171
Author: Nam Le <namle888029@gmail.com>
Date: Wed Apr 1 18:32:15 2026 +0700
dont break pls
commit 498e996bb42a74f9edda65b914a9124b15a8baea
Author: Nam Le <namle888029@gmail.com>
Date: Sat Mar 21 11:35:32 2026 +0700
changes:
+ avoid double caching
+ detach get & validate logic
+ error handling for cache insert
commit a215d11d6855a3381e4f2ecbca32d45d4b06869f
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 22:01:37 2026 +0700
fix dup
commit 539b70f6f9c859bdf6d2a2557e3ba1c1fc10a601
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 21:46:43 2026 +0700
fix
+ leaking Blob resource
+ scss lint
+ extra `}`
commit d1c8ceea944c0a25a9a2a54bb83122e0a9480b05
Author: NamLe029 <146613205+NamLe029@users.noreply.github.com>
Date: Fri Mar 20 21:34:14 2026 +0700
Apply suggestions from code review
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
commit ca14572c8c6df143295ebff2acf210f3a5164ed5
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 20:25:46 2026 +0700
wording
commit 558b0f69fe6a6736aa114f592abd87451b173ccb
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 19:51:28 2026 +0700
remove dexie
commit 4b0750824685e70dd5a13fd9e899064fd6b009c6
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 19:22:43 2026 +0700
use observable for pdf bookdata
commit 1c88aff7c01a51a5263aca3522797624ed794862
Author: Nam Le <namle888029@gmail.com>
Date: Wed Apr 1 18:07:14 2026 +0700
switch to cache storage
commit c766428c32b97fab339b3438b6c4e693082a07a3
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 15:13:42 2026 +0700
error handling
commit bdbaa8f5f769fcd80f3f93aac0c52ffba8bcec27
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 14:16:49 2026 +0700
cleanup unecessary validation
commit 56e264ee5570948cf1512c8ce4de4622430d3cdc
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 12:50:45 2026 +0700
apply simpleCacheService
commit 45ef6ae5d460b27d134b696951fd613eefcb2d64
Author: Nam Le <namle888029@gmail.com>
Date: Wed Apr 1 18:02:44 2026 +0700
interface for local settings
commit 421305dbcb108647b5f0cc29c567de5daee2a93d
Author: Nam Le <namle888029@gmail.com>
Date: Wed Apr 1 18:01:20 2026 +0700
simple cache service for caching request response
commit 1aa81b4a08b006d52e398da61464527fd90e51cb
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 12:47:54 2026 +0700
local settings service for device-scoped settings
commit 647b4f561336617651f5c4f14fe83dc70df3f30f
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 12:46:35 2026 +0700
add dexie dependency
commit d8bfed64b0096c2d99052fceee718413b5dc8b40
Author: Nam Le <namle888029@gmail.com>
Date: Fri Mar 20 12:46:00 2026 +0700
enable HTTP Caching (Last-Modified) for PDF, EPUB, audiobook content response
* delete unused
* final touch
* move local settings
* test
* remove test case for deleted method
* lint
---------
Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
- Replace AppSettingService double-checked locking (volatile + ReentrantLock)
with Spring @Cacheable/@CacheEvict on appSettings cache
- Add appSettings cache name to CacheConfig
- Replace NotificationService dynamic JPQL string concatenation
with type-safe JPA Criteria API (CriteriaBuilder predicates)
the `streamEntryFromArchive` helper was replaced with
`ArchiveService.transferEntryTo` and during the merge of #113
we had a conflict that was automatically resolved incorrectly
this replaces the erroneous call with the expected
to fix the build
* build: drop unrar from dockerfile
* build: add libarchive to dockerfile
* ci: add libarchive for tests
* build: try adding to the gradle build
* refactor: use nightcompress for reading CBX
* test: disable tests using nightcompress when unavailable
* ci: drop showing java information
* build: add libarchive to dev compose
* build: fix libarchive link in alpine
seems alpine doesn't create libarchive.so and this seems to be the
easiest approach to fix that
* build: use expected order for allowing java to use native libs
* fix: ensure we initialize NightCompress before using it
* fix: properly find input stream
* fix: return amount of data copied
* test: add helper to turn off tests in ArchiveService
* test: rewrite CbxMetadataExtractorTest to mock archiveService
* refactor: expose `Path` to make `CbxMetadataExtractor` easier to test
* test: drop now useless test
* test: add archiveservice to rar5 integration
* test: mock out archiveservice in cbxreader test
* test: use real archiveservice in cbxconverstionintegration
* file: the cbxconversionservicetest also seems to be integration
* test: remove unused imports from cbxmetadataextractortest
* test: cbxcomicinfocompliance is also an integration
* test: cbxmetadatawriter is also integration
* chore: drop unused properties
* test: make cbxmetadataextractortest do something for covers
before it was basically useless because of fallback
* fix: invert check
* chore: better comment
* test: fix more cbxmetadataextractor tests that never worked
* test: we only ever raise ioexception
* fix: handle `null` comicinfo when parsing
* test: properly test for no files comicinfo
* build: manual link of dev docker compose
* test: if you use any matchers, all must be
* build: drop unrar from dev compose
* test: if you use any matchers, all must be
* test: always get a fresh stream
* test: drop more toFile
* feat(reader): add document mode to the PDF viewer, overhaul PDF viewer, add different modes to CBX viewer
* feat(reader): improve reader settings with brightness, emulate book mode, and click-to-paginate options
* feat(reader): add long strip scroll mode and update related settings
Return normal 404 behaviour when static resources are missing in backend only runs, by preventing a fallback to a missing index handler for unresolved routes
Physical books have no associated file, so calling getPrimaryBookFile()
returns null. The metadata manager was crashing with NullPointerException
when merging/consolidating metadata (authors, genres, etc.) that included
physical books.
This fix skips physical books in writeMetadataToFile() since there is no
file to write metadata to.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* chore(apiTests): migrate BookCreatorServiceTest assertions to AssertJ
- Replaced JUnit assertions with AssertJ for richer failure messages
- Tightened collection assertions to verify element values rather than just size
- Removed redundant addAuthorsToBook_nullExistingAuthorsOnEntity_initializesSet test
- Added coverage-gap comment noting untested methods and missing cases
* chore(apiTests): reduce test complexity in BookCreatorServiceTests
- Changed to using parameterized tests where tests were the same apart from inputs
- Modified tests to be more specific about what exactly that test is checking
* fix(api): handle kobo proxy sync failures
when the kobo proxy fails, we no longer fail the sync entirely and
instead just skip the kobo request
* fix(api): always `Accept` application/json
* fix(api): handle edge case for an exception being impossibly raised
* fix(api): update try/catch to be just proxy
* refactor(api): simplify routes for kobo thumbnails
the versioned thumbnails are not seemingly called by kobo
and are not in other implementations of kobo sync
* feat(api): use redirect for kobo book images
* chore(api): add documentation for thumbnail redirect
* fix: use ISBN to match the edition to sync
* fix: optimize fallback to default editions when ISBN is not present
* chore: added tests for hardcover sync
* fix: handle cases where hardcover does not have page count
* refactor(api): switch to Spring logging filter
instead of making our own logging filter via a OncePerRequest,
we can instead use the more fully featured CommonsRequestLoggingFilter
with a bit of customization sprinkled on to ignore websocket requests
and health check requests
* fix(api): check sensitive headers & move up path
* fix: invert path check
* chore(dependencies): bump Spring Boot to 4.0.5 and Hibernate to 7.3.0.Final
* fix(read-status): replace String readStatus with ReadStatus enum in BookRuleEvaluatorService
* chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 (#1)
Dependabot couldn't find the original pull request head commit, ea510f40fc1855aa17a782e05b0d30547e84955e.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#2)
Dependabot couldn't find the original pull request head commit, faed6bf8a712c5fc793fa628157de25d97888131.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action from 6.19.2 to 7.0.0 (#3)
Dependabot couldn't find the original pull request head commit, f110823720b6dd773df014ba288a126d8837fe28.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/login-action from 3.7.0 to 4.0.0 (#6)
Dependabot couldn't find the original pull request head commit, 9a8d7a1daf5afff06bb35e36607c3da9aa730e21.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(metadata): fix metadata fetching relying for filename "first" instead of better fields like ISBN in Goodreads/Bookdrop
* perf(ci): speed up image builds and centralize cache writes
- Image builds:
- pin frontend and backend Docker build stages to the build platform so multi-arch packaging can reuse architecture-independent work
- add an Angular build cache mount and move dynamic version metadata to the end of the runtime stage so static layers stay reusable across tags
- reduce image workflow checkout depth and keep preview builds on `linux/amd64` only to avoid unnecessary QEMU and history overhead
- Cache policy:
- make CI packaging smoke builds consume the shared image cache without writing new BuildKit cache state
- make normal preview builds consume shared GHA and registry caches without mutating the canonical cache
- keep nightly and stable release builds as the workflows that refresh the shared image cache in both GHA and registry backends
- Preview override:
- add a `refresh_shared_cache` input to the preview workflow for an explicit no-cache rebuild that repopulates the shared cache when maintainers need to bust and refresh it
- keep the default preview behavior optimized for fast disposable builds rather than cache churn
- Validation:
- keep workflow YAML parsing clean after the cache-policy changes
- keep `git diff --check` clean for the touched Docker and workflow files
* docs: Add a note about how to make a release
* chore: remove unncesary comments
---------
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Cox <james@imaj.es>
* chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 (#1)
Dependabot couldn't find the original pull request head commit, ea510f40fc1855aa17a782e05b0d30547e84955e.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#2)
Dependabot couldn't find the original pull request head commit, faed6bf8a712c5fc793fa628157de25d97888131.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action from 6.19.2 to 7.0.0 (#3)
Dependabot couldn't find the original pull request head commit, f110823720b6dd773df014ba288a126d8837fe28.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/login-action from 3.7.0 to 4.0.0 (#6)
Dependabot couldn't find the original pull request head commit, 9a8d7a1daf5afff06bb35e36607c3da9aa730e21.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(archive): infer archive type via Magic Numbers instead of filename
* fix(archive): improve archive type detection and improve logging for cover image retrieval
---------
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(api): Correct format for fixed-layout epub when using Kobo Sync
* chore: Cleanup duplicate code
* feat: Cache fixed-layout property in db
* fix: Missing nullcheck in after retrieving BookFileEntity
* fix: Remove memory leak in EpubReaderService.java
* chore: Avoid opening the epub twice for fixed-layout extraction
* chore: Fix DB migration from rebase
---------
Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
- startup output:
- remove the custom Spring Boot `banner.txt` resource that printed the Booklore ASCII art on application startup
- let the API fall back to the default Spring Boot banner behavior instead of shipping fork-era branding in the logs
- cleanup:
- drop the banner resource without changing runtime configuration or application logic
* chore(ci): rebrand and streamline the release pipeline
- CI/CD:
- replace the old `develop`/`master` pipelines with explicit validation, nightly, preview, and release workflows
- switch stable releases to `main`, keep `develop` for nightly builds, and make preview image builds manual-only
- update the reusable migration check so callers pass explicit refs and validation works correctly across PRs, pushes, and release flows
- Packaging:
- consolidate container packaging onto the root `Dockerfile` and remove `Dockerfile.ci`
- stop mutating tracked source files during image builds by building frontend and backend assets inside the container pipeline
- remove vendored `unrar` binaries and build the upstream CLI from source during the image build
- keep runtime compatibility for existing Booklore deployments by preserving env vars, ports, mount paths, and legacy internal user defaults
- Deploy Surface:
- move deployment examples under `deploy/` and Docker runtime assets under `packaging/docker`
- rebrand image, chart, and helper-script references from Booklore to Grimmory on the build and release surfaces only
- update Compose, Helm, and Podman examples to reflect Grimmory image names and the stable/nightly tag model
- Docs:
- add the implementation plan under `docs/plans/ci-cd-rebrand-main-nightly.md`
- refresh README, contributing guidance, PR template, and operational docs to match the new branch, image, and upgrade story
- document the Booklore-to-Grimmory image swap path so existing self-hosted installs can upgrade by changing only the image reference
- Validation:
- pass `git diff --check`
- parse all workflow YAML successfully
- pass `shellcheck` on the touched shell scripts
* fix(ci): address review feedback and dedupe test workflows
- Workflows:
- extract backend and frontend test execution into a shared reusable workflow used by validation, nightly, and release pipelines
- simplify migration ref handling, sanitize manual preview PR inputs, reduce preview cache writes, and update Flyway to the current image tag
- remove unnecessary duplicated job definitions so the test path has one source of truth
- Packaging:
- verify the downloaded UnRAR source tarball with SHA256 before extraction
- remove the unnecessary forced npm install path from the production Docker build
- harden container startup by failing clearly when APP_USER collides with an unexpected UID or GID
- Versioning and deploy docs:
- keep app version metadata embedded in the built image instead of asking operators to set APP_VERSION in deploy examples
- update runtime release links and support links to the Grimmory repository
- add the Quadlet install section and finish the remaining review-targeted doc fixes and branding cleanup
- Validation:
- pass git diff --check
- pass shellcheck on packaging/docker/entrypoint.sh
- parse all GitHub workflow YAML successfully
* fix: Resolve flyway version
* fix: Resolve some noise in readme
* feat(release): migrate stable releases to semantic-release
- Release automation:
- replace the manual stable bump flow and Release Drafter with semantic-release on `main`
- split stable delivery into a semantic-release workflow that computes version, changelog, tag, and draft GitHub release plus a tag-driven workflow that publishes container images
- add a maintainer-run dry-run workflow to preview the next stable version and release notes before publishing
- Release tooling:
- add a dedicated `tools/release` package with semantic-release configuration and lockfile
- encode Grimmory's release policy so `feat` triggers minor releases, `fix`/`perf`/`refactor` trigger patch releases, and `docs`/`ci`/`build`/`chore`/`test`/`style` are changelog-only
- maintain a committed `CHANGELOG.md` and draft GitHub releases from the same release notes source
- Contributor workflow:
- enforce conventional PR titles for PRs targeting `develop` and `main`
- document that feature work is squash-merged into `develop` and that stable releases are computed from the preserved conventional commit history promoted to `main`
- update README, contributing guidance, and the PR template to match the new release process
- Bootstrap:
- add the semantic-release migration plan under `docs/plans/semantic-release-migration.md`
- seed the local release baseline with `v2.2.1` on commit `384512534fe5a2f42d8482a0646337e28ef54e52`
- configure the stable image publish workflow to ignore the bootstrap tag so the first semantic-release-managed release can be `v2.2.2`
- Validation:
- pass `git diff --check`
- parse all workflow YAML successfully
- verify the semantic-release config loads correctly
- verify the local bootstrap tag is present as `v2.2.1`
* Add proper concurrency to prevent version collisions
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Tighten the release preview gate to ensure commits are present in origin/head
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update README.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix(ci): fail migration checks on missing diff base
- Migration checks:
- remove the implicit fallback that rewrote an all-zero base ref to `head^`
- fail fast when callers provide the all-zero sentinel instead of a real comparison base so multi-commit pushes and root-history cases do not silently skip migration files
- Validation:
- pass `git diff --check`
- parse `.github/workflows/migrations-check.yml` successfully
* fix(packaging): source unrar from linuxserver layer
- Container packaging:
- replace the custom UnRAR source build stage with the published `linuxserver/unrar` image layer
- copy the provided `/usr/bin/unrar-alpine` binary into the final runtime image as `/usr/local/bin/unrar`
- remove the checksum, tarball, and local compile path from the Dockerfile
- Validation:
- pass `git diff --check`
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
this updates the cron to avoid running the telemetry ping when
telemetry is disabled so that personally identifiable information
is not sent off to other parties (an IP address, an installation ID)