Next.js Document Scanner web app with TypeScript, using Scanbot.io
- Document scanning and capture
- Image enhancement
- Text recognition (OCR)
- PDF export
Note: this is just a setup of scanbot. Which only offers a 60 second trial unless one has a trial token or a plan with scanbot.io.
- Node.js (v18 or higher)
- npm (v8 or higher) or bun
doc-scanner/
├── app/
│ └── page.tsx
├── public/
│ └── wasm/
├── package.json
└── README.md
- Clone the repository:
git clone https://github.com/yourusername/doc-scanner.git
cd doc-scanner- Install dependencies:
# Using npm
npm install
# Using bun
bun install- Copy WebAssembly files:
By either:
npm/bun postinstall
or:
mkdir -p public/wasm && cp -r node_modules/scanbot-web-sdk/bundle/bin/complete/* public/wasmStart the development server:
# Using npm
npm run dev
# Using bun
bun run devAccess the application at http://localhost:3000