Skip to content

About

Open, interoperable database for the physicochemical analysis of written heritage, built on Arches, modelled with CIDOC-CRM and published through IIIF.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,050 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ManuSpectrum

Physicochemical analyses of written heritage, open and interoperable

XRF, Raman, FTIR, FORS and imaging data on manuscripts, printed books and inscriptions,
structured with CIDOC-CRM and published through IIIF.

CI Deploy kit Release Licence: AGPL-3.0

Built on Arches Django 5.2 Python 3.11–3.13 Vue 3 IIIF Presentation 3 CIDOC-CRM Biblissima+

Platform · Releases · Deployment · Data package · Cite


Powered by Arches


Why ManuSpectrum?

Heritage scientists measure manuscripts with many instruments: macro-XRF maps, Raman and FTIR spectra, fibre-optic reflectance, multispectral and hyperspectral imaging. The results usually stay in lab folders, in formats only their instrument reads, cut off from the page they describe.

ManuSpectrum brings them together. Every analysis is tied to the document, the folio and the exact zone it was measured on, described with a shared vocabulary, and published as open IIIF annotations. Anyone can read them in the platform's own Data Lab or in any standard IIIF viewer.

A manuscript on the motorised stage of a macro-XRF scanner An optical fibre held over a manuscript for FORS analysis A manuscript under ultraviolet light during hyperspectral imaging
Macro-XRF scanning
elemental maps, without contact
FORS
the spectral signature of pigments
UV hyperspectral imaging
what the eye cannot see

© Centre de Recherche sur la Conservation (CRC), 2025

✨ Highlights

🔎 Data Lab The Analysis Explorer, a public Vue 3 application at /{lang}/discover shown to visitors as « Data Lab » / « Laboratoire des données » (« explorer » in code, APIs and URLs): filter the corpus by technique, material, colour, place and period, open a document, and build a Selection.
📈 Compare Spectra side by side in resizable windows, with their treatments (normalisation, derivatives…), a linked focus across plots, tables, maps and the folio, a coverage matrix and a periodic table.
🖼️ Light table Every imaging layer of a selection in synchronised panes, a curtain between any two canvases, false-colour stacks of elemental maps.
🌐 IIIF everywhere Presentation 3 and 2.1 manifests and annotations, Content State links to a single zone, IIIF Authorization for restricted files, and xyReading, a small IIIF extension that tells a viewer how to plot a spectrum.
📦 Open exports Spectra as clean CSV (never decimated), whole projects as RO-Crate 1.2 packages, citations generated for every product.
🏛️ Linked to the libraries Documents imported from Biblissima with their identifiers, manifests and illuminations.
🧭 Shared vocabularies Controlled lists published as SKOS in a separate data package (CC BY), with English and French labels.
🔐 Careful with data Embargoes with automatic lifting, per-field restrictions, two-factor sign-in, accounts created by invitation only, personal data kept to a minimum.

The interface is fully bilingual (English and French).

🧩 How it fits together

flowchart LR
    %% Sources
    subgraph SRC["📥 Sources"]
        direction TB
        LAB["🔬 <b>Laboratories</b><br/>XRF · Raman · FTIR · FORS<br/>multispectral & hyperspectral imaging"]
        BIB["📚 <b>Biblissima</b><br/>manuscripts, holdings,<br/>IIIF manifests"]
        LIB["🏛️ <b>Libraries' IIIF servers</b><br/>digitised folios"]
    end

    %% Entry
    subgraph IN["✍️ Data entry"]
        direction TB
        WF["Workflows<br/><i>New project · Import Biblissima</i>"]
        CARD["Resource editor<br/><i>cards, XY renderer,<br/>imaging layers</i>"]
        BULK["Bulk Data Manager<br/><i>Excel / CSV imports</i>"]
    end

    %% Core
    subgraph CORE["🧠 ManuSpectrum on Arches"]
        direction TB
        MODEL["<b>CIDOC-CRM / CRMsci graphs</b><br/>Project · Document · Component<br/>Analysis · Interpretation · Sample …"]
        VOC["<b>SKOS vocabularies</b><br/>techniques, materials,<br/>colours, places"]
        RULES["<b>Rules on the server</b><br/>permissions · embargoes<br/>XY configuration triggers"]
        DB[("PostgreSQL / PostGIS")]
        ES[("Elasticsearch")]
        IMG["Cantaloupe<br/><i>IIIF Image API</i>"]
        MODEL --- DB
        VOC --- DB
        RULES --- DB
        DB --> ES
    end

    %% Publication
    subgraph OUT["🌐 Open products"]
        direction TB
        IIIF["<b>IIIF</b> Presentation 3 & 2.1<br/>annotations · Content State<br/>xyReading · Auth"]
        EXP["<b>Exports</b><br/>clean CSV spectra<br/>RO-Crate packages · citations"]
        APIX["<b>Explorer API</b><br/>corpus, facets, synthesis"]
    end

    %% Readers
    subgraph READ["👀 Readers"]
        direction TB
        EXPL["🔎 <b>Data Lab</b> (Analysis Explorer)<br/>Corpus · Compare · Light table<br/>Map & timeline"]
        MIR["🧩 <b>Mirador + mirador-xyviewer</b><br/>spectra on the folio"]
        ANY["🤖 Any IIIF viewer,<br/>harvesters, notebooks"]
    end

    LAB --> WF & CARD & BULK
    BIB --> WF
    LIB -. images .-> IMG
    WF & CARD & BULK --> MODEL
    CORE --> IIIF & EXP & APIX
    IMG --> IIIF
    APIX --> EXPL
    IIIF --> EXPL & MIR & ANY
    EXP --> ANY

    classDef src fill:#fff7e6,stroke:#b7791f,color:#3d2a00
    classDef entry fill:#eef6ff,stroke:#2b6cb0,color:#0b2545
    classDef core fill:#f3ecff,stroke:#6b46c1,color:#22104a
    classDef out fill:#e9f8ef,stroke:#2f855a,color:#0f3a22
    classDef read fill:#fdeeee,stroke:#c53030,color:#4a0d0d
    class LAB,BIB,LIB src
    class WF,CARD,BULK entry
    class MODEL,VOC,RULES,DB,ES,IMG core
    class IIIF,EXP,APIX out
    class EXPL,MIR,ANY read
