Getting Started

Configuration

Environment variables and settings

Environment Variables

Semeion is configured via environment variables. Key settings:

Core Settings

# Server
PORT=3000
NODE_ENV=production

# Database
DATABASE_URL=file:./data/semeion.db
# or for PostgreSQL:
# DATABASE_URL=postgresql://user:pass@host:5432/semeion

# Security
PII_SALT=your-random-salt-here
API_KEY=your-api-key

Scaling Settings

# Redis (for distributed caching)
REDIS_URL=redis://localhost:6379

# Rate limiting store: memory | sqlite | redis
RATE_LIMIT_STORE=redis

# Clustering thresholds
SIMILARITY_THRESHOLD=0.75
CLUSTER_HIGH_CONFIDENCE_THRESHOLD=0.92

Authentication

# Enable authentication
AUTH_ENABLED=true

# BetterAuth settings
BETTER_AUTH_SECRET=your-secret-key
BETTER_AUTH_URL=http://localhost:3000

Configuration File

For complex configurations, you can use a semeion.config.ts file in the project root.