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

@10x-media/settings-overlay

v0.1.0-beta.3

Published

Files any Payload collection, global, admin view or component behind a deep-linkable floating panel

Readme

Banner

@10x-media/settings-overlay

Files any Payload collection, global, registered admin view or component behind a floating panel, and makes that panel addressable by URL. ?settings=system/tags/abc opens the panel on that document; copy the link, send it, it reopens the same thing.

npm

Part of the @10x-media Payload plugins collection. In beta: published under the beta dist-tag until a stable 1.0.

Features

  • Anything goes in the panel: collections (list and edit), globals, registered admin views, your own components, and plain links.
  • Deep links: ?settings=<overlay>/<item>[/<id>] survives a reload, a share, and the back button.
  • One way in, when you want it: hideEntities takes a listed collection or global out of the nav and off its own route. Off by default, because Payload's drawer mode omits the trash tab, bulk actions and the document tabs.
  • Open it from anywhere: useSettingsOverlay() and <SettingsOverlayButton> work in a field, a list action or a dashboard card.
  • Access is decided on the server: the rail each reader sees is computed for them. Items they cannot open never reach the browser.
  • No round trip for what does not need one: the rail and every eager component arrive with the page. Lists, documents and views are fetched on open.
  • Replaceable pieces: the rail, its rows and groups, the header, the search box and the whole panel are slots, each with exported prop types and the hooks a replacement needs.
  • Collections that behave like globals: resolveDocID opens one document instead of a list, which is what @payloadcms/plugin-multi-tenant globals need.
  • Typed translations with per-key overrides via @10x-media/settings-overlay/i18n; several locales ship built in.

Quick start

pnpm add @10x-media/settings-overlay@beta
// payload.config.ts
import { buildConfig } from 'payload'
import { settingsOverlay } from '@10x-media/settings-overlay'
import { appearanceItem } from '@10x-media/settings-overlay/items'

export default buildConfig({
  collections: [tags, redirects],
  globals: [branding],
  plugins: [
    settingsOverlay({
      overlays: [
        {
          id: 'system',
          label: 'Settings',
          items: [
            appearanceItem(),
            { type: 'collection', slug: 'tags' },
            { type: 'collection', slug: 'redirects' },
            { type: 'global', slug: 'branding' },
          ],
        },
      ],
    }),
  ],
})

Then run payload generate:importmap. That is the whole installation: no change to app/(payload)/layout.tsx, no provider to mount.

The plugin ships no sidebar button. Open the panel from wherever suits you:

'use client'
import { useSettingsOverlay } from '@10x-media/settings-overlay/client'

export const SettingsButton = () => {
  const { toggle } = useSettingsOverlay()
  return <button onClick={() => toggle('system')}>Settings</button>
}

Item types

| Type | Source field | Own URL | Fetched | |---|---|---|---| | collection | slug | yes, unless hideEntities is on | on open | | global | slug | yes, unless hideEntities is on | on open | | component | component | no | with the page, or on open with lazy: true | | view | viewKey in admin.components.views | yes | on open | | link | href | n/a | n/a |

A component may be a server or a client component; the plugin renders it the way Payload renders any custom component and only hands server props to the former.

Documentation

Full documentation lives at the docs site.

Known workarounds

Two pieces of this plugin work around Payload limitations rather than using an API meant for the job. Both are isolated to one file each, documented in place, and guarded by a test that fails when the workaround stops being necessary:

  • server/widgetDispatcher.tsx rides the built-in render-widget server function to render a lazy item on demand, because Payload has no config-level way to register a server function. lazyTransport: 'server-function' opts out of it and registers the plugin's own function instead, at the price of one edit to your generated layout.
  • client/documentActions.tsx supplies the edit view's dots menu, because @payloadcms/ui exports useDocumentDrawerContext but not the provider that feeds it, so Payload's own menu has nobody to report a delete, duplicate or restore to. Payload's action components take those callbacks as props, but they cannot be reused: @payloadcms/ui/exports/client is a bundle carrying its own copy of every provider, so a component reached through @payloadcms/ui/elements/* reads a context nothing mounted. Each request is therefore rewritten to match, under Payload's own translation keys.

License

MIT