OpenResearchWorkspace should be usable without requiring GitHub, GitLab, Git, or any hosted forge.
The target architecture separates:
- the ORW specification and canonical project model;
- a provider-neutral generation/validation/export core;
- researcher-facing interfaces such as a CLI and browser generator;
- optional forge adapters such as GitHub Actions.
GitHub remains a supported reference deployment, but it must not define what an ORW workspace is.
ORW specification
│
▼
canonical schemas + generation contract
│
┌─────────┼─────────┐
│ │ │
▼ ▼ ▼
ORW CLI Browser UI GitHub adapter
│ │ │
└─────────┼─────────┘
▼
ORW workspace
│
┌────────┼────────┐
▼ ▼ ▼
validate export collaborate
│
▼
RO-Crate
The same user input must produce semantically equivalent workspaces regardless of interface.
Provider-neutral scientific generation lives in this repository under src/orw/.
The GitHub-specific adapter now lives separately in:
dhuzard/OpenResearchWorkspace-template
├── .github/ISSUE_TEMPLATE/orw-setup.yml
├── .github/workflows/initialize-project.yml
└── scripts/
├── parse_setup_issue.py
└── initialize_project.py
The published template adapter installs an immutable pinned revision of this canonical ORW core during initialization. Its source assets are maintained under github-template/ in this repository and assembled by scripts/build_github_template.py; OpenResearchWorkspace-template is generated output. The adapter handles GitHub form parsing, permissions, checkout/commit/push, and user feedback; it does not contain an independent scientific workspace generator.
Before implementing a CLI or browser UI, define one normalized setup payload.
Example:
{
"project_title": "Effects of light exposure on mouse activity",
"project_description": "Study of altered light exposure and spontaneous activity.",
"creator": {
"name": "Jane Researcher",
"orcid": "0000-0000-0000-0000"
},
"first_study": {
"title": "Light exposure study"
},
"first_assay": {
"title": "Behaviour"
},
"data": {
"location": "Institutional research server",
"access": "private"
},
"keywords": ["behaviour", "circadian rhythm", "mouse"]
}This input contract should be schema-validated and independent of GitHub fields such as github_login.
Provider-specific identity may be added as optional implementation metadata, not as required scientific metadata.
Workspace generation is exposed as provider-neutral Python functions that accept structured input and an output directory.
Suggested target:
src/orw/
├── __init__.py
├── model.py
├── initialize.py
├── validate.py
├── export/
│ └── rocrate.py
└── templates/
Conceptual API:
from pathlib import Path
from orw.initialize import create_workspace
create_workspace(
config=setup_config,
destination=Path("my-study"),
)Important properties:
- no dependency on GitHub environment variables;
- no implicit use of the current repository root;
- deterministic output;
- refusal to overwrite an initialized workspace unless explicitly allowed;
- validation before writing;
- clear machine-readable errors;
- unit-testable without network access.
The dedicated GitHub template workflow calls this same core through a pinned canonical revision.
orw init my-study
orw validate my-study
orw export my-study --format ro-crateInteractive mode:
Project title:
Short description:
Your name:
ORCID (optional):
First study:
First measurement/assay:
Authoritative data location:
Data access [private/restricted/embargoed/open/unknown]:
Keywords:
Non-interactive mode should also be supported for automation:
orw init my-study --config setup.jsonReturn both human-readable and machine-readable output.
orw validate my-study
orw validate my-study --jsonExit status:
0: valid;- non-zero: validation failure.
First target:
orw export my-study --format ro-crate --output dist/my-study-ro-crateLater targets may include ISA-JSON, ISA-Tab, DataCite metadata, and repository-specific deposit packages.
The CLI should be installable using a standard Python distribution route, for example:
pipx install openresearchworkspaceThe package name and publication target should be confirmed before release.
The browser generator should be a static, client-side application where possible.
Open ORW generator
↓
Fill simple scientific form
↓
Validate entries locally
↓
Preview Investigation / Study / Assay structure
↓
Create workspace
↓
Download .zip
Optional next actions:
Download ORW ZIP
Download RO-Crate
Push to a supported forge
Save to institutional storage
Only the first two need to exist for the first browser release.
Default behavior should require:
- no account;
- no Git provider;
- no server-side database;
- no persistence of entered metadata;
- no upload of user files to an ORW service.
Workspace generation should occur in the browser and produce a local download.
Two approaches are reasonable.
Advantages:
- small deployment footprint;
- fast startup;
- easy ZIP generation;
- works on ordinary static hosting.
Risk:
- duplicates some generation logic from the Python core.
Mitigation:
- share JSON Schemas, templates, and golden input/output fixtures;
- require contract tests against the CLI output.
For example, using a browser Python runtime.
Advantage:
- maximum code reuse.
Costs:
- larger initial download;
- more complex packaging;
- slower startup;
- more deployment/debugging complexity.
For ORW, approach A is the better first implementation unless contract drift becomes a real maintenance problem.
The CLI, browser generator, and GitHub adapter should be tested against the same fixtures.
For each fixture:
setup input
↓
expected project.yml
expected folder tree
expected README semantic fields
The test does not need byte-identical README formatting across interfaces, but canonical machine-readable output must match.
Initial fixtures:
- basic experimental project;
- multiple keywords + ORCID;
- restricted external data;
- assay omitted because it is not scientifically applicable;
- unusual but valid Unicode project metadata;
- invalid ORCID;
- attempted overwrite of initialized workspace.
The current GitHub setup remains useful.
Target workflow:
GitHub issue form
↓
parse GitHub-specific form
↓
normalized ORW setup payload
↓
ORW core generator
↓
commit generated workspace
GitHub-specific code should only handle:
- permissions;
- issue/form parsing;
- repository checkout/commit/push;
- user feedback in GitHub.
It should not contain a separate scientific workspace implementation.
The same principle can later support GitLab, Forgejo/Codeberg, or institutional systems.
The browser generator should be buildable as static assets:
dist/
├── index.html
├── assets/
└── ...
Those files could be hosted on:
- an ORW project website;
- GitHub Pages;
- GitLab Pages;
- Codeberg Pages;
- institutional web hosting;
- a local web server.
The application must not depend on the hostname on which it is served.
- normalized setup schema;
- pure workspace generator;
- tests;
- GitHub adapter separated into
OpenResearchWorkspace-templateand pinned to the canonical core.
orw init;orw validate;- installable Python package metadata;
- non-interactive JSON/stdin setup;
- machine-readable validation reports;
- installed-command E2E test outside the source checkout.
The package is not yet published to PyPI; see docs/cli.md.
- ORW → RO-Crate 1.3 mapping;
orw export --format ro-crate;- source-workspace and generated-crate validation;
- conservative access-aware attachment policy;
- representative and golden mapping fixtures.
A dedicated ORW RO-Crate Profile remains a later step after broader mapping evidence.
- static form;
- local validation;
- structure preview;
- ZIP download;
- contract tests against CLI fixtures.
Only after the portable path works:
- GitLab;
- Forgejo/Codeberg;
- institutional deployment;
- direct repository/deposition integrations.
ORW is genuinely forge-agnostic when all of the following are true:
- a valid ORW workspace can be created without Git;
- the same workspace can be created from CLI, browser, or GitHub;
.research/project.ymlhas the same semantics across implementations;- validation runs locally without a hosted service;
- RO-Crate export runs locally;
- deleting
.github/does not make the scientific workspace invalid; - GitHub-specific metadata is optional and never required for scientific interpretation.