Read-only mirror of https://github.com/sfa-siard/siard-suite — Schweizerisches Bundesarchiv. Issues & pull requests at the source. Catalog: https://www.opensource.admin.ch/en/softwares/wa9g41 https://www.opensource.admin.ch/en/softwares/wa9g41
  • Java 91.2%
  • HTML 3.8%
  • TypeScript 3.3%
  • ANTLR 0.9%
  • CSS 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dona-puzzle 3618007b46
feat:(siard-web/local): users roles and privileges in archive browsing (#236)
* feat: users, roles, privileges in archive browsing

* doc: web-app-differences-from-desktop.md

Co-authored-by: Claude AI <noreply@anthropic.com>
2026-12-02 09:57:06 +01:00
.agents/skills
.claude/skills
.devin/skills
.github feat(siard-web): connection profile management (#226) 2026-11-24 11:12:31 +01:00
.idea
.ua
docker
docs feat:(siard-web/local): users roles and privileges in archive browsing (#236) 2026-12-02 09:57:06 +01:00
gradle feat(siard-web): connection profile management (#226) 2026-11-24 11:12:31 +01:00
jdbc-access
jdbc-base fix: prevent candidate key loss for postgres, mssql and db2 (#213) 2026-11-17 07:16:52 +01:00
jdbc-db2 fix: prevent candidate key loss for postgres, mssql and db2 (#213) 2026-11-17 07:16:52 +01:00
jdbc-mssql fix: prevent candidate key loss for postgres, mssql and db2 (#213) 2026-11-17 07:16:52 +01:00
jdbc-mysql
jdbc-oracle
jdbc-postgres fix: prevent candidate key loss for postgres, mssql and db2 (#213) 2026-11-17 07:16:52 +01:00
openspec feat:(siard-web/local): users roles and privileges in archive browsing (#236) 2026-12-02 09:57:06 +01:00
scripts
siard-api feat(siard-web): local file chooser and opening archives from the start page (#247) 2026-11-30 10:16:37 +01:00
siard-cmd test: consolidate oracle regression fixtures (#221) 2026-11-20 13:31:39 +01:00
siard-suite-app
siard-utilities feat(siard-web): add archive browsing core (#223) 2026-11-24 14:22:44 +01:00
siard-web feat:(siard-web/local): users roles and privileges in archive browsing (#236) 2026-12-02 09:57:06 +01:00
sql-parser
zip64-file feat(siard-web): add archive browsing core (#223) 2026-11-24 14:22:44 +01:00
.CLAUDE.md
.git-blame-ignore-revs
.gitignore feat(siard-web): connection profile management (#226) 2026-11-24 11:12:31 +01:00
AGENTS.md feat:(siard-web/local): users roles and privileges in archive browsing (#236) 2026-12-02 09:57:06 +01:00
build.gradle.kts
CHANGELOG.md Feat/restructure into siard web (#217) 2026-11-18 09:33:23 +01:00
gradle.properties chore: reduce PR pipeline duration (#218) 2026-11-17 14:07:04 +01:00
gradlew
gradlew.bat
harness-notes.md feat: local webapp setup (#193) 2026-11-16 09:14:54 +01:00
justfile feat: local web app start page (#222) 2026-11-20 10:40:32 +01:00
LICENSE.txt
mise.toml Feat/restructure into siard web (#217) 2026-11-18 09:33:23 +01:00
publiccode.yml
README.md feat: local webapp setup (#193) 2026-11-16 09:14:54 +01:00
release-guide.md
settings.gradle.kts Feat/restructure into siard web (#217) 2026-11-18 09:33:23 +01:00
user-manual.pdf

SIARD Suite 2.2

CI License: CDDL-1.0 GitHub release

About

SIARD Suite is a comprehensive toolset for archiving relational databases in the SIARD (Software-Independent Archival of Relational Databases) format. The suite ensures long-term preservation and accessibility of database contents, independent of the original database management system.

Learn more about the project:

Experimental: Understand Anything

Understand Anything is a project that helps understand what the code really does. This projects knowledge graph is commited and you can view it locally, either using your coding agent or just using npx.

First install the plugin and then run the dashboard:

mise install
GRAPH_DIR="$PWD" pnpm -C ~/.understand-anything-plugin/packages/dashboard exec vite --host 127.0.0.1 

or use the provided skill using your coding agent:

/understand-dashboard 

Declaration

Contributions to the codebase have been and will be made with the support of AI-assisted coding tools. All contributions are reviewed by human maintainers before merging, and contributors remain responsible for the code they submit.

When AI tools meaningfully contribute to a change, this is should be disclosed via a Co-Authored-By: or Assisted-By: trailer in the commit message.

Developer Setup

Install everything with mise:

mise install

You'll also need Docker

If you dont want to use mise, install:

Running the Application

Note: There is a justfile that provides convenient aliases for common tasks.

GUI Application:

./gradlew :siard-suite-app:run

Command-Line Interface:

The siard CLI is distributed separately as siard-cli — releases ship native installers (.msi/.exe, .deb/.rpm, .dmg) and runtime-bundled image zips per OS. It is not included in the SIARD Suite installer.

For development, build the plain distribution (requires Java 21):

./gradlew :siard-cmd:installDist

Then run the CLI:

# Download database to SIARD archive
./siard-cmd/build/install/siard/bin/siard archive --jdbc-url=<url> --user=<user> --password=<password> --siard-file=<file>

# Upload SIARD archive to database
./siard-cmd/build/install/siard/bin/siard restore --jdbc-url=<url> --user=<user> --password=<password> --siard-file=<file>

Or build a runtime-bundled image (no Java needed to run):

./gradlew :siard-cmd:runtimeZip
# unzip siard-cmd/build/image-zip/siard-cli-*.zip and run bin/siard

Building the Project

Build all modules:

./gradlew clean build -x test

Note: running all tests takes quite long!

Build specific module:

./gradlew :module-name:build

The build creates distributions in build/distributions/ with executable scripts and all dependencies.

Running Tests

Run all tests:

./gradlew test

Run tests for a specific module:

./gradlew :module-name:test

Examples:

./gradlew :siard-api:test           # Core API tests
./gradlew :jdbc-postgres:test       # PostgreSQL wrapper tests
./gradlew :siard-cmd:test           # CLI tests

Integration tests (siard-cmd):

./gradlew :siard-cmd:integrationTest                    # All integration tests
./gradlew :siard-cmd:integrationTestPostgres            # PostgreSQL only
./gradlew :siard-cmd:integrationTestMysql               # MySQL only

Note: all tests require Docker to be running (uses Testcontainers).

Spec-Driven Development (OpenSpec)

OpenSpec (https://openspec.dev/) has been set up for Devin and claude code.
Install it following https://openspec.dev/docs/installation.

If you are using another AI, add it following https://openspec.dev/docs/setup. Note that the optional skills new, continue, ff and verify should be added. Verify is required for this project.

How to use:

Ask for OpenSpec skills in plain language from your AI chat. To make sure the right skill runs, call it by name, e.g. in Claude Code:

/openspec-explore How could rate limiting work in this app?

Workflow

  1. Explore: think the idea through with your agent.
  2. Propose: the agent writes the plan to openspec/changes/<change-name>/: proposal.md, specs/, tasks.md, and optionally design.md. Review it before applying. Edit the files directly or ask the agent to revise them. To build the plan step by step instead: new (empty scaffold), continue (next artifact), ff (generate the rest).
  3. Apply: the agent works through tasks.md, checking off tasks as it goes, then runs verify automatically.
  4. Archive: the agent merges the change's specs into openspec/specs/ (asks for your approval first) and moves the change to the archive. It also records gaps in our agent setup in openspec/agent-guidance-suggestions.md. Review them and promote useful ones into AGENTS.md or openspec/config.yaml.

Dependency Analysis

The project uses the Dependency Analysis Gradle Plugin to detect dependency issues.

Analyze all dependencies:

./gradlew buildHealth

This generates a report showing:

  • Unused dependencies: Dependencies declared but not actually used in code
  • Used transitive dependencies: Dependencies used in code but not explicitly declared
  • Misused dependencies: Dependencies that should use a different configuration (e.g., api instead of implementation)

View the report:

# Console output shows summary
./gradlew buildHealth

# Detailed HTML report
open build/reports/dependency-analysis/build-health-report.html

Fix issues automatically (where possible):

./gradlew buildHealth --auto-correct

Analyze a specific module:

./gradlew :module-name:buildHealth

Note: The plugin may suggest removing dependencies that are actually needed as transitive dependencies. Always verify suggestions before applying them.

Creating Platform-Specific Packages

Create application image:

./gradlew jpackageImage

The image will be available at ./build/jpackage/siard-suite (OS-specific). The CLI image is built with :siard-cmd:jpackageImage (or :siard-cmd:runtimeZip for the zipped image).

Create installer:

./gradlew jpackage

Creates platform-specific installers for both SIARD Suite and the siard CLI (siard-cli-<version>-<os>.dmg/.msi/.deb, …). On Windows and Linux a second CLI installer type is produced with:

./gradlew :siard-cmd:jpackage -PinstallerType=exe   # Windows (default: msi)
./gradlew :siard-cmd:jpackage -PinstallerType=rpm   # Linux (default: deb, needs rpmbuild)

Ubuntu users: Install rpm (provides rpmbuild) to build RPM installers:

sudo apt install rpm

Versioning and Releases

⚠️ Read the release guide before creating releases!

Versions follow the SIARD format version (2.2.x) and are managed with the Axion Release Plugin.

Check current version:

./gradlew currentVersion

Create a release:

./gradlew release

This creates a tag and pushes it to remote, triggering GitHub Actions to build deliverables.

Note: Official GitHub releases must be created manually by BAR.

Documentation

Documentation is written in AsciiDoc and bundled with the application.

Generate PDF documentation:

./gradlew :siard-suite-app:asciidoctorPdf

Code Formatting & Git Blame

We recently performed a bulk reformatting of the entire Java codebase to standardize our style. To avoid seeing "style-only" changes when using git blame, we use a .git-blame-ignore-revs file. This file contains the commit hashes of the formatting commits. Github will automatically use this file and does not show the formatting commits in the blame.

To ignore these formatting commits in your local terminal or IDE, run the following command once in the project root:

git config blame.ignoreRevsFile .git-blame-ignore-revs