Sign In

@parserelay/scanner

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parserelay/scanner

Dead-simple drop-in scanner component for ParseRelay: capture or upload an image, get structured fields back.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@parserelay/scanner

A dead-simple, drop-in scanner component for ParseRelay. Capture or upload an image and get structured, confidence-scored fields back. Unstyled by design — bring your own CSS via className / children.

import { DeadSimpleMicroScanner } from "@parserelay/scanner";

<DeadSimpleMicroScanner
  apiKey={process.env.NEXT_PUBLIC_PARSERELAY_KEY!}
  fields={["merchant", "total", "date"]}
  docType="receipt"
  engine="auto"
  onResult={(envelope) => {
    // { fields, confidence, needs_review, raw_text, meta }
    console.log(envelope.fields, envelope.confidence);
  }}
  onNeedsReview={(low) => console.log("review these:", low)}
/>

This uses the synchronous scan path. For fire-and-forget delivery, call the API with a relay config server-side and receive the envelope at your webhook.

Angular / framework-agnostic wrappers are planned. For now, non-React apps can use @parserelay/client directly.

FAQs

Package last updated on 15 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts