User-facing app for the Libri book catalog. Browse books, search, and scan barcodes with your camera.
Built with React, Vite, TypeScript, TanStack Router, Tailwind CSS, and Clerk authentication.
- Browse and search the library
- Book pages with cover, ISBN, barcode, and sharing
- Barcode scanner with a list of books scanned in the session
- Sign in, sign up, and password reset
- Light and dark theme
- Works on phones, tablets, and desktops
- Node.js 22+
- pnpm
- A running
libri-apiinstance - A Clerk application with a publishable key
Create a local env file from the example:
cp .env.example .envAvailable variables:
VITE_CLERK_PUBLISHABLE_KEY=pk_***
VITE_API_BASE=http://localhost:8080VITE_API_BASE should point to the host running
libri-api.
Install dependencies:
pnpm installStart the development server:
pnpm devThe app runs on http://localhost:3001.
libri-web signs users in with Clerk and sends a Bearer token to
libri-api. Signed-out visitors are
sent to the sign-in page.