Skip to content

archival-IIIF/presentation-builder

Repository files navigation

Material-UI logo

Archival IIIF presentation builder

Javascript library for generating IIIF manifests

Supported specifications

Installation

presentation-builder is available as an npm package.

// with npm
npm -i @archival-iiif/presentation-builder

// with yarn
yarn add @archival-iiif/presentation-builder

Usage

Code

import {Manifest} from "@archival-iiif/presentation-builder";

const m = new Manifest('https://example.org/iiif/book1/manifest', 'Book 1');
m.setContext();

JSON output

{
  "id": "https://example.org/iiif/book1/manifest", 
  "type": "Manifest",
  "@context": [
    "http://www.w3.org/ns/anno.jsonld",
    "http://iiif.io/api/presentation/3/context.json"
  ],
  "label": {"none": ["Book 1"]}
}

More examples

License

This software is released under the MIT license.

About

Javascript library for generating IIIF manifests

Topics

Resources

License

Stars

Watchers

Forks