Professional Project

Navis Verify: Intelligent Document Processing

Navis Verify is EC Infosolutions' own intelligent document processing platform. It reads a document, shows its pages, and presents what the parser extracted as ordered chunks, each one traceable to the exact region on the page it came from. I built the frontend: uploading and browsing documents, reviewing every extracted region beside its source, and checking documents against eligibility criteria.

Project Overview

The frontend is a React 19 + TypeScript single-page app on Vite 8, with file-based routing on TanStack Router, server state on TanStack Query, and the React Compiler enabled. Documents are uploaded, parsed on demand, and opened in a review workbench that puts the page and its extraction side by side. From there a document can be checked against a criteria set, with verdicts per criterion and a PDF report to take away. A dashboard sums up what the account has parsed and checked.

Upload

Drag-and-drop PDFs with per-file job tracking and clear limits

Parse

Layout-aware regions in reading order with normalised boxes

Review

Page, Markdown, and JSON kept in sync, chunk by chunk

Verify

Eligibility checks with PASS/FAIL verdicts and PDF reports

Provenance Is the Product

Extraction is only useful if a reviewer can trust it. Navis Verify is built around a two-way link between page geometry and extracted content: every chunk can be traced to a visible box on its page, and every box opens as its chunk. Nothing is shown without its source.

Detected

Regions on each page are classified as text, table, figure, title, or marginalia, and drawn over the page as overlays.

Ordered

Chunks arrive in reading order with bounding boxes normalised to the page, so they line up at any zoom or render size.

Traceable

Selecting a chunk lights its region, selecting a region opens its chunk, and the selection lives in a shareable URL.

Tech Stack

React 19
TypeScript
Vite 8
React Compiler
TanStack Router (file-based)
TanStack Query v5
TanStack Virtual
Zustand
Tailwind CSS v4
shadcn/ui
Base UI
react-pdf / PDF.js
react-markdown
remark-gfm
rehype-sanitize
react-resizable-panels
Motion
Axios
View Transitions API
ESLint
pnpm
nginx

Review Workbench

Source page beside its extracted chunks in a resizable split that stacks on narrow screens

PDF and page-image viewer with bounding-box overlays, paging, and zoom

Hover and selection synced between the page, the Markdown list, and the JSON view

Chunks rendered as sanitized GitHub-flavored Markdown with region-kind badges and page labels

JSON output as a provenance surface: tree and raw views, in-view search, and copy

Selected chunk and page held in the URL, so any region of any document is linkable

Virtualized Markdown and JSON lists that keep documents with thousands of regions responsive

Keyboard-operable chunk cards, with every hover interaction backed by a selection equivalent

Documents & Upload

Drag-and-drop PDF upload with a job row per file, from queued through parsing to ready

Size and batch limits enforced up front, with plain-language rejection notices

Document library with server pagination kept in the URL, so the back button walks the pager

Responsive table whose columns follow the container's width, not the viewport's

Hover preview that renders the file's first page and is reused when the document opens

On-demand parsing, offered as an action because a parse takes time and is metered

Distinct not-parsed, failed, and empty states, with the parser's error kept verbatim

A bundled sample document so the workbench can be explored without uploading anything

Eligibility & Criteria

Criteria sets, such as a study protocol's eligibility criteria, grouped into inclusion and exclusion

Nested sub-criteria shown in a reading column, with the open set held in the URL

Switching between sets from the detail header without a round trip through the list

Rules tab in the workbench that asks which set to check the open document against

Eligibility runs that start a check, poll its status, and land on completed or failed

PASS/FAIL verdicts per criterion once a run completes, tied to the set that produced them

Results exported as a downloadable PDF report that keeps the server's file name

Dashboard & Interface

Dashboard as the landing page: a health summary first, then where to look, then the evidence

Attention panel listing what to look at first, worked out from the same figures as the rest of the screen

Activity chart switching between criteria, criteria-set, and document runs

Per-set run table and time and cost usage panels

Collapsible sidebar that shrinks to an icon rail, with the header naming the current page

Light/dark mode and six interface palettes, persisted per browser

Theme changes revealed as a circle from the click via the View Transitions API

Motion-based state and route transitions with reduced-motion fallbacks

Architecture & Engineering

Routing & Data

  • Route loaders prefetch with TanStack Query so data is usually on screen on arrival
  • Pending states drawn to the shape of the page, so slow responses fill in rather than flash
  • Independent requests started in parallel; the file downloads only once there are regions to show
  • Cached list rows seed detail views, so a document's name appears before its request returns
  • Per-domain normalize layers keep the API's wire format out of the components

Performance

  • TanStack Virtual mounts only the blocks near the viewport in both output views
  • Row-height estimates cached per entity and view mode, so expanding one block re-measures only that block
  • React Compiler handles memoisation across the app
  • Long-lived, immutable caching for hashed assets; the entry page is always revalidated

State & URL

  • Selections (chunk, page, criteria set, list page) live in validated search params
  • Zustand stores for session, review, upload, and theme state
  • Viewer preferences such as zoom and JSON view mode persisted per browser

Brand & Delivery

  • One brand config supplies every name, line, and colour the browser receives
  • A build check, run in CI and before every deploy, fails any bundle that leaks an internal codename
  • Versioned releases stamped with their commit; the deploy script warns if the build and HEAD differ
  • nginx serves the SPA with a same-origin API proxy and an SPA fallback for deep links

Product Principles

Trust

  • Every extracted value is traceable to a visible region on the page
  • Real documents, honestly rendered: parser mistakes are shown, not smoothed over
  • Markdown for people and JSON for machines are two views of the same chunks

Reach

  • Designed for any business document: invoices, contracts, forms, reports, scans
  • Credible to a buyer in a demo, useful to an operator checking real output
  • Polish never comes at the cost of being able to inspect what was extracted

See it in action

Explore the live platform