Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.stashy.sh/llms.txt

Use this file to discover all available pages before exploring further.

Stashy auto-detects the database driver from the DB_DSN connection string.

Supported Databases

DSN prefixDatabase
file:stashy.dbSQLite (default)
postgres://user:pass@host/dbPostgreSQL

SQLite (Default)

Zero-config — just works out of the box:
DB_DSN=file:stashy.db  # default
Good for single-instance deployments. The file is created automatically.

PostgreSQL

DB_DSN=postgres://stashy:secret@localhost:5432/stashy?sslmode=disable
Recommended for production multi-instance setups.

Migrations

Migrations are managed by goose. Run them with:
stashy migrate              # run migrations and exit
stashy serve --migrate      # run migrations then start server
Always run migrations before starting a new version of Stashy.