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

@nexushub/client

v1.1.13

Published

GN-Apex zero-config production runtime SDK

Readme

GN-Apex SDK 1.1.0

The GN-Apex SDK is the runtime layer for GN-Apex-generated sites. It is deliberately zero developer configuration: site developers focus on content, components and UI/UX while GN-Apex owns platform behavior.

Zero-config by design

import { nexus } from "@nexushub/client";

const page = await nexus.getPage("home");

A GN-Apex deployment can inject runtime configuration through window.__GNAPEX__ or meta tags. Environment variables remain supported as an escape hatch for Node/CI.

Automatic runtime behavior

By default the browser runtime automatically handles:

  • page views and SPA navigation
  • clicks, links, buttons, outbound links
  • dead/rage clicks
  • forms without collecting field values
  • video lifecycle + 25/50/75/90/100% milestones
  • scroll depth
  • Web Vitals
  • uncaught errors and unhandled rejections
  • session/visitor identity
  • offline IndexedDB event queue
  • retry, batching, deduplication IDs and circuit breaking
  • authentication synchronization
  • push subscription synchronization (permission prompting remains platform/UX controlled)
  • realtime content updates and cache invalidation

Custom analytics calls are available as an escape hatch, not a requirement.

Cache model

GN-Apex intentionally defaults content revalidation to false. This is not a short-lived SDK cache. GN-Apex/Cloudflare owns invalidation and purge. Content can therefore be cached effectively forever until the platform purges affected resources.

The SDK still supports per-call revalidation for exceptional integrations, but production GN-Apex sites should normally leave the platform default untouched.

Reliability

The internal request pipeline provides request IDs, normalized errors, timeout handling, retry/backoff with jitter, rate limiting and circuit breaking. The request coalescer prevents duplicate concurrent reads for the same resource without incorrectly resolving unrelated requests with the same response.

Platform features

The runtime exposes feature flags, remote configuration, diagnostics and a typed event bus for internal/platform integrations.

Security

Never expose a privileged server secret in browser configuration. Browser deployments should use the public GN-Apex credential model enforced by the platform. Analytics payloads redact common credential/secret fields when privacy redaction is enabled.

Build

npm install
npm run type-check
npm test
npm run build

Before publishing, run the complete test/build pipeline in the target CI environment.