Skip to content

feat: /search/book endpoint for full Open Library book descriptions#9

Merged
dhighwayman merged 1 commit into
masterfrom
feat/book-description
May 31, 2026
Merged

feat: /search/book endpoint for full Open Library book descriptions#9
dhighwayman merged 1 commit into
masterfrom
feat/book-description

Conversation

@dhighwayman

Copy link
Copy Markdown
Contributor

Adds GET /search/book?url=<openlibrary work url> which fetches the work JSON and returns its full prose description, handling both shapes Open Library uses (plain string and {type, value} object). The frontend calls this lazily on select for books, upgrading the thin author + year placeholder to a real synopsis without slowing the typeahead.

The url is constrained to https://openlibrary.org/works/ to avoid acting as a generic SSRF proxy.

🤖 Generated with Claude Code

Adds GET /search/book?url=<openlibrary work url>, which fetches the work's
JSON and returns its full prose `description` (handling both the plain
string and {type, value} object shapes Open Library uses). The frontend
calls this lazily when a user selects a book, upgrading the thin
author+year placeholder to a real synopsis. URL is constrained to
openlibrary.org/works to avoid acting as a generic SSRF proxy.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dhighwayman dhighwayman merged commit 3f9fbb9 into master May 31, 2026
2 checks passed
@dhighwayman dhighwayman deleted the feat/book-description branch May 31, 2026 09:32
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.

1 participant