Works with the AI Agents you already use

    Offline Document Digitizer Stack

    by Piotr Kołodziejski

    1

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

    Free

    Security scanned

    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
    
    ServicePortDescription
    Baserow80/443No-code database & UI
    n8n5678Workflow automation & OCR
    PostgreSQL5432Archive storage (bagandou-db)
    Redis6379Task queue & caching

    Next steps

    1. Run docker compose exec -T bagandou-db psql -U bagandou_admin -d baserow < struktura_baserow.sql to initialize the archive schema.
    2. Access the n8n dashboard at http://localhost:5678 to import the n8n_workflow.json.
    3. Load formularz_odk.xml onto 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

    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.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Network Access
    Write Files
    Read Files
    Environment Variables
    Listed9 days ago

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    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.

    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.

    Free