npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mizchi/vlmkit-markup

v0.11.1

Published

VLM-driven markup tooling for VRT: component extract, design-token / theme-parity / i18n-stress / palette checks, dep-graph, selector heal, smoke runner.

Readme

@mizchi/vlmkit-markup

VLM-driven markup-assistance tooling — component extraction, design-token conformance, theme parity, i18n stress, palette diff, dep-graph, selector heal.

Part of the vlmkit monorepo. Most modules double as CLI commands routed by the vlmkit CLI (vlmkit scan component, vlmkit check theme, vlmkit check tokens, vlmkit stress i18n|media, …).

Install

pnpm add @mizchi/vlmkit-markup

Usage

As a library

import {
  buildDepGraph,
  introspect,
  introspectToSpec,
  verifySpec,
  diffPalettes,
} from "@mizchi/vlmkit-markup";

const graph = await buildDepGraph(projectRoot);
const result = await introspect("./snapshots");
const spec = introspectToSpec(result);
const verification = verifySpec(spec, new Map([
  ["home", { a11yTree: homeTree, screenshotExists: true }],
]));

Spec sidecars

introspect("./snapshots") always reads *.a11y.json files. Optional sidecars enrich the generated low-cost invariants:

home.a11y.json
home.contrast.json
home.responsive.json

home.contrast.json may be the vlmkit check a11y contrast report shape:

{ "totalText": 2, "failures": [] }

home.responsive.json records viewport probes for coarse responsive checks:

{
  "snapshots": [
    { "viewport": { "width": 375, "height": 812 }, "clientWidth": 375, "scrollWidth": 375 },
    {
      "viewport": { "width": 1440, "height": 900 },
      "clientWidth": 1440,
      "scrollWidth": 1440,
      "regions": [{ "role": "main", "width": 960, "maxWidth": 960 }]
    }
  ]
}

The generated spec can now include heading-hierarchy, aria-relationships, color-contrast, and responsive-layout checks. verifySpec() accepts matching SpecPageData fields directly when the caller already has contrast samples, contrast failures, or responsive snapshots in memory.

CLI-style modules (deep import — Playwright required)

import { runDesignTokens } from "@mizchi/vlmkit-markup/style/design-tokens.ts";
import { runComponentFromImage } from "@mizchi/vlmkit-markup/component/component-from-image.ts";

What's included (library API)

| Domain | Module | Purpose | |---|---|---| | MoonBit policy core | markup-core, markup-core-cli | Pure component-goal, contract-plan, semantic-drilldown, and UI-contract evidence policy compiled to JS and called from TypeScript wrappers. | | Component geometry | component/component-geometry, component/component-bbox | BBox / DOM geometry helpers. | | Palette | style/palette-diff, style/palette-extract | Color extraction + diff. | | Project graph | inspect/dep-graph, inspect/introspect | Build dep graph; generate spec.json from a11y snapshots. | | Heal | heal/fix-prompt | Markdown fix-prompt for snapshot diffs. |

MoonBit core boundary

evaluateComponentGoal() keeps the public TypeScript API and report-summary formatting, but delegates the deterministic pass / review / fail decision to the MoonBit markup-core package through the generated markup-core-api JS module, with the generated CLI kept as a fallback and manual debugging surface. deriveComponentContractPlan() likewise keeps JSON object shaping in TypeScript while MoonBit owns probe-state normalization and scroll-target selection policy. buildSemanticDrilldown() keeps browser capture and overlap scoring in TypeScript while MoonBit owns layout-vs-decoration flow selection, priority scoring, reason ids, and next-action ordering. validateUiContract() keeps JSON traversal, issue paths, and report text in TypeScript while MoonBit owns pattern-specific evidence, boundary checks, layout-policy issue id selection, plus composition, decoration, marker, optional-range, metadata-presence, state, and expected-scrollport predicate ids.

This keeps the policy owner single while TypeScript continues to own file I/O, Playwright/browser integration, and package ergonomics.

What's included (CLI commands, deep import)

component-extract, component-from-image, component-consistency, design-tokens, theme-parity, i18n-stress, media-variants, cross-browser, multi-page-consistency, multi-state, interact, explore, heal/selector-heal.

License

MIT