AI · SaaS
StudyLens
Ground News for science. Paste a DOI and in 15 seconds see what a nutrition study really found, why a skeptic would be cautious, and how the media covered it.
- LLM extraction pipeline
- Media accuracy analysis
- Methodological interrogation
- Freemium SaaS
Overview
StudyLens gives non-experts the same critical evaluation framework as an experienced science communicator. By entering a DOI, PMID, or study title, users receive a complete analysis: what the study actually found, why they should be cautious about the findings, how media covered it, and the context they need to evaluate evidence on their own.
- Source-cited extraction: Each fact links to its exact source sentence in the paper, with no black-box summaries.
- Methodological Caution Meter: A composite 0-100 score highlights risks such as p-hacking, use of surrogate endpoints, causal overclaims, and additional concerns.
- Media accuracy analysis: News coverage is automatically identified, classified by stance, and scored for accuracy.
- Teaching layer: Contextual cards explain each flag, enabling users to recognize methodological issues independently.
Problem
Each week, nutrition studies make headlines. The public relies on these reports to make decisions about diet, supplements, and health concerns. However, almost none of these headlines accurately reflect the underlying research.
Misleading headlines
- Observational studies reported as proof of causation.
- Relative risks without absolute risks
- Surrogate endpoints presented as clinical outcomes
Hidden methodology
- Negative primary outcomes buried
- Industry funding undisclosed
- Post-hoc subgroup findings headlined
No tools for non-experts
- Existing tools are designed for researchers rather than the general public.
- No current product integrates extraction, quality assessment, media analysis, and educational components.
- 99% of people have never learned what to look for in a scientific study.
Solution
StudyLens automates the analytical framework used by experienced science communicators, making it available to everyone in under 15 seconds.
How it works
- Paste a study identifier: DOI, PMID, title, or URL, and StudyLens resolves and fetches the paper from open-access sources
- Automated extraction: Claude extracts 16 fact categories with source citations and confidence scores.
- Interrogation flags: 13 methodological flags across 4 tiers highlight what a skeptic would notice.
- Media discovery: An LLM agent automatically locates, validates, and classifies news coverage.
- Evidence landscape: Meta-topic pages illustrate how each study fits within the broader body of research.
Architecture
A modern full-stack application with an event-driven extraction pipeline, serverless Postgres, and infrastructure as code.
Application layer
- Next.js 16 + React 19: App Router with TypeScript strict mode
- Tailwind CSS v4: Design tokens with full dark-mode support
- Auth.js v5: Google OAuth with session-based access control
- Drizzle ORM: Type-safe queries with migration generation
Infrastructure
- Neon PostgreSQL: Serverless Postgres with branching
- Inngest: Event-driven durable functions for extraction pipeline
- Terraform: Vercel + Neon infrastructure as code
- Docker Compose: Local development environment
Extraction pipeline
| Step | What happens |
|---|---|
| 1. Resolve identifiers | OpenAlex (primary), Crossref, PubMed, Semantic Scholar for maximum metadata coverage |
| 2. Check OA status | Unpaywall API determines open-access availability and best source URL |
| 3. Fetch full text | PMC XML preferred, OA location fallback, DOI landing page as last resort |
| 4. Extract + interrogate | Claude structured tool calling: 16 fact categories, 13 interrogation flags, topic classification |
| 5. Store & classify | Study row, facts, flags, topic associations, coverage badge (gold/silver/bronze) |
| 6. Media discovery | LLM agent searches, validates, and classifies news coverage with stance analysis |
The four layers
StudyLens delivers value through four complementary layers, each building upon the previous one.
Layer 1: Extraction - “What did the study actually find?”
- 16 fact categories: study type, sample size, outcomes, effect sizes, funding, blinding, and more
- Each claim is sourced to a specific sentence, including section and character offset for precise reference.
- Confidence scores for each extraction
- Coverage badges: Gold indicates full text, silver represents abstract coverage, and bronze denotes metadata only.
Layer 2: Interrogation - “Should I believe it?”
- 13 flags across 4 tiers address statistical red flags, effect size analysis, study design adequacy, and transparency.
- Composite Methodological Caution Meter (0-100)
- P-hacking detection includes outcome switching, subgroup mining, and identification of borderline significance.
- Additional features include surrogate endpoint flagging, detection of causal overclaims, and assessment of funding independence.
Layer 3: Context - “How does the world see it?”
- Automated media discovery agent searches for, validates, and classifies media coverage.
- Stance classification: positive, negative, cautious, neutral
- Accuracy scoring per article
- Meta-topic pages with LLM-generated evidence summaries
Layer 4: Education - “Why does this matter?”
- Teaching cards are provided for every flag and methodological concept.
- Each teaching card follows a consistent structure: what the concept is, why it matters, and what to look for.
- Cards are displayed contextually, showing only those relevant to the current study.
- The goal is for users to eventually outgrow the tool by developing their own evidence literacy.
Outcomes
Delivered capabilities
- A five-step extraction pipeline is implemented, utilizing idempotent Inngest steps.
- 16 fact categories and 13 interrogation flags are extracted using Claude's structured tool calling.
- Deduplication is performed across DOI, PMID, PMCID, and title.
- Google OAuth with session-based access control
- Collections system for organizing saved studies
- Full dark-mode design system with semantic CSS tokens
- A freemium revenue model with five pricing tiers.
- Stripe billing with webhook-driven entitlements
- Docker + Terraform infrastructure as code
- The platform is WCAG AA accessible and features mobile-first responsive layouts.
Building an AI-powered content platform?
StudyLens demonstrates end-to-end delivery of an LLM extraction pipeline, event-driven architecture, and a consumer-facing SaaS platform with freemium billing. If you are addressing similar challenges, please reach out.