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-summon

v0.2.0

Published

Imperatively render Vue components from anywhere — dialogs, toasts, modals, without cluttering your templates.

Readme

English | 简体中文

Features

  • Imperative API — call summon(Component, props) from event handlers, stores, routers — even outside component setup
  • Promise-based results — every summons returns a Promise; await the user's choice instead of wiring v-model and callbacks
  • Zero template clutter — no hidden dialog blocks in every page; one <SummonHost /> renders everything
  • Live prop updatescontroller.update() patches props reactively, perfect for progress bars, wizards and forms
  • Key-based dedupe — pass a key to guarantee a single instance; re-summoning returns the existing controller
  • Transitions built-in — instances are teleported to body and wrapped in <Transition>, removed safely after leave
  • Multi-manager isolationcreateSummonManager() scopes instances per feature, per test, or per micro-frontend
  • Fully typed — props and results are inferred from your component via vue-component-type-helpers

Installation

pnpm add vue-summon
# or
npm install vue-summon
# or
yarn add vue-summon

Vue Summon has a single peer dependency: vue@3.

Quick Start

1. Mount the host once, near your app root:

<!-- App.vue -->
<script setup lang="ts">
import { SummonHost } from 'vue-summon'
</script>

<template>
  <RouterView />
  <SummonHost />
</template>

2. Build a summoneable componentuseSummoned() gives it a controller:

<!-- ConfirmDialog.vue -->
<script setup lang="ts">
import { useSummoned } from 'vue-summon'

defineProps<{ title: string; message?: string }>()

const { resolve, dismiss } = useSummoned<boolean>()
</script>

<template>
  <div class="overlay" @click.self="dismiss()">
    <div class="dialog">
      <h3>{{ title }}</h3>
      <p v-if="message">{{ message }}</p>
      <button @click="resolve(false)">Cancel</button>
      <button @click="resolve(true)">Confirm</button>
    </div>
  </div>
</template>

3. Summon it from any component, store, or plain module:

import { summon, SummonDismissedError } from 'vue-summon'
import ConfirmDialog from './ConfirmDialog.vue'

try {
  const confirmed = await summon(ConfirmDialog, { title: 'Delete this file?' })
  if (confirmed) {
    await deleteFile()
  }
} catch (error) {
  if (error instanceof SummonDismissedError) {
    // user closed the dialog without choosing
  }
}

That is the whole mental model: summon a component, await its answer.

AI Agent Skill

This repository ships an Agent Skill (skills/vue-summon) that teaches AI coding agents — Claude Code, OpenCode, Codex, Cursor and 70+ more — how to integrate and use Vue Summon correctly in your project.

Install it with the skills CLI:

npx skills add litingyes/vue-summon

See the Agent Skill guide for options and details.

Documentation

Full documentation lives in ./docs (VitePress, English + 简体中文):

pnpm docs:dev

License

MIT