Installation
Installation
Section titled “Installation”From Source (Cargo)
Section titled “From Source (Cargo)”# Clone the repositorygit clone https://github.com/storyvis/pgvis.gitcd pgvis
# Build release binarycargo build --release --bin pgvis
# The binary is at ./target/release/pgvisIf you have Nix with flakes enabled:
# Buildnix build github:storyvis/pgvis
# Or run directlynix run github:storyvis/pgvis -- serve --dsn "postgres://localhost/mydb"
# Development shellnix developDocker (Coming Soon)
Section titled “Docker (Coming Soon)”docker run -e PGVIS_DSN="postgres://host.docker.internal/mydb" \ storyvisai/pgvis serve --bind 0.0.0.0:3000Verifying Installation
Section titled “Verifying Installation”pgvis --versionpgvis --helpConfiguration
Section titled “Configuration”pgvis reads configuration from environment variables prefixed with PGVIS_:
| Variable | Purpose | Default |
|---|---|---|
PGVIS_DSN | Database connection string | required |
PGVIS_BIND | Server bind address | 0.0.0.0:3000 |
PGVIS_SCHEMAS | Schemas to expose (comma-separated) | public |
PGVIS_JWT_SECRET | JWT verification secret | none (anonymous) |
PGVIS_ANON_ROLE | Role for unauthenticated requests | none |
PGVIS_MAX_ROWS | Maximum rows returned | unlimited |
See the Configuration Reference for the full list.