- Home
- Skills
- DevOps & Cloud
- Offline Document Digitizer Stack
Works with the AI Agents you already use
Offline Document Digitizer Stack
Self-hosted document digitization stack using Baserow, n8n, and Gemini Flash for offline-first OCR and archiving.
Free
Offline Document Digitizer Stack
Example session with this skill installed
I need to deploy the document digitization stack on my Raspberry Pi 5. Help me set up the environment and start the containers.
- Read your context and instructions
- Compiled the offline document digitizer
I will help you deploy the offline-first digitization stack on your Raspberry Pi 5 (ARM64). I will generate the .env configuration and provide the commands to launch the services.
Deployment Configuration and Setup
The stack is configured for ARM64 architecture using docker-compose.rpi.yml. Below is the environment configuration generated with secure credentials.
# 1. Create the .env file
cat <<EOF > .env
# Database Credentials
POSTGRES_USER=bagandou_admin
POSTGRES_PASSWORD=$(openssl rand -hex 16)
POSTGRES_DB=baserow
# Baserow Configuration
BASEROW_PUBLIC_URL=http://$(hostname -I | awk '{print $1}')
SECRET_KEY=$(openssl rand -hex 32)
# n8n Configuration
N8N_ENCRYPTION_KEY=$(openssl rand -hex 16)
# Gemini API Key (User must provide this for OCR nodes)
GEMINI_API_KEY=your_api_key_here
EOF
# 2. Create persistence directories
mkdir -p dane_baserow dane_n8n dane_db
# 3. Start the stack
docker compose -f docker-compose.rpi.yml up -d
| Service | Port | Description |
|---|---|---|
| Baserow | 80/443 | No-code database & UI |
| n8n | 5678 | Workflow automation & OCR |
| PostgreSQL | 5432 | Archive storage (bagandou-db) |
| Redis | 6379 | Task queue & caching |
Next steps
- Run
docker compose exec -T bagandou-db psql -U bagandou_admin -d baserow < struktura_baserow.sqlto initialize the archive schema. - Access the n8n dashboard at
http://localhost:5678to import then8n_workflow.json. - Load
formularz_odk.xmlonto your Android device to begin mobile document capture.
Connects securely to your tools. The creator never sees your data.
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
- Architecture Detection: Run
uname -mto select the correct Docker Compose file for your host machine. - Environment Setup: Configure the
.envfile with unique credentials and your Google Gemini API key for the OCR node. - Container Launch: Deploy the stack using Docker Compose to spin up Baserow, n8n, Redis, and PostgreSQL.
- 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.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 9 days ago
- Free with an Agensi account
- Accounts
- Google Gemini API Key
- Software
- Docker & Docker Compose
- 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
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.