Skip to content

Install with npm

The public package is @projekt-ansichtssache/accessibility-widget. It includes three bundle variants; pick one based on where optional fonts should be served.

Install the published version:

Terminal window
npm install @projekt-ansichtssache/accessibility-widget

The package’s default entry points (main and browser) load the readable standard browser bundle, accessibility-widget.js:

import "@projekt-ansichtssache/accessibility-widget";

To use the embedded-font variant instead, import that file explicitly:

import "@projekt-ansichtssache/accessibility-widget/accessibility-widget.embedded-fonts.min.js";

The npm package contains only the standard and embedded-font bundles. The self-hosted-font bundle is available from the latest GitHub release, not from npm; see Self-hosting for deployment instructions.

All variants are side-effect browser IIFEs: they initialize when the document is ready and export no functions or framework components. Include only one variant, once per page. The npm version is distinct from the private repository package version; see jsDelivr installation for release versioning.

Import the package only from code that runs in the browser. It accesses document during module evaluation, so do not import it from server-only code or a module evaluated during server-side rendering. In an SSR application, load it from a client-only entry point or browser lifecycle hook.

There is no required stylesheet or runtime dependency. The widget injects its UI styles. Your Content Security Policy must allow the bundle, and strict style restrictions can affect dynamically inserted styles. Review the privacy notes for each variant’s network requests and CSP requirements.