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

@vop/embed

v0.1.41

Published

<div align="center">

Readme

Vop

Shoppable experiences from your social media posts

Release

What is Vop Embed?

This is the customer embed widget codebase of Vop. Every single type of widget that is embedded onto a customers website is in this repository.

Inspiration

Most of the embed inspiration comes from a project by Jenya Y. called help-widget. The biggest difference was ditching preact and refactoring to use react. While preact is mostly cross compatible with react this change was to minimise any friction for newcomers.

Using this structure is primarily for the following advantages:

  • Injection through a target element
  • Small footprint and solid snippet on hosting website (see usage)
  • Multi-instance on the same page
  • Isolation of code execution and CSS
  • Customisation via configuration injection and API to Widget

Vision

It is obvious with the growth of e-commerce, many stores are trying to drive traffic from their social media content and vice versa... (incomplete)

Roadmap & Issues

We use Jira for the issue tracking and product road map.

Status

Vop Embed has been in full-time development since June 2020.

Codebase

Technologies

Almost all the code in this repository will be JavaScript. The embed widgets mostly communicate with our Vop API which is written in Go.

Notable technologies we use:

  • webpack
  • react
  • typescript
  • jest

Folder structure

vop-embed/
├── dev      # Demo of the different embed component types
├── dist
├── docs
├── public   # Public files used on the frontend
├── src      # Embed react components and api services
└── test     # Tests (using Jest)

Code Style

We run Prettier on-commit, which means it will be automatically formatted according to the common style when you run git commit. We also have ESLint setup, although we've disabled all stylistic rules since Prettier takes care of those.

Rules
  • All .js files must be typed using TypeScript so use .ts and .tsx.

  • Please don't commit any console.logs in any file. We use the debug module across the codebase to log debugging information in development only. The only exceptions are errors, which you can log, but you have to use console.error to be explicit about it.

First time setup

The first step to running Vop Embed locally is downloading the code by cloning the repository:

git clone [email protected]:dreambiglabs/vop-embed.git

If you get Permission denied error using ssh refer here or use https link as a fallback.

git clone https://github.com/dreambiglabs/vop-embed.git

Usage

In order to embed the widget add the following snippet at any location on the hosting page:

<div id="vop-root"></div>
<script>
  (function (w, d, s, o, f, js, fjs) {
    w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
    js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];
    js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);
  }(window, document, 'script', 'vop', './widget.js'));
  vop('init', { element: document.getElementById('vop-root'), appId: 123, component: 'carousel' });
</script>

During initialization you can pass additional configurations to widget like so:

-vop('init');
+vop('init', { element: document.getElementById('vop-root'), appId: 123, component: 'carousel' });

You can find a full list of configurations in AppConfigurations interface.

Develop

The widget dev setup is similar to regular client application. To get started:

npm i
npm start

This will open browser with "demo" page which hosts the widget.

Notes

  1. You'll need to restart your develop server after every change to your tailwind.config.js to pick up the changes.