Looking for the User Guide? Visit the Knowledge Hub at dasch.swiss for end-user documentation.
DaSCH Applications and Libraries Monorepo
DSP-APP is the user interface for the DaSCH Service Platform — a software framework for storing, sharing, and working with primary resources and data in the humanities. It connects to DSP-API via DSP-JS and is released under the GNU Affero General Public License.
This monorepo is built on:
- Bazel — Version pinned in
.bazelversion; every command is ajustrecipe - Angular — See package.json for current version
- Node.js — Version pinned in
MODULE.bazel
Quick Start
Enter the Nix dev shell from the repository root (nix develop, or automatically through direnv); it
provides Bazel, just, pnpm and Node. Then:
just install # npm dependencies from pnpm-lock.yaml
just test # every Bazel test target
Requires a running DSP-API backend. With a dsp-api checkout
at ../dsp-api (or DSP_API_DIR), just e2e-stack-up starts it with a fresh test database and
just e2e-stack-down stops it.
Every PR that touches apps/dsp-app/src/ or libs/ gets an automatic live preview deployed to Google Cloud Run — the URL is posted as a PR comment. You can also trigger a preview for any branch manually via the PR Preview workflow. To publish a Docker image directly from any branch (e.g. for a hotfix), trigger the Publish from branch workflow manually.
Quick Commands
Most common operations for daily development:
| Task | Command |
|---|---|
| List every recipe | just help |
| Run the Bazel tests | just test |
| Run the tests a change affects | just test-files -- <paths> |
| Lint all projects | just lint |
| Run the CI gate | just ci |
| Run E2E specs (stack up first) | just e2e <specs> |
| Browse all component stories | just storybook |
| Build static Storybook | just storybook-build |
| Run Storybook interaction tests | just storybook-test |
For all available commands, see the justfile.
Developer Guide
Working with Individual Libraries
A library built by Bazel is tested with just test //<package>/..., for example
just test //libs/dsp-js/....
Library path aliases are defined in tsconfig.base.json under paths. Main VRE libraries use the @dasch-swiss/vre/* namespace.
OpenAPI Client Generation
The TypeScript client for DSP-API is auto-generated from the OpenAPI spec:
just openapi-check # Check if the vendored spec matches the dev API's
just openapi-update # Update the spec and regenerate the client
just openapi-generate # Regenerate from the local spec only
Bazel generates the client in a build action; just openapi-generate also copies it to the gitignored
src/generated for the IDE.
See OpenAPI Client README for full details.
Local Observability
Run a Grafana stack alongside the app to view Faro telemetry (logs, traces, Web Vitals):
docker compose -f docker-compose.observability.yml up -d
Grafana is available at http://localhost:3001 (credentials: admin/admin). Includes Loki (logs), Tempo (traces), and Mimir (metrics).
To stop: docker compose -f docker-compose.observability.yml down
Storybook
A single global Storybook instance aggregates stories from all libraries and apps:
just storybook # Serve the Bazel-built Storybook (http://localhost:4400)
just storybook-build # Build it to bazel-bin/storybook/
just storybook-test # Build, serve and run the story interaction tests
Stories are auto-discovered from any *.stories.ts file under libs/ or apps/ — no registration needed when adding new stories.
Issues & Contributions
To report an issue or contribute, contact us at support@dasch.swiss.