Skip to content

Proxy paginated Google Books metadata searches - #77

Merged
Eoic merged 1 commit into
developmentfrom
feature/google-books-metadata-proxy
Nov 14, 2026
Merged

Eoic merged 1 commit into
developmentfrom
feature/google-books-metadata-proxy

Conversation

@Eoic

@Eoic Eoic commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Google Books searches now run through Papyrus so clients never need the Google API key. Guest and authenticated endpoints return ten normalized results per page for text or ISBN searches, including HTTPS covers from all supported image sizes.

The proxy validates active sessions, applies per-IP/per-user and shared daily request limits, bounds upstream concurrency/response size/time, caches public results for five minutes, and returns sanitized errors. Configuration and deployment docs cover local setup, self-hosting and the process-local quota/cache boundary. No dependencies or database migration are added.

Closes #76. Contributes to FR-2_13 (PapyrusReader/docs#15); this does not mark the entire requirement verified. Companion client PR: PapyrusReader/client#154. Deploy this server change with GOOGLE_BOOKS_API_KEY configured before releasing the client integration.

Validation:

  • Final focused server run: 34 passing tests covering metadata routes/service, environment and OpenAPI export.
  • tools/papyrus check server: Ruff lint/format and Mypy pass.
  • Prior live local proxy and upstream requests succeeded; production deployment is not part of this PR.
  • Staged changes checked for the configured key; only environment placeholders are committed.

Copilot AI balanced review requested due to automatic review settings November 14, 2026 23:20
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T23:22:07.122886Z 3d30f50 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Eoic
Eoic enabled auto-merge November 14, 2026 23:22
@Eoic
Eoic merged commit c7503cf into development Nov 14, 2026
2 checks passed
@Eoic
Eoic deleted the feature/google-books-metadata-proxy branch November 14, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proxy Google Books metadata through the configured server

2 participants