Open Source Vision AI • OCR Next.js 15 • Prisma

Amber

Self-hosted intelligence for scanned handwritten journals.

Amber is a self-hosted digital archive built to preserve historical handwritten diaries and scanned manuscripts. It couples a low-latency canvas PDF viewer with multimodal vision models to automatically detect individual entries, transcribe cursive scripts, translate historical text, and curate archival summaries.

The Problem & Vision

Physical handwritten journals represent some of the most intimate records of human history, yet they remain practically invisible to modern digital search. Digitizing them as scanned PDFs is only the first step: raw scans cannot be searched by keyword, cursive handwriting defies traditional OCR engines, and individual entries bleed across pages without clean boundaries.

Amber was conceived to bridge this gap. Instead of forcing historical documents into generic document pipelines, Amber treats every journal as a living historical artifact. It preserves high-resolution scan fidelity while empowering historians, families, and researchers to transcribe, translate, and cross-reference century-old handwriting.

Multimodal Vision Over Brute-Force OCR
Traditional OCR libraries fail catastrophically on slanted fountain pen ink, faded margins, and irregular historical scripts. Amber uses modern vision-capable LLMs (via OpenRouter) to understand document spatial structure, recognize dates from context, and transcribe cursive with nuanced semantic accuracy.

Core Engineering Highlights

01 / DETECTION

Vision-Based Entry Detection

Scans pages to detect entry bounding boxes automatically. Curators can drag, resize, or manually define entry regions directly over the rendered page canvas with sub-pixel precision.

02 / TRANSCRIPTION

Cursive Transcription & Versions

Transcribes cursive script with line-by-line accuracy. Retains full version history for every transcription edit, allowing curators to verify, adjust, or rollback OCR changes.

03 / TRANSLATION

Historical Translation & Synthesis

Translates archaic dialects and multilingual journal entries into clean contemporary English, generating contextual archival summaries and entity tags.

04 / ZERO-CLOUD STORAGE

Self-Hosted & Local-First

Runs entirely on your own infrastructure via Docker Compose. Journals and sensitive personal writings remain on your local storage rather than third-party SaaS databases.

Technology Stack

Built with modern web standards, prioritized for reliability, long-term maintainability, and clean separation of concerns:

Next.js 15 (App Router) React 18 TypeScript Tailwind CSS PostgreSQL Prisma ORM PDF.js OpenRouter API Docker Compose