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

@fluid-project/wend-theme-beautiful

v1.3.0

Published

A theme for wend sites - the page furniture of Beautiful Hugo, as Infusion 6 layers

Readme

wend-theme-beautiful

A theme for wend sites: the page furniture of Beautiful Hugo, as Infusion 6 layers. Published to npm as @fluid-project/wend-theme-beautiful, from Infusion 6's repository, independently of Infusion itself. It needs Infusion 6.6.0 or later.

A site configures it in the params of its wend.json, as Beautiful Hugo's sites do in their config.toml. Beyond Beautiful Hugo's own parameters:

  • customCSS - the site's own stylesheets, linked after the theme's, e.g. ["css/site.css"] - Beautiful Hugo's custom_css
  • mediaIcons - the icons in the home page's header, each {"title", "href", "icon"}, icon being the classes of a Font Awesome icon, e.g. {"title": "GitHub profile", "href": "https://github.com/x", "icon": "fab fa-github-alt"}
  • giscus - for the comments layer beautifulWend.comments.giscus, chosen by commentsLayer, the discussions giscus.app gives for the site's repository: {"repo", "repoId", "category", "categoryId"}

Its optional adaptations, in adapt/, are each switched on by the site's configuration - a params member, as in Beautiful Hugo, or a switch in the features of wend.json, where Beautiful Hugo has none of its own:

| Adaptation | Switched on by | Adds | |---|---|---| | piwik | params.piwik - {"server", "id"} | The Piwik/Matomo tracker | | giscus | params.giscus | The script showing giscus comments - see commentsLayer | | staticman | params.staticman | Staticman comments | | disclaimer | params.disclaimerText | A disclaimer in the footer | | multilingual | more than one of languages | The language menu and links to translations | | katex | a page's content holding maths, or features.katex, for the site or a page | KaTeX's stylesheet, for maths typeset as the markdown is rendered, e.g. \\( O(n^2) \\) inline or \\[ \\sum_i x_i \\] displayed - Beautiful Hugo includes KaTeX's scripts on every page | | hljs | features.hljs, for the site or a page | highlight.js's stylesheet for code, highlighted as it is built | | selfHosted | features.selfHosted | The theme's own copies of KaTeX and Font Awesome, in place of their CDNs' |

A feature switched "for the site or a page" may be switched for one page by features in its front matter, which overrides the site's. KaTeX needs no switch, since a page holding maths has its stylesheet - but it may be switched, e.g. on for a page beginning

---
title: A page with maths
features:
  katex: true
---
  • sfc/ - the document and its head, headers, navigation bar, footer, the main block of each kind of page, previews, pagers, tags, share links, related posts, comments and translated strings.
  • adapt/ - optional adaptations, each switched on by the site's configuration (wend.json), e.g. highlighting code, Google search and Piwik.
  • static/ - the theme's stylesheets, scripts and fonts, copied into the published site beneath the site's own.

A site changes one of these files without editing the theme: its fork of it, at <overrides>/beautifulWend/<path within the theme> (see wend.site.json), stands in its place. The "Edit in Infusion" extension makes that fork on the first edit of the footer, say - see framing in the site's editing configuration (editing in wend.site.json).

Component tree

beautifulWend.site                         (fluid.resolveRoot: {site} visible everywhere)
├─ i18n          [beautifulWend.i18n, beautifulWend.i18n.<lang>]
├─ piwik, selfHosted, ...           $if on a site parameter; each holds a $linkage
└─ documents     $for page in pages
   └─ beautifulWend.document  + dynamic [beautifulWend.type.<type>, beautifulWend.kind.<kind>]
      ├─ head      beautifulWend.head      (stylesheetTags, scriptTags: $for over keyed asset records)
      ├─ navbar    beautifulWend.navbar    (items: $for over menu + extraItems, each with a variant layer)
      ├─ header    beautifulWend.header    (+ beautifulWend.header.home / .post / .page by kind or type)
      ├─ main      beautifulWend.main.single | .list | .home | .terms | .notFound
      ├─ pageMeta  ($if type page)
      ├─ footer    beautifulWend.footer
      └─ footerScriptTags

From Hugo's templates to Infusion's layers

How the constructs of Hugo's templates, as Beautiful Hugo uses them, are written as Infusion layers here.

| Hugo | Infusion | |---|---| | .Site, .Site.Params | {site}.config, a $reactiveRoot on the resolve-root beautifulWend.site | | A page and its front matter | {document}.page, the $for variable of beautifulWend.document | | baseof.html blocks header, main | Subcomponent slots of beautifulWend.document | | Layout lookup by kind and type | Dynamic layers beautifulWend.kind.* and beautifulWend.type.*, which re-target the slots | | {{ partial "x.html" . }} | A subcomponent with an @id element | | {{ range }} | $component with $for | | {{ if }} around markup that belongs to the component | $component with $if and a self-template (@id element) | | {{ if eq .Type "post" }} inside a partial | A variant layer (beautifulWend.header.post) applied by the type layer | | {{ if .Site.Params.piwik }} and other environmental cascades | A holder under beautifulWend.site with $if, whose $linkage broadcasts adaptation layers | | {{ if .Site.Params.selfHosted }} A {{ else }} B {{ end }} | Keyed data records (stylesheets.katex.href) overridden by an adaptation layer | | $.Scratch | Computed members | | i18n "key" | {i18n}.strings.key, from a per-language layer | | Filters such as urlize, dateFormat and urlquery | $compute members calling beautifulWend.urlize, beautifulWend.formatDate, ... | | relativeURLs | Site-absolute URLs in templates, relativised just before each document is written | | .Content | wend.content, a verbatim view | | Shortcodes | Component islands <div fluid-layers="wend.shortcode.x"> in content | | {{ if }} around an element | @if on the element | | {{ range }} emitting siblings, e.g. in <head> | A $for rendered into a <fluid-fragment @id> slot | | Aliases (page/1/) | wend.alias, a component list rendering redirect documents |