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

@iteraai/vue-component-inspector

v0.2.0

Published

Browser bridge and iteration runtime for Vue 3 apps embedded in the hosted Itera editor.

Readme

@iteraai/vue-component-inspector

Browser bridge and iteration runtime for customer Vue 3 apps embedded in the hosted Itera editor.

This package provides the Vue implementation of the component inspector SDK for browser-based embedded apps.

Detailed customer integration guidance lives at iteraai.github.io/docs. Use this README for install commands, public entrypoints, and the current Vue bootstrap contract.

Documentation

Installation

npm install @iteraai/vue-component-inspector @iteraai/inspector-protocol vue

Peer dependency support:

  • vue: ^3.4.0

This package targets Vue 3 browser DOM runtimes. Vue 2, SSR-only entrypoints, and non-DOM renderers are out of scope for this package.

Public Entry Points

| Import path | Purpose | | ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | @iteraai/vue-component-inspector | Root exports for bootstrap helpers, bridge helpers, mounted-app registration, and Vue adapter/runtime config. | | @iteraai/vue-component-inspector/embeddedBootstrap | Embedded bootstrap helpers that can register Vue apps around app.mount(...). | | @iteraai/vue-component-inspector/bridgeRuntime | Low-level bridge initialization and teardown. | | @iteraai/vue-component-inspector/iterationInspector | Element-selection runtime and message types for iteration mode. | | @iteraai/vue-component-inspector/vite | Optional Vite plugin that injects richer file/line/column source metadata into Vue component options. |

Embedded Bridge Quick Start

Use the on-mount bootstrap helper when you want the standard embedded bridge behavior and explicit app registration:

import { createApp } from 'vue';
import {
  bootstrapEmbeddedInspectorBridgeOnMount,
} from '@iteraai/vue-component-inspector';
import { bootIterationInspectorRuntime } from '@iteraai/vue-component-inspector/iterationInspector';
import App from './App.vue';

const app = createApp(App);

const bridge = bootstrapEmbeddedInspectorBridgeOnMount(app, {
  enabled: true,
  hostOrigins: ['https://app.iteradev.ai', 'https://preview.iteradev.ai'],
});

bootIterationInspectorRuntime();
app.mount('#app');

window.addEventListener('beforeunload', () => {
  bridge.destroy();
});

Initialize the bridge during client startup, not from inside a mounted Vue component tree. For Vue, the preferred contract is explicit app registration through bootstrapEmbeddedInspectorBridgeOnMount(...) or registerVueAppOnMount(...) before or immediately around app.mount(...). Mounted-app DOM discovery remains fallback behavior when explicit registration is not used.

Optional Vite Source Metadata Plugin

Baseline runtime support reads best-effort Vue file metadata when it is available. If you want richer file, line, and column metadata in tree snapshots, add the optional Vite plugin:

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { createVueInspectorSourceMetadataVitePlugin } from '@iteraai/vue-component-inspector/vite';

export default defineConfig({
  plugins: [createVueInspectorSourceMetadataVitePlugin(), vue()],
});

The plugin is strictly opt-in. Apps that do not enable it continue to work with the runtime-only best-effort source metadata path.

Package Surface Summary

  • The standard embedded path uses the root export or @iteraai/vue-component-inspector/embeddedBootstrap.
  • Use @iteraai/vue-component-inspector/bridgeRuntime when you need lower-level bridge lifecycle or adapter control.
  • Use @iteraai/vue-component-inspector/iterationInspector for the separate element-selection runtime on itera:iteration-inspector.
  • Use @iteraai/vue-component-inspector/vite when you want compile-time source metadata injection for Vite-based Vue builds.
  • The exported adapter targets are auto and vue3.
  • The current supported runtime scope is Vue 3 browser DOM apps embedded in the hosted editor flow.