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

@lipemat/js-boilerplate-gutenberg

v4.3.0

Published

Gutenberg extension for @lipemat/js-boilerplate.

Downloads

369

Readme

WordPress/Gutenberg extension for @lipemat/js-boilerplate for zero configuration Gutenberg support.

Installation

yarn add @lipemat/js-boilerplate-gutenberg

TypeScript

This package is completely built in TypeScript and supports native JavaScript or TypeScript applications.

Gutenberg definitions

Due to requirements created by Yarn PNP, the Gutenberg definitions have been moved to an external package and will be maintained there.

If you are not using PNP, the definitions are included in this package's package.json so there are no additional steps to use them.

If you are using PNP you may add the definitions to your package.json like so.

"dependencies": {
"@types/lipemat__js-boilerplate": "lipemat/types-js-boilerplate#semver:^3.0.0"
}

Application Passwords

As of WordPress 5.6, support for application passwords is available on all SSL sites. Prior to 5.6 application passwords may be enabled via the application passwords plugin.

Helper functions are available for interacting with the application passwords system.

import {setRootURL, wpapi, enableApplicationPassword, getAuthorizationUrl} from '@lipemat/js-boilerplate-gutenberg';

// Point the REST API at an external site.
setRootURL( 'https://starting-point.dev/wp-json/' );

// Retrieve the URL to redirect your users to for authorization.
const URL = await getAuthorizationUrl( {
	app_name: 'Test Application'
} );

// Add an application password to all subsequent requests.
enableApplicationPassword( 'test', 'nnXX zPX6 5Fqc 21tG zLH0 Rtep' );

// Request will be authenticated.
const post = await wp.posts().create( {
	title: 'Test Post',
} );

Hot Module Reloading For Blocks and Plugins

Helper methods exists for automatically loading block or plugin files based on a REGEX filter as well as handling the various register and unregister requirements to make HMR work.

Loaded modules are expected to export:

  1. name: Name of plugin or block (id format).
  2. settings: Either a plugin or block's settings.
  3. exclude: Exclude plugin or block from the current context.
import {autoloadBlocks, autoloadPlugins} from '@lipemat/js-boilerplate-gutenberg';

/**
 * Use our custom autoloader to automatically require,
 * register and add HMR support to Gutenberg related items.
 *
 * Will load from specified directory recursively.
 */
export default () => {
	// Load all blocks
	autoloadBlocks( () => require.context( './blocks', true, /block\.tsx$/ ), module );

	// Load all meta boxes
	autoloadPlugins( () => require.context( './meta-boxes', true, /index\.tsx$/ ), module );

}

Hooks

usePostMeta

usePostMeta is used to interact with the current post's meta from sidebars or meta boxes within Gutenberg.

Will return the current meta state as well as the original meta state before any changes were made.

You may work with a single meta key like so:

const [ value, updateValue, previous ] = usePostMeta( 'custom-meta-key' );

Or by default work with the whole meta object:

const [ values, updateValues, previous ] = usePostMeta();

useTerms

useTerms is used to interact with the current post's terms from sidebars or meta boxes within Gutenberg.

Will return the current terms state as well as the original terms state before any changes were made.

const [ terms, updateTerms, previous ] = useTerms( 'category' );