# agentcooper/react-pdf-highlighter

Set of React components for PDF annotation

Repository: https://github.com/agentcooper/react-pdf-highlighter
Canonical: https://ross.abutalabs.com/products/react-pdf-highlighter
Homepage: https://agentcooper.github.io/react-pdf-highlighter/
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, pdf, annotator, highlighting, pdf-viewer
Last push: 2024-11-22T15:38:45+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3203, "days_push": 649, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1401, forks 519 (observed 2026-08-28T04:04:37.270694+00:00)

## What it is
A set of React components for annotating PDF documents, built on top of PDF.js. It supports text and image highlights, popover text for highlights, and scrolling to highlights.

## Use cases
- add text highlights to pdfs in a react app
- annotate pdf documents in the browser
- build a pdf viewer with highlighting
- display popovers on pdf highlights
- scroll to specific highlights in a pdf
- let users highlight text in uploaded pdfs

## When to choose
- you need interactive PDF annotation in a React application
- you want text and image highlighting on top of PDF.js rendering
- you need programmatic scroll-to-highlight behavior

## When to avoid
- your project does not use React
- you need PDF generation or editing rather than annotation
- you need a full standalone PDF viewer outside a web app

## Facets
- artifact type: library
- maturity: active
- function: pdf-viewer, ui-components, frontend-framework
- domain: pdf, web-development, frontend, files
- platform: cross-platform
- tags: react, pdf-annotation, highlighting, pdfjs, text-selection, web-server, nodejs

## Member repositories
- agentcooper/react-pdf-highlighter (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.270694+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:39:01.591778+00:00, confidence not recorded.
  - readme: https://github.com/agentcooper/react-pdf-highlighter (fetched 2026-08-28T04:04:37.270694+00:00, sha 7d9743363ae3)
  - homepage: https://agentcooper.github.io/react-pdf-highlighter/ (fetched 2026-08-29T11:53:10.078698+00:00, sha c6bf6c882d5d)
  - registry_npm: https://registry.npmjs.org/react-pdf-highlighter (fetched 2026-08-29T11:53:10.087803+00:00, sha 03a8a30b4f15)
- Data as of 2026-08-30T08:39:29.467469+00:00.
