# Offline Document Digitizer Stack

> Self-hosted document digitization stack using Baserow, n8n, and Gemini Flash for offline-first OCR and archiving.

Offline Document Digitizer Stack is a free AI agent skill on Agensi by Piotr Kołodziejski, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Piotr Kołodziejski](https://www.agensi.io/creators/piotr-ko-odziejski)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/offline-document-digitizer-stack
- Tags: docker, baserow, n8n, ocr, gemini-ai, offline-first, raspberry-pi, self-hosted

## About this skill

Paper archives in low-bandwidth environments often remain trapped in physical binders because manual data entry is too slow and cloud-only OCR tools fail without stable internet. This skill deploys a field-tested, offline-first digitization stack that automates handwritten text extraction and database archiving using local Docker containers.

### What it does
- **Multi-architecture deployment** provides Docker Compose configurations optimized for both x86_64 servers and Raspberry Pi 5 ARM64 hardware.
- **Automated OCR pipeline** uses an n8n workflow integrated with Google Gemini Flash to extract handwritten text, format dates, and rename image files.
- **Pre-configured database schema** initializes a Baserow instance with a production-ready PostgreSQL structure specifically for document archives.
- **Mobile capture integration** includes a lightweight ODK Collect form with client-side compression for high-speed uploads over local Wi-Fi.
- **Resilient infrastructure maintenance** offers scripts for automated PostgreSQL backups and UPS-monitored shutdowns to prevent data corruption during power loss.

### How it works
1. **Architecture Detection:** Run `uname -m` to select the correct Docker Compose file for your host machine.
2. **Environment Setup:** Configure the `.env` file with unique credentials and your Google Gemini API key for the OCR node.
3. **Container Launch:** Deploy the stack using Docker Compose to spin up Baserow, n8n, Redis, and PostgreSQL.
4. **Workflow Import:** Load the pre-built n8n workflow and Baserow SQL schema to activate the digitization pipeline.

### Frameworks & tools
Docker Compose, Baserow, n8n, PostgreSQL (pgvector), Redis, Google Gemini Flash, ODK Collect, and Caddy.

### Why this beats prompting it yourself
Building a reliable offline-first stack requires complex networking between containers, specific ARM64 optimizations, and robust error handling for local file persistence. This skill provides a validated IaC template used in humanitarian missions, saving you hours of debugging port conflicts and database initialization scripts.

### Use cases
- Digitizing handwritten medical or archive records in off-grid locations.
- Creating a self-hosted, searchable document repository on a Raspberry Pi.
- Automating high-volume photo capture and data entry via mobile devices.

### Known limitations
Requires a Google Gemini API key for OCR processing. The stack needs at least 4GB of RAM and is optimized for Raspberry Pi 5 or higher.

## Requires

- Docker & Docker Compose
- Google Gemini API Key
- Optional: ODK Collect (Android)

Runs locally via Docker (x86_64 or Raspberry Pi 5 ARM64). Full documentation, field deployment notes from Central African Republic, and mission details: https://github.com/Piotr00123/bagandou-baserow

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Offline Document Digitizer Stack skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problem does the 'offline document digitizer stack' solve for field workers?

This skill provides a complete Infrastructure-as-Code (IaC) template that deploys a local environment of Baserow, n8n, and PostgreSQL, pre-configured to handle high-volume document digitization without constant cloud dependency.

### Does this stack require a constant internet connection to perform OCR?

While the database and workflow engine run locally, the OCR component requires a Google Gemini API key to process text extraction via the n8n node.

### Can I run this stack on a Raspberry Pi or other low-power ARM devices?

The stack includes optimized Docker Compose files for both standard x86_64 servers and ARM64 devices like the Raspberry Pi 5, ensuring high performance on low-power hardware.

### What files are included in the purchase of this skill?

You will receive the Docker Compose configurations, a pre-built n8n workflow, a specialized Baserow SQL schema, and maintenance scripts for automated backups and power management.

### Is this stack capable of handling large-scale digitization projects with thousands of records?

Yes, the stack is designed for scale and uses a PostgreSQL backend with Redis for task queuing, making it suitable for high-volume photo capture and archival.

### What are the minimum hardware and software requirements to get started?

The stack requires a minimum of 4GB of RAM and Docker installed on the host machine; for mobile capture, the free ODK Collect app is recommended.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
