Book Explorer is a modern, responsive React web app that allows users to search for and explore books using the Open Library API. With a sleek UI built using Tailwind CSS, users can search books by title, author, or keyword and view detailed information about each book.
- π Search functionality for books by title, author, or keyword
- πΌοΈ Beautiful book cards with cover images and author details
- π Detailed book pages with descriptions, subjects, authors, and links
- π Clean, responsive UI with Tailwind CSS
- β‘ Fast client-side routing using
react-router-dom - π Initial fetch of "bestsellers" on homepage load
- π Dark-themed layout with subtle gradients and animations
- π¦Ύ Loading states, graceful error handling, and fallback UI
- Vite β Fast build tool for modern web apps
- React β Frontend UI library
- Tailwind CSS β Utility-first CSS framework
- React Router DOM β Client-side routing
- Open Library API β Free public API for books data
git clone https://github.com/martian58/book-explorer.git
cd book-explorernpm installnpm run devOpen http://localhost:5173 to view the app in your browser.
book-explorer/
βββ public/ # Static files (e.g. favicon)
βββ src/
β βββ components/
β β βββ Book.jsx # Book card component
β β βββ Footer.jsx # Sticky footer
β βββ pages/
β β βββ Home.jsx # Homepage with search and results
β β βββ BookDetail.jsx# Book detail page
β βββ App.jsx # Routing config
β βββ main.jsx # React root
βββ index.html
βββ vite.config.jsHero section with gradient title and search bar.
Dynamically updated book grid. Fully responsive with smooth animations.
Displays cover image, title, description, subjects, and authors.
Authors fetched dynamically with clean badges and external links.
-
Open Library Search API:
https://openlibrary.org/search.json?q=... -
Open Library Works API:
https://openlibrary.org/works/{id}.json -
Book Cover Images:
https://covers.openlibrary.org/b/id/{cover_id}-L.jpg
- π Add user bookmarks or reading lists
- π Filter by genre or language
- π Pagination and infinite scroll
- π£οΈ Add user reviews (via external API)
This project is open source and available under the MIT License.
- Open Library for their awesome public API
- Tailwind CSS for the styling magic
- Heroicons for icons

