Skip to content

Getting started

Install

bash
npm install @templatical/quality
bash
pnpm add @templatical/quality
bash
yarn add @templatical/quality
bash
bun add @templatical/quality

Wire into the editor

Pass accessibility to init() or initCloud():

ts
import { init } from "@templatical/editor";

const editor = init({
  container: "#editor",
  locale: "en",
  accessibility: {
    rules: {
      "img-missing-alt": "warning", // soften from default 'error'
      "text-all-caps": "off", // turn off entirely
    },
    thresholds: {
      minFontSize: 16,
    },
  },
});

The sidebar tab and inline canvas badges appear automatically once the optional peer is resolved. When accessibility.disabled === true, the editor never lazy-loads the package — no chunk download, no UI surface.

What's next