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

@openawb/experience

v1.0.0

Published

Framework-agnostic runtime for mounting exported AWB experiences

Readme

@openawb/experience

Framework-agnostic runtime for executing exported AWB experiences (.awb.zip or unpacked directories).

AWB is the authoring tool. This package is the execution layer. Host apps (Next.js, React, Vue, Astro, or vanilla JS) mount an experience into a DOM container without shipping the editor.

Install

pnpm add @openawb/experience @openawb/types
# optional peer for bundling published motion runtimes:
pnpm add -D esbuild

Import rules

// Runtime
import { createExperience, prepareMountMarkup } from "@openawb/experience";
// or
import { createExperience } from "@openawb/experience/createExperience";

// Contracts
import type { AwbExperienceManifest, AssetResolver } from "@openawb/types";
import { parseAwbExperienceManifest } from "@openawb/types";

Manifest / asset types are not re-exported from this package root — import them from @openawb/types.

Quick start

import { createExperience } from "@openawb/experience";

const experience = await createExperience({
  source: { type: "url", url: "https://cdn.example.com/site.awb.zip" },
});

await experience.mount(document.getElementById("experience")!);

// later
experience.destroy();

Sources

| Source | Description | | --- | --- | | { type: "url", url } | Fetch a .awb.zip | | { type: "arrayBuffer" \| "uint8Array", data } | In-memory zip bytes | | { type: "directory", baseUrl } | Unpacked package (manifest.json at the root) |

Manifest

Every package includes manifest.json (format: "awb-experience"). See @openawb/types for the schema and parseAwbExperienceManifest.

Host integration tips

  1. Mount into a slot that does not use overflow: hidden if the experience uses position: sticky.
  2. Let the experience root grow (min-height) — do not clip long pages to a fixed 100% height.
  3. SEO belongs to the host (CMS / Next metadata), not the experience package.
  4. Pass an AssetResolver when packages still reference asset: ids:
import type { AssetResolver } from "@openawb/types";

const assetResolver: AssetResolver = {
  resolve(assetId) {
    return { id: assetId, url: `https://cdn.example.com/${assetId}` };
  },
};

Subpath exports

| Path | Use | | --- | --- | | @openawb/experience | Host mount API + published helpers | | @openawb/experience/createExperience | Mount/load only | | @openawb/experience/published | GSAP / motion runtimes shared with the builder preview | | @openawb/experience/action | Node action execution helpers | | @openawb/experience/event | Interaction runtime |

Preview parity

The AWB builder preview consumes the same motion and interaction runtimes (GsapMotionRuntime, bindInteractionRuntime, …) so canvas preview stays aligned with production execution.

Development

pnpm --filter @openawb/experience test
pnpm --filter @openawb/experience typecheck
pnpm --filter @openawb/experience build

See Publishing.