
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@templatical/quality
Advanced tools
Accessibility linter for Templatical email templates. Runs in the browser or on Node.
Deterministic accessibility checks against the JSON TemplateContent block tree — missing alt text, low-contrast text and buttons, vague link / CTA copy, heading-skip, undersized touch targets, and more. Same package validates inside the editor (live sidebar tab + canvas badges) and in headless / CI checks.
MIT-licensed, JSON-only, no Vue, no DOM. Optional peer of @templatical/editor.
npm install @templatical/quality
import { lintAccessibility } from "@templatical/quality";
import type { TemplateContent } from "@templatical/types";
const content: TemplateContent = JSON.parse(stored);
const issues = lintAccessibility(content);
for (const issue of issues) {
console.log(`[${issue.severity}] ${issue.ruleId}: ${issue.message}`);
}
lintAccessibility(content, options?) is synchronous and pure — no DOM, no network, no fetch.
@templatical/editor lazy-imports this package on demand. Pass accessibility to init() / initCloud():
import { init } from "@templatical/editor";
init({
container: "#editor",
locale: "en",
accessibility: {
rules: {
"img-missing-alt": "warning",
"text-all-caps": "off",
},
thresholds: { minFontSize: 16 },
},
});
The sidebar tab and inline canvas badges appear automatically once this peer is resolved.
Compose your own walkers using the same primitives the package ships:
import { walkBlocks, getContrastRatio } from "@templatical/quality";
walkBlocks(content, (block, ctx) => {
if (block.type === "title" && block.color) {
const ratio = getContrastRatio(block.color, ctx.resolvedBackgroundColor);
if (ratio < 4.5) {
console.warn(`Heading ${block.id} contrast ${ratio.toFixed(2)}:1`);
}
}
});
FAQs
Accessibility linter for Templatical email templates
The npm package @templatical/quality receives a total of 1,540 weekly downloads. As such, @templatical/quality popularity was classified as popular.
We found that @templatical/quality demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.