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

@linchpinagency/ui

v0.3.2

Published

Linchpin's admin component library for WordPress plugins — the chrome and the brand, on top of @wordpress/admin-ui.

Readme

Linchpin UI

Linchpin's admin component library for WordPress plugins — the chrome and the brand, on top of @wordpress/admin-ui.

See CHANGELOG.md for release history.

Latest Release: 0.3.2

| Workflow | Status | |----------|--------| | Release | Release Status | | JavaScript | JavaScript Status |


What this is

Every Linchpin plugin was building the same admin screen: a branded top bar with the plugin's logo, its version and the Linchpin mark; a page header; tabs; a two-column body with a help sidebar; an About Linchpin card. Mantle, Psst and linchpin-blocks each arrived at that arrangement separately, and each carried its own copy of it.

This package is that arrangement, once. It is a thin layer on top of core — components come from @wordpress/components, @wordpress/ui and @wordpress/admin-ui, and what lives here is the Linchpin-specific chrome and the brand contract that makes a plugin look like ours.

It is not a design system. It does not re-implement buttons, cards, form controls or tables, and it does not rebuild the page header: <LinchpinAdminPage> wraps core's Page, so the full header — breadcrumbs, title, subtitle, badges, actions and section navigation — is the one WordPress is standardising on.

Install

npm install @linchpinagency/ui

Every @wordpress/* package is a peer dependency. The consuming plugin already has them, and @wordpress/dependency-extraction-webpack-plugin bundles rather than externalises admin-ui, ui and icons — so a nested copy would double the bytes and fork the ThemeProvider context. Never add them as dependencies of this package.

Use

import {
	AboutLinchpinCard,
	currentSection,
	defineBrand,
	HelpCard,
	LinchpinAdminFooter,
	LinchpinAdminFrame,
	LinchpinAdminLayout,
	LinchpinAdminPage,
	LinchpinAdminTopBar,
	LinchpinNotices,
	sectionNavigation,
	SettingsCard,
} from '@linchpinagency/ui';
import '@linchpinagency/ui/style.css';

const BRAND = defineBrand( {
	primary: '#318873',
	deep: '#082318',
	deepEnd: '#164a3b',
} );

const PLUGIN = { name: 'Psst', slug: 'psst', version: window.psstAdmin.version };

const SECTIONS = [
	{ name: 'settings', label: 'Settings' },
	{ name: 'secrets', label: 'Secrets' },
	{ name: 'health', label: 'Health' },
];

function App() {
	return (
		<LinchpinAdminFrame
			plugin={ PLUGIN }
			brand={ BRAND }
			topBar={ <LinchpinAdminTopBar logo={ <PsstLogo /> } /> }
		>
			<LinchpinAdminPage
				subTitle="One-time secrets, encrypted in the browser."
				navigation={ sectionNavigation( { sections: SECTIONS } ) }
				actions={
					<Button variant="primary" href={ createUrl }>
						Share a secret
					</Button>
				}
			>
				<LinchpinNotices />

				<LinchpinAdminLayout
					label="About Psst"
					sidebar={
						<>
							<HelpCard />
							<AboutLinchpinCard />
						</>
					}
				>
					<View section={ currentSection( { sections: SECTIONS } ) } />
				</LinchpinAdminLayout>
			</LinchpinAdminPage>

			<LinchpinAdminFooter />
		</LinchpinAdminFrame>
	);
}

The stylesheet must load after wp-components. Declare it as a dependency when enqueuing:

wp_enqueue_style(
	'psst-admin',
	PSST_URL . 'build/admin.css',
	[ 'wp-components' ],
	PSST_VERSION
);

Two rules worth knowing before you start

No hex in a component. Colour comes from a --wpds-* design token, from the agency palette the frame publishes as --lp-color-*, or from the --lp-brand-* properties it sets out of defineBrand(). A plugin recolours itself by changing its brand object, nothing else; Linchpin blue is the default when it names nothing.

The About Linchpin copy is fixed. <AboutLinchpinPage> and <AboutLinchpinCard> take no copy props. The wording is marketing, it gets revised, and the point of the component is that a revision reaches every plugin through a version bump instead of one pull request per repository. <HelpCard> is the exception and takes props — support routing genuinely differs per plugin.

Development

npm install
npm run build          # babel to build-module/, sass to build-style/
npm test               # jest + @testing-library/react
npm run lint:js
npm run lint:css
npm run storybook      # the components, rendered

Docs live in docs/ui and publish to docs.linchpin.com. Storybook shows what a component looks like; the docs say what we have decided about it. Neither restates the other.

License

GPL-2.0-or-later. © Linchpin.

Linchpin an award winning digital agency building immersive, high performing web experiences