New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

axis-iiif

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axis-iiif

An experiment in observing IIIF Change Discovery.

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Axis IIIF

An experimental UI for interacting with IIIF Change Discovery API.

Demo | Code

image

Usage

Axis allows for consuming applications to be returned an array of IIIF Presentation API resources by their id URI. From this array, a consuming application would be able to update local resources compatible with Manifest or Collection shapes.

Cart Callback

Example using cartCallback to return an array of strings string[] to your consuming application.

const id = "https://example.org/iiif/change-discovery.json";

const handleCartCallback = (resources) => {
  if (resources) console.log(resources);

  /**
   * Output:
   *
   * Array [ "https://example.org/iiif/...", "https://example.org/iiif/...." ]
   *  0: "https://example.org/iiif/manifest/821"
   *  1: "https://example.org/iiif/manifest/1187"
   *  length: 2
   */
};

return <AxisIIIF id={id} cartCallback={handleCartCallback} />;

Development

Environment

This will open up a local dev server with live reloading.

npm install
npm run dev

Build

This will build and package the component

npm run build

This will create a static version of the site to the /static directory

npm run build:static

Keywords

FAQs

Package last updated on 05 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc