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

vue-remote-component

v1.4.1

Published

A `<remote-component>` loads a Vue.js component at runtime from an URL, e.g., from https://unpkg.com/.

Readme

Vue Remote Component

A <remote-component> loads a Vue.js component at runtime from an URL, e.g., from https://unpkg.com/.

Example Usage

Import and register RemoteComponent from "vue-remote-component", then the following template shows a Plotly graph:

<remote-component
  url="https://unpkg.com/vue-plotly@^1/dist/vue-plotly.umd.min.js"
  :data="[{ x: [0, 1, 2, 3], y: [1, 3, 3, 7], type: 'scatter' }]"
  :extract="library => library.Plotly" />

Building this Package

cd vue-remote-component
yarn
yarn build

Demo Applications

There are several (identical) demo applications. One in the source tree:

cd vue-remote-component
yarn install --check-files
yarn serve

The other demos are mostly for the author to check that the builds actually work. One demo uses the iife build of the package as an example how this package itself could be used from unpkg:

cd vue-remote-component
yarn
yarn build
cd ../demo/iife
firefox index.html

Finally, a vue-cli based application using the ESM build:

cd vue-remote-component
yarn
yarn build
cd ../demo/esm
yarn serve

Use in Jupyter Notebooks & JupyterLab

This package was originally meant to be used with ipyvue to write Jupyter widgets using Vue.js components from NPM without having to distribute any JavaScript extension. See ipyvue-remote-component for details.

Limitations

  • Events on the remote component cannot be bound yet. This should be trivial to add so please open an issue if that's something that you need. PRs are also welcome.

  • Slots on the remote component cannot be used yet. This should not be hard to add so please open an issue if that's something that you need. PRs are also welcome.

Similar Projects

The author is aware of several projects that try to achieve something very similar:

These projects seem to be quite similar to the vue-remote-component. However, they don't seem to work in a require.js application such as a Jupyter Notebook.