@archival-iiif/presentation-builder
TypeScript icon, indicating that this package has built-in type declarations

1.5.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @archival-iiif/presentation-builder

Weekly Downloads

27

Version

1.5.3

License

MIT

Unpacked Size

104 kB

Total Files

99

Last publish

Collaborators

  • kerim1
  • swiss-social-archives