Loading

Spectra are drawn straight from IIIF annotations by mirador-xyviewer, the companion Mirador 4 plugin: the data is never locked inside the platform.

🛠️ Built with

  • Arches: the open-source heritage data platform it extends, with project datatypes, functions, widgets, search components and workflows.
  • Django 5.2, PostgreSQL / PostGIS, Elasticsearch 8, Celery and Redis.
  • Vue 3 + TypeScript for the public applications, Knockout where Arches requires it, Plotly, Leaflet and MapLibre for plots and maps.
  • Cantaloupe for IIIF images, nginx at the edge.
  • Data modelled on CIDOC-CRM and CRMsci, with controlled lists in SKOS.

🚀 Getting started (development)

Requirements: Python 3.11 to 3.13, Node.js, PostgreSQL with PostGIS, Elasticsearch 8 and Redis, as for any Arches project.

git clone --recurse-submodules https://github.com/CRC-Centre-Recherche-Conservation/ManuSpectrum.git
cd ManuSpectrum

python -m venv ../venv && ../venv/bin/pip install -e .   # or: uv sync
npm install

# Local settings (database, Elasticsearch, Redis) go in manuspectrum/settings_local.py
../venv/bin/python manage.py setup_db
../venv/bin/python manage.py packages -o load_package -s pkg -db -y

npm start                                   # webpack dev server
../venv/bin/python manage.py runserver      # then open http://localhost:8000/

Useful checks before a pull request:

npm run eslint:check && npm run prettier:check && npm run ts:check
../venv/bin/black --check manuspectrum tests
../venv/bin/python manage.py test tests.<module> --settings=tests.test_settings

🐳 Deployment

Production runs as a Docker Compose stack (web, workers, PostgreSQL, Elasticsearch, Redis, Cantaloupe, nginx, backups and monitoring), installed on the host by Ansible. Releases are signed v* tags: each image is scanned, signed and verified before the host installs it, with an automatic rollback if it does not come up healthy.

Start with deploy/README.md, then: releases · backups · monitoring · administration · secrets.

🤝 Contributing

Issues and pull requests are welcome: read CONTRIBUTING.md first. Branches start from dev (the integration branch); main holds what is released. Please report vulnerabilities privately, as described in SECURITY.md, and follow the code of conduct.

📚 Cite ManuSpectrum

If you reuse the platform or its data, please cite it (GitHub's Cite this repository button reads CITATION.cff), and credit the laboratory that deposited each record.

Michelin, A., Kagan, G., Humeau, M. ManuSpectrum: a platform for the physicochemical analysis of written heritage. Centre de Recherche sur la Conservation (CRC). https://github.com/CRC-Centre-Recherche-Conservation/ManuSpectrum

📄 Licence

  • Code: GNU AGPL-3.0, like Arches.
  • Data: each record and file states its own licence; read it before reuse.
  • Data package (models and vocabularies): CC BY, see manuspectrum-pkg.
  • Third-party credits are listed in NOTICE.

🙏 Partners and funding

ManuSpectrum is developed at the Centre de Recherche sur la Conservation (CRC, UAR 3224: CNRS, Muséum national d'Histoire naturelle, Ministère de la Culture), with the IRHT (CNRS), as a project of the Biblissima+ Cluster 2, funded by the French National Research Agency (ANR-21-ESRE-0005). It is hosted by Huma-Num.

CRC    CNRS    Biblissima+    ANR    Huma-Num

About

Open, interoperable database for the physicochemical analysis of written heritage, built on Arches, modelled with CIDOC-CRM and published through IIIF.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages