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

@veecode-platform/plugin-veecode-global-header

v1.0.2

Published

Welcome to the global-header plugin.

Readme

global-header

Welcome to the global-header plugin.

Getting started

This plugin defines a global header for VeeCode DevPortal (an open-source Backstage distro).

Look for VeeCode DevPortal documentation to learn how to install and configure this plugin:

Requirements

This plugin requires other standard plugins to be installed in order to work properly:

  • Notifications plugin: the NotificationButton component is used to display notifications in the global header.
  • Signals plugin: in order to show notifications in real time, NotificationButton also requires the Signals plugin (it is optional, but required for real time notifications).

Both plugins are included by default in VeeCode DevPortal (statically linked).

If you disable the NotificationButton component in the global header configuration, then you don't need to install these plugins.

Static configuration

To statically configure the global header using its defaults you need to add the following import to Root.tsx:

import { 
  GlobalHeaderComponent, 
  defaultGlobalHeaderComponentsMountPoints 
} from '@veecode-platform/plugin-veecode-global-header';

And then you can add the GlobalHeaderComponent accondingly to your needs:

      <div id="rhdh-above-sidebar-header-container">
        {/* update globalHeaderMountPoints config to test Global header */}
        <GlobalHeaderComponent
          globalHeaderMountPoints={defaultGlobalHeaderComponentsMountPoints}
        />
      </div>

Dynamic configuration

To dynamically configure the global header using its defaults you need to add a dynamicPlugins snippet like this:

dynamicPlugins:
  rootDirectory: dynamic-plugins-root
  frontend:
    veecode-platform.plugin-veecode-global-header:
      mountPoints:
        - mountPoint: application/header
          importName: GlobalHeader
          config:
            position: above-sidebar # above-main-content | above-sidebar

There are several extension points available to customize the global header. You can disable buttons, change icons and logos, and more. Look for more details in the VeeCode DevPortal Global Header Documentation.

TODO: add example of one dynamic configuration with all custom mount points.

Sending notifications

You need to send notifications to the DevPortal backend in order to show them in the global header. The Backstage hosting app configured in this repository exposes the backend APIs directly with a plain text token for simplicity.

You can use the following curl command to send a notification:

NOTIFY_TOKEN="mysecrettoken"

curl -X POST http://localhost:7007/api/notifications/notifications \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NOTIFY_TOKEN" \
  -d '{
        "recipients": {
          "type": "broadcast"
        },
        "payload": {
          "title": "Title of broadcast message",
          "description": "The description of the message.",
          "link": "http://example.com/link",
          "severity": "high",
          "topic": "general"
        }
      }'

We have made available a helper script at /scripts/send-notification.sh to make it easier to send notifications. You can run it like this:

./scripts/send-notification.sh "Your custom message here"

Source code

This plugin is part of the VeeCode DevPortal Plugins Repository.