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

@zoovu/exd-api

v0.7.0

Published

SDK api for Zoovu Experience Designer.

Readme

@zoovu/exd-api

The @zoovu/exd-api package helps you easily build extensions for Experience Designer.

  • It simplifies interaction with Zoovu assistants by wrapping the lower-level @zoovu/runner-browser-api.
  • It provides a single entry point called zoovuFacade. It groups the most useful methods from the full Zoovu assistant API into a simpler, easier-to-use structure.

Why use this package

The @zoovu/exd-api makes it easier to work with assistants by:

  • grouping related functionality
  • reducing the amount of setup code you need
  • improving type safety and developer experience in TypeScript

You can still access the full API underneath if needed, but for most use cases, zoovuFacade will cover everything you need.

Installation

The package is usually added automatically when you generate a new extension. You’ll see it in your package.json file:

"dependencies": {
  "@zoovu/exd-api": "0.6.0"
}

INFO: Make sure you are using Node.js version 20.

Use @zoovu/exd-api in an extension

If you’re using a standard extension setup, just extend the ZoovuFacadeMixin in your Vue component:

import { ZoovuFacadeMixin } from "@zoovu/exd-api";
import { assistantViewContext } from "@zoovu/runner-browser-api";

@Component({})
export default class MyComponent extends Mixins(ZoovuFacadeMixin) {
  @Inject()
  private context: assistantViewContext;

  goToNextQuestionSimplified() {
    this.zoovuFacade.navigation.next();
  }

  goToNextQuestionDirect() {
    this.context.assistant.assistantNavigation.next();
  }
}

Core components

Navigation

Move between steps in the assistant flow.

this.zoovuFacade.navigation.next(); // go to next question
this.zoovuFacade.navigation.back(); // go to previous question

Questions and answers

Work with questions and their answers.

const question = zoovuApi.firstQuestionFromCurrentPage;
const specificQuestion = zoovuApi.useQuestion(questionId);
const specificAnswer = zoovuApi.useAnswer(answerId);

specificAnswer.select(); // select an answer

Products

Access product data that the assistant returns.

const products = zoovuApi.products;
const recommendedProducts = products.perfectlyMatchedProducts;

Comparison

Add or remove products from comparison.

const comparison = zoovuApi.comparison;
comparison.addProduct(productId);
comparison.removeProduct(productId);

Events

Listen to assistant events and handle them in your component.

const events = zoovuApi.events;

const { unsubscribe } = events.subscribe("steps-navigation", (event) => {
  // handle the event
});

unsubscribe(); // stop listening when not needed

Localization

Access information about the current locale and currency.

const locale = this.zoovuFacade.localization.locale;
const currencyCode = this.zoovuFacade.localization.currencyCode;

Waiting for initialization

In some cases, you might need to wait until the assistant is fully loaded before accessing its data.

async mounted() {
  await this.zoovuFacade.waitForassistantInitialization();
  // safe to use the API now
}