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

verse-embedded

v1.1.5

Published

Lightweight library for embedding Verse artwork iframes

Readme

Verse Embedded

A JavaScript library that helps you integrate Verse Primary Market features into your existing websites.

Installation

npm install
npm run build

Usage

Add the script to your <head>:

<script src="dist/verse-embedded.js"></script>

Initialize the library when the DOM is ready:

const verseEmbed = new VerseEmbed({
 baseUrl: "https://iframe.verse.works",
});
verseEmbed.initialize();

Then add the following div anywhere you want a Verse series/artwork/edition iframe to appear:

Load a Series (Recommended)

<div
 verse-series-slug="internal-lullabies-for-the-disenfranchised"
 verse-custom-styles-path="http://localhost:3000/verse-styles.css"
></div>

Load an Artwork

<div
 verse-artwork-id="57883342-1032-4820-b318-b42fa761e1aa"
 verse-custom-styles-path="http://localhost:3000/verse-styles.css"
></div>

Load an Edition

<div
 verse-artwork-id="57883342-1032-4820-b318-b42fa761e1aa"
 verse-edition-number="1"
 verse-custom-styles-path="http://localhost:3000/verse-styles.css"
></div>

Attributes

| Attribute | Description | | -------------------------- | --------------------------------------------------- | | verse-artwork-id | Verse artwork ID | | verse-edition-number | Verse edition number | | verse-series-slug | Verse series slug | | verse-custom-styles-path | Path to a CSS file to override Verse default styles |

Custom CSS

Because Verse uses a build system, class names may include postfixes that are not known in advance. In the current version, you should target elements using partial class name matches.

For example:

[class*="CollSinglePMSection_assetCoverRoot"] {
 --forced-max-width: 200px !important;
}

Origin Allowlist

  • You can embed Verse iframes only on localhost:3000 by default
  • To make it available on your website, contact the Verse tech team with your origin for whitelisting

HTTPS Requirement

Production integration of Verse Frame / Verse Elements requires the parent page to be served over HTTPS. Verse iframes will not load on pages served over plain HTTP in production environments. Ensure your site has HTTP-to-HTTPS redirects configured before going live.

Development

  • npm run build - Build the library
  • npm run dev - Watch for changes and rebuild
  • npm run type-check - Run TypeScript type checking

Local Testing

npm run serve

Requirements

  • Modern browser with ES2020 support
  • TypeScript 5.3.3 or higher (for development)

Key Concepts

graph LR
  SERIES["Series"] -->|contains| ARTWORK["Artwork"]
  ARTWORK -->|contains| EDITION["Edition"]
  ARTWORK -->|has| PM_SALE["Primary Market Sale"]
  PM_SALE -->|delivers on purchase| EDITION

  classDef entity fill:#f8f8ff,stroke:#555,stroke-width:1px;
  class SERIES,ARTWORK,EDITION,PM_SALE entity;

Edition

An edition is an NFT.

Artwork

An artwork is a container for editions and can host a primary market sale.

Series

Series (also known as collections) contain one or more artworks.

If a series contains an artwork with an active or upcoming primary market sale, the primary market sale is displayed at the top of the page (example).

If a series contains more than one artwork with active and/or upcoming primary market sales, then a grid of artworks is displayed at the top of the page (example).

If any child artworks contain any editions, a grid of editions is displayed below any active/upcoming primary market sales.

If no child artworks have an upcoming or active primary market sale, only a grid of editions is displayed (example).

We recommend embedding series instead of artworks wherever possible.

Primary Market Sale

A primary market (PM) sale is a sale from which collectors can purchase editions from the artist and/or gallery.

PM sales are configured for artworks. When a collector makes a purchase from a PM sale, they receive an edition.

Further Reading

Refer to the Verse documentation to learn more about project types, sale types, smart contracts and more.