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

@vitrailweb/payload-plugin-home-nav

v0.1.2

Published

Payload plugin that labels the admin navbar icon with a translated “Home” and adds a Home link at the top of the nav sidebar

Readme

@vitrailweb/payload-plugin-home-nav

A Payload CMS plugin that makes the admin's way home obvious:

  • a translated "Home" label next to the icon in the app header (the admin.components.graphics.Icon slot — the step-nav already links it to the dashboard), and
  • a "Home" link at the top of the collapsible nav sidebar (prepended to admin.components.beforeNavLinks, styled like the built-in nav links).

Both are server components resolved against the admin language. The label defaults to the plugin's bundled translations ("Home" / "Accueil") and can be overridden with a plain string or a per-language record. A custom icon the project already configured through admin.components.graphics.Icon is kept and rendered next to the label — the plugin re-registers it under admin.dependencies so it stays in the import map.

Usage

import { buildConfig } from 'payload'
import { VWPayloadPluginHomeNav } from '@vitrailweb/payload-plugin-home-nav'

export default buildConfig({
  plugins: [
    VWPayloadPluginHomeNav(),
  ],
  // ...
})

Point "Home" somewhere else (e.g. the public site) or change the label:

VWPayloadPluginHomeNav({
  href: '/',
  label: { en: 'Back to site', fr: 'Retour au site' },
})

Registers admin components, so run payload generate:importmap after adding the plugin.

Options

| Option | Type | Notes | | ----------- | --------------- | ------------------------------------------------------------------------------------------ | | href | string | where the nav-sidebar "Home" link points. Default: the admin dashboard (routes.admin) | | label | LocalizedText | the label, plain or per-language. Default: "Home" / "Accueil" from the bundled translations | | iconLabel | boolean | show the label next to the app-header icon (default true) | | navLink | boolean | add the link at the top of the nav sidebar (default true) | | disabled | boolean | leaves the config untouched |

LocalizedText is string | Record<string, string> — a per-language record is resolved as: exact admin-language match, then en, then the first value.

Development

From the monorepo root:

pnpm install
pnpm generate:importmap:home-nav                            # register the components
pnpm dev:home-nav                                           # dev Payload app with this plugin
pnpm vitest run packages/payload-plugin-home-nav/test       # unit tests
pnpm vitest run dev/configs/home-nav                        # integration tests
pnpm --filter @vitrailweb/payload-plugin-home-nav build     # build to dist/

See the root README for the release flow.