ScannerPWA

Scanner PWA

A Progressive Web App (PWA) for scanning documents directly in the browser — built with Next.js.

This project was bootstrapped with create-next-app.

The application uses:

All processing happens entirely client-side — no backend required.

Features

MVP

Planned Enhancements

Tech Stack

Architecture Overview

Example structure:

app/
    ├── page.tsx              // Main scanner UI
    ├── layout.tsx
    └── globals.css
src/
    ├── camera/               // Camera access & capture logic
    ├── scan/                 // OpenCV wrapper
    ├── pdf/                  // jsPDF wrapper
    ├── storage/              // IndexedDB (optional)
    └── lib/                  // Shared utilities
public/
    ├── manifest.json
    └── icons/

Processing Pipeline

  1. Camera stream → Video element
  2. Capture frame → Canvas
  3. Canvas → OpenCV processing
  4. Processed image → jsPDF
  5. jsPDF → Blob → Download

All steps run locally in the browser.

PWA Details

Browser Considerations

Development

Getting Started

First, install dependencies:

pnpm install

Then run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying:

app/page.tsx

The page auto-updates as you edit the file.

Fonts

This project uses next/font to automatically optimize and load Geist, a font family by Vercel.

Build & Production

Build the app:

pnpm run build

Deployment

The easiest way to deploy your Next.js app is to use the Vercel Platform:

https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme

See the official deployment documentation:

https://nextjs.org/docs/app/building-your-application/deploying

Learn More

To learn more about Next.js:

License

MIT