Yet another collaborative spreadsheet.
简体中文 · Official Site · Documents · Blog · API
Sayrud is a self-hosted collaborative spreadsheet database for organizing shared data and automating work.
- Grid, kanban, gallery, and form views, each with its own filters, sorting, grouping, and visible fields.
- Text, number, date, single-select, multi-select, checkbox, attachment, and formula fields.
- Real-time collaboration with online presence and cell editing indicators, including across server instances.
- Visual workflows triggered by API requests, record changes, dates, or schedules. Query, create, and update records, branch on conditions, send email, and call HTTP services, with debugging, run history, and version rollback.
- Extend workflows with sandboxed JavaScript plugins, control network access, and add custom credentials.
- Custom JavaScript field shortcuts published by admins. They regenerate automatically when the referenced fields change.
- Import CSV, TSV, and Excel (
.xlsx/.xlsm) into new or existing tables, with previews, automatic field type detection, and field mapping. - Configurable OAuth2, OIDC, and SAML single sign-on, and LDAP authentication, with provider templates for GitHub, Google, Microsoft, Keycloak, and more.
- REST API with an OpenAPI specification.
You need Docker and Docker Compose v2. The image includes both the frontend and backend. Compose starts Sayrud, PostgreSQL, and Redis together.
git clone https://github.com/sayrud/sayrud.git
cd sayrud
cp config/sayrud.example.yaml config/sayrud.yamlEdit config/sayrud.yaml: use postgres as the PostgreSQL host and redis:6379 as the Redis address.
For production, change the password in postgres.dsn and POSTGRES_PASSWORD in docker-compose.yaml to the same value.
The default password, change-me, is for local use. Compose mounts config/sayrud.yaml read-only.
docker compose up -dOpen http://localhost:2830 to finish the setup wizard. The wizard asks for the one-time setup token printed in the
log, which docker compose logs sayrud | grep "Setup token" shows. To choose the token yourself, set the
SAYRUD_SETUP_TOKEN environment variable. Then create the system administrator. Data is stored in the postgres_data
volume.
To update:
docker compose pull
docker compose up -dBug reports and pull requests are welcome. Include steps to reproduce bugs, and keep each pull request focused on one change.
For development, you need Go 1.27, Node.js 22.13 or later, and pnpm 10. The Go backend is in cmd/ and internal/, and
the Vue and TypeScript frontend is in frontend/.
Start only the databases and copy the local configuration. Build the frontend once before running Go commands:
docker compose up -d --wait postgres redis
cp config/sayrud.example.yaml config/sayrud.yaml
pnpm --dir frontend install --frozen-lockfile
pnpm --dir frontend build
go run ./cmd/sayrud-server webThe server listens on port 2830 by default; use --port to choose another one, and --config to read another
configuration file.
If you change the database initialization password in docker-compose.yaml, use the same password in the PostgreSQL
connection in config/sayrud.yaml. Run docker compose stop sayrud if the Compose application is already using port 2830.
In another terminal, run pnpm --dir frontend dev and open http://localhost:5173. Vite proxies API and WebSocket
requests to the backend. Production builds embed frontend/dist with go:embed.
Before submitting a change:
pnpm --dir frontend lint
pnpm --dir frontend test
pnpm --dir frontend build
go test ./...When API definitions change, run bash scripts/generate.sh to update the OpenAPI files and frontend client.
Licensed under AGPL-3.0.