Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Installation

Install-time requirements, dependency setup, and minimal local configuration.

  1. Install dependencies at the repo root:
Terminal window
npm install
  1. Copy and edit environment variables:
Terminal window
cp .env.example .env

Set at least:

Terminal window
POSTGRES_PASSWORD=postgram
OPENAI_API_KEY=<your-openai-key>
LOG_LEVEL=info
PORT=3100
  1. (Optional but recommended) install global CLI:
Terminal window
npm install -g @ivotoby/postgram-cli
  1. Continue to Quick Start to boot the stack.
  • Required:
    • Node.js 22+
    • Docker and Docker Compose
    • OpenAI API key for embeddings
    • gpg for encrypted backups
  • Optional:
    • Anthropic API key for alternative extraction models
    • Ollama for local LLM extraction