Connects Claude to the Embassy of the Free Mind's collection of 15,000 rare pre-modern texts, all translated to English. The corpus spans philosophy, religion, science, and literature from before the modern era. Search operations hit the sourcelibrary.org API, which runs on a Next.js stack with MongoDB Atlas for storage and Google Gemini handling OCR and translation of the original manuscripts. Reach for this when you need primary sources from historical periods or want to query obscure philosophical and religious texts that aren't in standard training data. The underlying system processes images through a pipeline that splits two-page spreads, extracts text, translates, and summarizes.
A Next.js application for digitizing and translating historical texts. Built for the Embassy of the Free Mind.
npm install
npm run dev
All page images go through /api/image for consistent sizing and cropping:
| Tier | Size | Quality | Use Case |
|---|---|---|---|
| Thumbnail | 400px | 70% | Grid views, page navigation |
| Display | 1200px | 80% | Main reading view |
| Full | 2400px | 90% | Magnifier, fullscreen |
Books with two-page spreads can be split. Each page stores:
crop.xStart and crop.xEnd (0-1000 scale)cropped_photo (optional pre-generated Vercel Blob URL)Cropping happens on-demand via Sharp. OCR automatically crops inline and saves the result for future use.
src/
├── app/ # All routes, pages, and API endpoints
│ ├── api/ # API routes
│ ├── book/ # Book pages (detail, read, pipeline)
│ └── page.tsx # Homepage
├── components/ # Reusable React components
├── hooks/ # Reusable React hooks for component logic
└── lib/ # Business Logic, Utilities (mongodb, ai, types), and Services
com.mcparmory/google-search
io.github.pipeworx-io/brave-search
marcopesani/mcp-server-serper
brave/brave-search-mcp-server
com.mcparmory/google-search-console
acamolese/google-search-console-mcp