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

@byteever/scripts

v4.0.1

Published

Zero-config @wordpress/scripts wrapper for ByteEver plugins: src in, build out.

Downloads

69

Readme

@byteever/scripts

Zero-config @wordpress/scripts wrapper for ByteEver plugins.

What it does

  • byteever-scripts forwards every command to wp-scripts; build and start run through the ByteEver webpack config, and lint-js through the ByteEver ESLint config, unless the project provides its own.
  • Source at src/, output at build/ — the wp-scripts defaults, no flags, no config file.
  • Copies block block.json and PHP files (render.php) into the build; emits async chunks to chunks/.
  • Entries and externals are declared in package.json under the byteever key.
  • Replaces the byteever text domain with the plugin's own domain in vendor PHP (via node-wp-i18n), project JS, and @byteever/* packages; PHP i18n calls missing a domain get one added.
  • Extended dependency extraction for cross-plugin shared libraries.

Setup

eslint.config.js — only needed to declare the plugin's text domain, since byteever-scripts lint-js already falls back to the shared config when the project has none (the shared config wires up the ByteEver ESLint plugin from tools/eslint, extending @wordpress/eslint-plugin; the plugin object is a placeholder namespace for future byteever/* rules):

module.exports = [
	...require( '@byteever/scripts/config/eslint.config' ),
	{
		rules: {
			'@wordpress/i18n-text-domain': [
				'error',
				{ allowedTextDomain: 'my-plugin' },
			],
		},
	},
];

.prettierrc.js — @byteever/scripts depends on wp-prettier, the fork WordPress formatting needs, so a plugin never declares prettier itself:

module.exports = require( '@byteever/scripts/config/prettier.config' );
{
	"scripts": {
		"start": "byteever-scripts start --experimental-modules --blocks-manifest",
		"build": "byteever-scripts build --experimental-modules --blocks-manifest",
		"lint:js": "byteever-scripts lint-js",
		"lint:css": "byteever-scripts lint-style",
		"format": "byteever-scripts format"
	},
	"byteever": {
		"entries": {
			"admin": "src/admin/index.js",
			"frontend": "src/frontend/index.js"
		}
	}
}

Options

Under the byteever key in package.json:

  • entries — entry points; a string path, or a webpack entry descriptor for producers exposing a shared library:
{
	"byteever": {
		"entries": {
			"shared": {
				"import": "src/shared/index.js",
				"library": {
					"name": [ "byteever", "shared" ],
					"type": "window"
				}
			}
		}
	}
}
  • externals — scoped packages consumed from another plugin's shared library; handles are written into .asset.php as {scope}-{name}:
{
	"byteever": {
		"externals": {
			"@byteever/shared": [ "byteever", "shared" ]
		}
	}
}
  • i18n — text domain handling. textdomain is detected from the package name when not set; updateDomains lists the domains to replace (true for all) and defaults to [ "byteever" ]; include/exclude take directories or glob patterns — PHP files are selected internally:
{
	"byteever": {
		"i18n": {
			"textdomain": "my-plugin",
			"updateDomains": [ "byteever", "old-domain" ],
			"include": [ "vendor/byteever" ],
			"exclude": [ "vendor/byteever/tests" ]
		}
	}
}

Custom webpack config

Create a webpack.config.js and byteever-scripts defers to it. Extend the ByteEver config exactly like the @wordpress/scripts one:

const baseConfig = require( '@byteever/scripts/config/webpack.config' );

module.exports = {
	...baseConfig,
	entry: {
		...baseConfig.entry,
		'js/admin': './src/js/admin.js',
	},
};

With --experimental-modules the export is a [ scripts, modules ] array, matching @wordpress/scripts.

Text domain

The target domain is detected from the package name, normalized to a slug; override it with byteever.i18n.textdomain. The domains to replace default to [ "byteever" ]; override with byteever.i18n.updateDomains (or true for all). Vendor PHP is rewritten in place via node-wp-i18n.