Summary
Lens is a photographer discovery app for people who want to explore photographers and their work in a dark, cinematic, TV-style gallery, and for builders who want to launch their own niche discovery site. It solves the problem of a photographer's work being scattered across many web pages: Lens finds photographs on public pages, filters out ads, look-alikes and duplicates, tags each photographer by theme with an LLM, and presents everything in one place while always linking each photo back to the page that published it (it stores links and text only, never image files). It comes as a web app and a desktop app with an offline copy of the collection and an ambient TV mode, and ships with a 126-photographer library so it is full from the first start.
Platforms
- Web app
- macOS (desktop app, built from source; run by the owner on macOS, no signed installer included)
- Linux (desktop app, built from source; built and unit-tested on Linux)
- Windows (desktop app, built from source; not verified)
User roles
- Visitor (anonymous, no login): browses the home page, tag pages and photographer pages, opens the full-screen viewer and slideshow, searches the collection, asks for a web search for a new photographer and optionally leaves an e-mail, reports or removes a photo, and sends feedback.
- Desktop user (runs a build of the desktop app): browses the local copy offline, runs ambient mode, keeps favorites and collections on the computer, imports data packs, sets the server address and optional data key, and asks for new photographers with alerts when they are ready.
- Site operator (runs the server and scripts): imports the library, seeds new photographers within a credit budget, runs the search worker, runs the photo checker and reviews its report, removes duplicates, reads feedback, exports and imports data packs, controls desktop update notices and home layout, and rebrands the app in one config file.
Features
- Home page with a Spotlight hero and rows of photographers (recently added, new this week, per-photographer rows) — Files: src/components/photography/home.tsx (HomeView, SpotlightHero), src/lib/photography/browse.ts (createBrowseService, pickSpotlightKeys), src/app/api/photographers/home/route.ts (GET)
- Theme (tag) sections on the home page and a page per tag listing its photographers — Files: src/components/photography/tag-view.tsx (TagView), src/lib/photography/browse.ts (pickTagSections, countTags), src/app/api/photographers/by-tag/[tagId]/route.ts (GET)
- Photographer page with hero, known-for, active years, places, tag chips, a sources row and the photo grid — Files: src/components/photography/detail.tsx (PhotographerDetail), src/app/[locale]/photography/p/[key]/page.tsx (default export)
- Full-screen photo viewer with caption, link to the source page, slideshow, swipe and keyboard controls — Files: src/components/photography/viewer.tsx (Viewer), src/lib/photography/focus-nav.ts (directionFromKey, isBackKey)
- Keyboard and TV-remote arrow navigation between cards — Files: src/components/photography/use-spatial-nav.ts (useSpatialNav), src/lib/photography/focus-nav.ts (directionFromKey)
- Search-as-you-type over photographers already in the collection from the header search box — Files: src/components/photography/shell.tsx (PhotographyShell), src/app/api/photographers/discovered/route.ts (GET)
- Confirmation dialog ("Do you want us to do a deep web search for this photographer?" Continue / Cancel) before a new web search is submitted — Files: src/components/photography/confirm-search.tsx (ConfirmSearchDialog), src/components/photography/shell.tsx (confirmSearch)
- Name check that rejects names that are not photographers, using a known list, cached verdicts, an LLM check and a web check — Files: src/lib/photographer-validation/validate.ts (validatePhotographerName, createLlmCheck, createFirecrawlWebSearch), src/app/api/photographers/new-search/route.ts (POST)
- Escalating temporary block for visitors who keep submitting invalid names — Files: src/lib/photographer-validation/penalty.ts (addStrike, remainingBlockSeconds), src/lib/photography/job-store.ts (prismaPenaltyStore)
- Queued web search with a live status panel and estimated time; a visitor's 6th and later new searches of the day are queued behind others, never refused, and no visitor counts are shown — Files: src/lib/photography/queue.ts (claimPolicy, estimateCredits), src/lib/photography/search-queue.ts (createSubmitService), src/components/photography/search-job.tsx (SearchJobPanel)
- Optional "e-mail me when it's ready" for a queued search, with a message when the search has already finished — Files: src/app/api/photographers/jobs/[id]/notify/route.ts (POST), src/lib/email.ts (sendPhotographerReadyEmail, sendPhotographerFailedEmail)
- Background search worker that respects a daily credit budget and a safety floor and retries temporary errors — Files: scripts/photography-worker.ts, src/lib/photography/worker.ts (createWorker)
- Web image discovery with query variants and polite page crawling (robots.txt, rate limits, private-address guard) — Files: src/lib/photographer-search/provider.ts (createFirecrawlProvider), src/lib/photographer-search/service.ts (createPhotographerService), src/lib/photographer-search/ssrf.ts
- Relevance filtering of found images by full-name match, namesake rules, page zone and minimum size and shape — Files: src/lib/photographer-search/name-match.ts (createRelevanceChecker, createConflictChecker), src/lib/photographer-search/page-relevance.ts, src/lib/photographer-search/filter.ts
- Duplicate detection across sizes and sites with perceptual hashes, keeping the cleanest copy — Files: src/lib/photographer-search/dedupe.ts (dedupePhotographer, chooseKeeper), src/lib/photographer-search/phash.ts, scripts/photography-dedupe.ts
- Cover and thumbnail choice per card shape, using smaller copies of the same picture — Files: src/lib/photography/cover.ts (pickCover, createCoverAllocator), src/lib/photographer-search/thumbnails.ts (pickThumbUrl)
- LLM tagging of photographers (genre, era, region, style) from a fixed English and Turkish vocabulary — Files: src/lib/photographer-tags/taxonomy.ts (TAGS), src/lib/photographer-tags/tagger.ts (tagPhotographer, getTagModel), src/lib/photographer-tags/service.ts (createTaggingService)
- Photo checker that flags photos that are probably not the photographer's (colour vs era, local CLIP image model, then a vision LLM for suspects only) — Files: scripts/photography-audit.ts, src/lib/photography-audit/run.ts (auditPhotographer), src/lib/photography-audit/scoring.ts (combineSignals)
- Photo checker review report as a static HTML page, with reversible hiding of rejected photos and covers that skip them — Files: src/lib/photography-audit/report.ts (buildReportHtml), src/lib/photography-audit/apply.ts (applyDecisions, applyAuto, undoDecisions), src/lib/photography/cover-audit.ts (isAuditRejected)
- Curated list of 255 photographers' names, "not discovered yet" suggestions, and seeding from the list within a daily budget — Files: src/lib/photographer-search/curated-photographers.ts (CURATED_PHOTOGRAPHERS), scripts/photography-seed.ts, src/lib/photographer-search/seed-budget.ts (getSeedBudgetConfig, computeSeedBudget)
- Report / remove on every photo: the photo is hidden at once and a removal request is stored — Files: src/app/api/photographers/removal/route.ts (POST), src/lib/photography/browse.ts (requestRemoval)
- Automatic hiding of photos that fail to load in the browser, after re-checking — Files: src/app/api/photographers/images/broken/route.ts (POST), src/components/photography/cards.tsx (reportBroken)
- Feedback button with categories, page context and an optional screenshot — Files: src/components/photography/feedback.tsx (FeedbackWidget), src/app/api/photographers/feedback/route.ts (POST), src/lib/photography/feedback.ts (submitFeedback)
- About, Takedown and Privacy pages — Files: src/components/photography/info-page.tsx (InfoPage), src/app/[locale]/photography/about/page.tsx, src/app/[locale]/photography/takedown/page.tsx
- English and Turkish interface with clean URLs (English at the root, Turkish under /tr) — Files: src/proxy.ts (proxy), src/lib/photography/paths.ts (mapLensPath, photoPath), src/i18n/request.ts
- SEO: page metadata, structured data, sitemap.xml and robots.txt — Files: src/lib/photography/seo.ts (lensPageMetadata), src/lib/photography/jsonld.ts (buildPhotographerJsonLd), src/app/[locale]/photography/sitemap.xml/route.ts (GET)
- One-file branding: app name, tagline, accent colour and contact address — Files: src/config/site.ts (siteConfig), src/components/photography/shell.tsx (PhotographyShell)
- Bundled library import (126 photographers in four part files) and data pack export / import — Files: scripts/lens-import-index.ts (main), scripts/lens-export-index.ts (main), scripts/lens-index-format.ts (INDEX_TABLES)
- Desktop app with a local offline copy of the collection in SQLite — Files: desktop/src/main/store/store.ts (Store), desktop/src/main/store/migrations.ts, desktop/src/main/store/db.ts
- Desktop sync that downloads only changed photographers and never deletes local data when offline or on an error — Files: desktop/src/main/sync/engine.ts, desktop/src/main/sync/controller.ts (SyncController, checkRevision), src/app/api/desktop/manifest/route.ts (GET)
- Desktop data pack import (one or several files at once), so the app works with no server — Files: desktop/src/main/sync/datapack.ts (importDataPackFile, importDataPackFiles), desktop/src/main/ipc.ts (importPackInteractive)
- Desktop home, photographer page and full-screen viewer with keyboard navigation — Files: desktop/src/renderer/pages/Home.tsx, desktop/src/renderer/pages/Photographer.tsx, desktop/src/renderer/components/Viewer.tsx
- Ambient (TV) mode: slow full-screen cross-fade over all photos, a tag, a collection, favorites or one photographer, with shuffle, adjustable interval and the screen kept awake — Files: desktop/src/renderer/pages/Ambient.tsx, desktop/src/renderer/lib/slideshow.ts, desktop/src/main/ipc.ts (powerSaveBlocker)
- Favorites and named collections of photographers and photos, stored only on the computer — Files: desktop/src/renderer/pages/Favorites.tsx, desktop/src/renderer/pages/Collections.tsx, desktop/src/renderer/components/CollectionPicker.tsx
- Desktop settings: server address, data key kept in the OS keychain and never shown back, sync status in plain words, slideshow defaults — Files: desktop/src/renderer/pages/Settings.tsx, desktop/src/main/settings.ts (Settings), desktop/src/renderer/lib/sync-text.ts
- Desktop update notice and server-controlled app name, accent, spotlight and home row order without a new build — Files: src/lib/desktop-sync/ui-config.ts, desktop/src/renderer/components/Banner.tsx, desktop/src/shared/semver.ts
- Desktop web search for a new photographer with the same confirmation step, queue rules and optional e-mail as the website — Files: desktop/src/renderer/components/WebSearchOffer.tsx, desktop/src/main/requests/service.ts (submit, quota)
- Desktop "My requests" list (queued, ready, failed with a plain reason) with a badge for unseen results — Files: desktop/src/renderer/pages/Requests.tsx, desktop/src/main/store/requests.ts, desktop/src/main/requests/service.ts (pollJobs, afterSync)
- Desktop "is ready" alerts: a system notification that opens the photographer, plus an in-app toast — Files: desktop/src/main/main.ts (Notification), desktop/src/main/requests/service.ts (takeAlerts), desktop/src/renderer/context.tsx (AlertToasts)
- Optional data keys for the desktop sync API, with caching and rate limiting — Files: src/lib/desktop-sync/auth.ts, src/lib/desktop-sync/service.ts, src/app/api/desktop/photographers/route.ts (POST)
Main user flows
- Browse the collection: open the home page → pick a photographer from the Spotlight, a row or a tag → open a photo in the full-screen viewer → follow the source link to the page that published it
- Find a photographer already in the collection: type in the header search box → pick a match from the list → browse the photographer page
- Ask for a new photographer: type a name that is not in the collection → confirm "Continue" in the deep web search dialog → watch the status panel and optionally leave an e-mail → open the photographer page when it is ready
- Report a photo: open the viewer → choose Report / remove → optionally add a reason → the photo disappears at once and the request is stored
- Desktop ambient mode: start the desktop app → sync from the server or import the library files → pick all photos, a tag, a collection, favorites or one photographer → start ambient mode
- Operator setup and clean-up: import the library → start the site and the search worker → run the photo checker → review the HTML report and hide the wrong photos
Integrations and external services
- PostgreSQL (through Prisma): required database
- Firecrawl: web and image search; required only to find new photographers, browsing works without it
- OpenRouter (or Anthropic API): optional, for photographer tagging, the name check and the photo checker's vision model
- Hugging Face model download: the photo checker downloads a CLIP image model once and runs it locally
- Resend: optional e-mail sending ("your search is ready"); the default provider only logs
- Google Custom Search: optional alternative image search provider
- Playwright with Chromium: optional, only for feedback screenshots
- Original photographer and publisher websites: pages are fetched politely to read metadata, and visitors' browsers load each photo from the site that published it
- Lens server (for the desktop app): the desktop app syncs from a Lens server's /api/desktop endpoints, or runs from imported data pack files
Known limitations
- Finding new photographers needs a paid Firecrawl account, about 6 to 8 credits per photographer
- The bundled library is a snapshot (126 photographers, November 2026) and does not update itself
- Photos are loaded from third-party sites and can disappear or be blocked there; broken links are hidden after re-checking
- No user accounts or admin web interface; operator tasks are done with scripts and the database
- Interface languages are English and Turkish only
- Rate limiting is kept in memory per process, so it assumes a single web server instance
- The About, Takedown and Privacy pages are templates that must be reviewed for the operator's country
- The desktop app is source only: no signed or prebuilt installers; it was not verified on Windows
- The desktop app needs an internet connection to show photos, even though its collection is stored offline
How to install
Installation document found: yes
Prerequisites
Node.js 22 or newer npm PostgreSQL 16 (docker-compose.yml included, Docker optional) Firecrawl API key, only to find new photographers OpenRouter API key, optional, for tagging and the photo checker Resend API key, optional, for e-mails
Install
docker compose up -d
npm install
cp .env.example .env
npx prisma migrate deploy
npm run library:import
Desktop app (optional):
cd desktop
npm install
Configure
- DATABASE_URL (required): PostgreSQL connection string
- PHOTOGRAPHY_PUBLIC_URL (optional; set in production): public address of the site
- PHOTOGRAPHER_CLIENT_SALT (optional; set in production): secret used to hash visitor IP addresses
- FIRECRAWL_API_KEY (optional): needed only to find new photographers
- OPENROUTER_API_KEY (optional): tagging, the name check and the photo checker
- ANTHROPIC_API_KEY (optional): alternative provider for tagging
- PHOTOGRAPHER_TAG_PROVIDER (optional): which tagging provider to use
- EMAIL_PROVIDER (optional): e-mail provider; the default only logs
- RESEND_API_KEY (optional): Resend e-mail sending
- EMAIL_FROM (optional): sender address for e-mails
- PHOTOGRAPHER_DAILY_CREDIT_BUDGET (optional): daily search credit budget
- PHOTOGRAPHER_MIN_REMAINING_CREDITS (optional): credit safety floor
- PHOTOGRAPHY_AUDIT_MODEL (optional): vision model used by the photo checker
- PHOTOGRAPHY_AUDIT_MAX_CALLS (optional): cap on vision model calls per photo checker run
- LENS_DESKTOP_KEYS (optional): data keys required by the desktop sync API
- LENS_DESKTOP_LATEST_VERSION (optional): latest desktop version for the update notice
- LENS_DESKTOP_MIN_VERSION (optional): minimum desktop version for the update notice
- LENS_SERVER_URL (optional, desktop app): server address the desktop app syncs from
Build
npm run build
Desktop app (optional):
cd desktop
npm run build
Run
npm run start
npm run worker
For development:
npm run dev
Desktop app (optional):
cd desktop
npm start
Port
3000