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

@standhigher/besttrack-page-extension

v0.5.18

Published

BestTrack business extension entry point for @standhigher/puck-page-builder.

Readme

@standhigher/besttrack-page-extension

This package provides the built-in Ready-to-go, Branded, and Sales tracking templates for @standhigher/puck-page-builder. Each template has stable namespaced v1 block IDs, default block order, theme tokens, and exported TemplatePolicy metadata. All default blocks are singleton. Protected query/structure blocks now use the core BlockDefinition.policy contract (required, singleton, and allowDelete: false), which the editor enforces. Recommendation blocks stay singleton and can be deleted.

Query provider

Branded and Sales still receive a host-owned TrackingPageQuery through query. Ready-to-go storefront pages that keep the original Shopify Track Page backend should inject transport instead of inventing a new request body:

<ReadyToGoRuntimeProvider
  transport={{
    post: (url, body) => apiPost(withShopifyAppProxyPrefix(url, APP_PROXY_PREFIX), body)
  }}
>
  <WebRenderer document={document} registry={registry} />
</ReadyToGoRuntimeProvider>

That path reuses the original lookup: POST /track/query?_t=, snake_case { order_number, email, tracking_number, lang }, one retry, independent POST /products/recommend with { page, page_size }, the original Embla recommendation carousel, and the original progress / shipping / empty-state mapping. The host only supplies fetch, App Proxy prefix, and credentials.

Branded and Sales keep the discriminated query callback:

const query: TrackingPageQuery = async (request) => {
  if (request.mode === "tracking") {
    return serverAuthorizedTrackingLookup(request.trackingNumber);
  }
  return serverAuthorizedOrderLookup(request.orderNumber, request.email);
};

<SalesRuntimeProvider query={query} watermark={{ visible: true }}>
  <WebRenderer document={document} registry={registry} />
</SalesRuntimeProvider>

TrackingPageQueryRequest is either { mode: "tracking", trackingNumber } or { mode: "order", orderNumber, email }. Ready-to-go matches the original Track Page and only requires non-empty trimmed fields. Branded and Sales still perform local PRD format checks. The host must authorize again on the server. A host must not submit an order number through the tracking-number mode.

Branded and Sales render a two-tab query card on the Hero’s right edge at desktop widths and as a single full-width card on narrow screens. Each tab retains its own input. Loading, error, empty, and replacement results remain inside the scrollable query card; successful requests scroll the result into view. The package never stores tokens and never writes a query result into a PageDocument.

Watermarks and data safety

The optional watermark provider prop is a host override. Ready-to-go uses the original powered-by hide rule when it is omitted. Branded and Sales only render watermark.visible and its optional label; they do not infer entitlement. Query results and watermark state are transient.

Document props and bindings must remain JSON-only and must not contain a token, secret, customer order data, email address, or live query result. Merchant resources use stable Shopify IDs. Catalog display prices may be stored on product snapshots as { amount, currencyCode } minor units; formatted price strings, live availability, tokens, and secrets stay out of PageDocument. Production URLs must be public HTTPS URLs. Missing display data and unsafe resource URLs render controlled fallbacks.