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

@uxfront/layer-ui

v0.1.5

Published

Nuxt layer for the uxfront.com family of homepages: registers @uxfront/ui, self-hosts its fonts, adds useUxHead() and keeps the first paint free of scripts and web fonts.

Readme

@uxfront/layer-ui

The Nuxt layer for the uxfront.com family of homepages. Extend it to build a homepage with the same look, feel and Lighthouse scores as uxfront.com, from the @uxfront/ui components and the @uxfront/scene formations.

Install

pnpm add @uxfront/layer-ui @uxfront/scene
// nuxt.config.ts
export default defineNuxtConfig({
  extends: ["@uxfront/layer-ui"],
  runtimeConfig: { public: { siteUrl: "https://inkline.io" } },
});

Then build the page from Ux* components (see the @uxfront/ui README or uxfront.com's homepage), and give it a head:

useUxHead({
  title: "Inkline: the UI library for every framework",
  description: "Perfectly designed components, in all seven frameworks.",
  siteName: "Inkline",
  image: { path: "/og.jpg", width: 1200, height: 630, alt: "…" },
  sameAs: ["https://github.com/inkline"],
});

What it adds

  • Components and composables. Every @uxfront/ui component (UxSite, UxHero, UxChapter, …) and useExperience() are auto-imported, and v-scramble is registered. Formations are imported explicitly from @uxfront/scene/formations.
  • Fonts. Geist, Geist Mono and Instrument Serif, self-hosted by @nuxt/fonts with metric-matched fallbacks.
  • useUxHead(options). Title (no title template), description, canonical URL, Open Graph and Twitter cards, Organization structured data, and the dark theme-color and color-scheme. All of it applies to the calling page only. runtimeConfig.public.siteUrl is the origin it builds URLs on.
  • A clean critical path. On pages that render UxSite or UxErrorPage, the first frame needs nothing but the prerendered HTML and its inline styles. Once the browser reports the first contentful paint, a small inline loader brings in the app bundle, the web fonts and the entry stylesheet. The scene's engine and shaders are never prefetched: they load once the page is idle.

Sharing an app

The layer changes nothing outside those pages, so a homepage can live in the same app as docs or anything else:

  • It ships no app.vue, error.vue, global CSS, route rules or deployment settings.
  • The homepage's base styles only apply while a UxSite is on the page.
  • Other pages render as Nuxt normally renders them. On a homepage, the app's global stylesheet still loads, just after first paint, so client-side navigation to other pages keeps their styles. It also applies to the homepage then, so keep global CSS from restyling .ux-site.

Site-wide settings stay in the app. uxfront.com's nuxt.config.ts has examples: security headers, immutable caching of /_nuxt/**, and static prerendering for Cloudflare.