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

@wippy-fe/vue-host

v0.0.32

Published

Vue 3 reactive bindings for the Wippy host.* proxy API. Hooks for layout state, panel live state, breakpoints, and per-panel routes — inside a Wippy iframe.

Readme

@wippy-fe/vue-host

Vue 3 reactive bindings for the Wippy host.* proxy API. Tree-shakable hooks that wrap host.layout.* in Vue refs + event subscriptions, with auto-cleanup on unmount.

Install

pnpm add @wippy-fe/vue-host

Peer deps: vue >= 3.5, @wippy-fe/proxy (also a peer so your bundler deduplicates with the rest of your Wippy integration).

useWippyLayout()

The main composable. Returns reactive layout state + bound mutation methods.

<script setup lang="ts">
import { useWippyLayout } from '@wippy-fe/vue-host'

const layout = useWippyLayout()
// layout.snapshot         : Ref<LayoutSnapshot | null>
// layout.activeBreakpoint : ComputedRef<string>
// layout.panels           : ComputedRef<Record<string, unknown>>
// layout.isManaged        : ComputedRef<boolean>
</script>

<template>
  <div>
    <p v-if="!layout.isManaged">Not inside a managed-layout host.</p>
    <p v-else>Current breakpoint: {{ layout.activeBreakpoint }}</p>
    <button @click="layout.collapsePanel('nav')">Collapse nav</button>
    <button @click="layout.expandPanel('nav')">Expand nav</button>
  </div>
</template>

Snapshot is seeded from host.layout.snapshot (sync, always available inside a managed-layout host — boot-payload carries the initial value). Subscribes to @layout-change; unsubscribes on unmount.

useWippyPanel(panelId)

Reactive ref to a single panel's live def. Returns null when the panel doesn't exist in the current snapshot.

<script setup lang="ts">
import { useWippyPanel } from '@wippy-fe/vue-host'

const editor = useWippyPanel('editor')
// editor.value?.route — current internal route of the editor panel
// editor.value?.props?.sessionId — for chat-wrapper builtin
</script>

useWippyBreakpoint()

Reactive breakpoint ref. Also updates off the @layout-breakpoint event (which fires immediately — not debounced with the 50ms @layout-change push).

import { useWippyBreakpoint } from '@wippy-fe/vue-host'

const bp = useWippyBreakpoint()
// bp.value === 'md' | 'sm' | 'default' | ...

useWippyMainRoute()

Reactive ref to the main panel's current route — the one that drives window.location.

import { useWippyMainRoute } from '@wippy-fe/vue-host'

const route = useWippyMainRoute()
// route.value === '/projects/42/timeline'

When to use this vs @wippy-fe/layout's composables

  • @wippy-fe/layoutuseLayoutSlot, useLayoutBreakpoint, useLayoutPanel, useLayoutFloating operate on a LayoutManager instance provided in the current Vue app. Use inside panel components mounted by LayoutManagerView — they have direct access to the local manager.
  • @wippy-fe/vue-hostuseWippyLayout et al. operate on the host.* proxy surface from a CHILD iframe. The child doesn't have a LayoutManager; it reads the snapshot pushed from the parent.

Rule of thumb: inside a page/artifact/component iframe rendered by a managed-layout host, use @wippy-fe/vue-host. Inside host-layer code (resolvers, built-in panels) with direct LayoutManager access, use @wippy-fe/layout.