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

@anycms/a2ui-vue

v0.2.0

Published

Vue 3 renderer for A2UI v1.0.

Readme

@anycms/a2ui-vue

A Vue 3 renderer for A2UI v1.0. It renders the same server-driven A2UI message stream as the React renderer, but with native Vue 3 components.

It is a peer of @anycms/a2ui-react and @anycms/a2ui-dom. The A2UI binders, reactive runtime, and message processor are reused unchanged from @anycms/a2ui-core; only the adapter (createVueComponent / <A2uiSurface> / A2uiNode) and the 18 component Views are reimplemented for Vue.

Why

Drop-in A2UI rendering for Vue 3 apps — no React runtime, no manual DOM. Each bound node subscribes to its own reactive props stream from core, so data-model changes update the UI granularly, inputs preserve focus across re-renders, and Tabs/Modal preserve local UI state.

Install

pnpm add @anycms/a2ui-vue @anycms/a2ui-core

vue is a peer dependency (^3.4.0).

Usage

<script setup lang="ts">
import { A2uiSurface } from '@anycms/a2ui-vue';
// `surface` is a SurfaceModel produced by MessageProcessor.processMessages(...)
</script>

<template>
  <A2uiSurface :surface="surface" />
</template>

<A2uiSurface :surface :catalog? :registry?> renders the root component of a surface and provides the surface/catalog/registry to the tree. Each bound node self-subscribes to structural events (onCreated/onDeleted), so a component type-change rebuilds its binding and a late-arriving child mounts — without a top-level force-rerender.

The default registry (basicVueComponents) renders all 18 Basic Catalog components. Pass a custom registry to override individual components:

import { createVueComponent, basicVueComponents } from '@anycms/a2ui-vue';
import { textBinder } from '@anycms/a2ui-core';

const registry = new Map(basicVueComponents);
registry.set('Text', createVueComponent(textBinder, myTextView));

A View is a plain render function (vp: ComponentViewProps<P>) => VNodeChild (stateless) — or it may delegate to an internal defineComponent for local UI state, as Tabs and Modal do:

import { h, type VNodeChild } from 'vue';
import { createVueComponent, type ComponentViewProps } from '@anycms/a2ui-vue';
import { textBinder, type TextProps } from '@anycms/a2ui-core';

const TextView = ({ props }: ComponentViewProps<TextProps>): VNodeChild =>
  h('p', { class: 'a2ui-leaf' }, [props.text]);

export const registry = new Map([['Text', createVueComponent(textBinder, TextView)]]);

How it maps to the React adapter

| React | Vue | | --- | --- | | createReactComponent(binder, View) | createVueComponent(binder, View) | | <A2uiSurface> force-rerenders the tree on structural change | <A2uiSurface> provides context; each A2uiNode self-subscribes | | useState in Tabs/Modal | local ref in an internal defineComponent | | useState in the bound component for the props stream | shallowRef updated from propsStream.subscribe |

Styling

Mirrors the React vanilla preset: inline styles with the leaf-margin strategy (leaves carry 8px; containers flush) and semantic class hooks (a2ui-surface, a2ui-row, a2ui-column, a2ui-list, a2ui-leaf, a2ui-modal). No CSS framework required.

License

MIT © Liangdi