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

@brilo/base-blocks

v0.1.37

Published

Shared Gutenberg block factory library. Tenants consume it as a local file dependency — each tenant calls factory functions, registers the result, and owns only block.json + icon files.

Readme

@brilo/base-blocks

Shared Gutenberg block factory library. Tenants consume it as a local file dependency — each tenant calls factory functions, registers the result, and owns only block.json + icon files.

Install (tenant)

Published as @brilo/base-blocks npm package — normal bun install in tenant pulls it.

For local dev against uncommitted base-blocks changes, use bun link:

# in base-blocks
bun run build
bun link

# in tenant gutenberg dir
bun link @brilo/base-blocks

Re-run bun run build in base-blocks after any change — link points at build/, not src/.

Structure

src/
  blocks/
    <domain>/     domain folders, one per content type — mirrors frontoffice
                  twig components 1:1: anchor/, compare/, contact/, faq/,
                  gallery/, hero/, person/, signpost/, step/, testimonial/,
                  usp/ … each with <domain>-group/ and/or <domain>-item/
    core/         atomic, no inner blocks: basic-button · basic-heading · basic-overline
    groups/       generic (non-domain) layout groups: banner-group · basic-header-group ·
                  button-group · content-group · text-and-media-group
    sections/     top-level page sections: base-section
    layout/       aside/content layout blocks
    form/         form-group · form-field
    link/ · map/ · newsletter/ · post/ · responsive-grid/
  components/   IconControl · ImagePicker · ItemIconControl
  hooks/        useGroupBlock · useTenantColorPalette
  utils/        createEditAdapter
  editor.scss   SCSS barrel — @forward all block + component + global styles
  globals.scss  global editor utility classes (flex, gap-*, u-grid-*, …)
  index.ts      JS/TS barrel
  types.ts      shared types (BriloBlockType, SelectOption, Icon, OptionArray, …)

Each block folder: factory.tsx, edit.tsx, types.ts, constants.ts (if any option arrays), icon.tsx (if custom icon), index.ts, editor.scss. Imports reach shared code via the ~/* alias (~/types, ~/hooks/..., ~/components/...), never relative climbing. See BLOCKS_GUIDE.md for the full authoring guide — treat it (and actual src/blocks/*) as source of truth over docs/*.md, which describe an older layout.

Styles (tenant)

In tenant index.scss:

@use "@brilo/base-blocks/src/editor";  /* all block styles in @layer base */
@import "@brilo/gutenberg-toolkit/build/index.css";

@layer base, tenant;  /* tenant layer always wins */

Override any base style in tenant SCSS with @layer tenant { }.

Build

# in base-blocks
bun run build   # tsc compile → build/

# in tenant (prebuild hook runs tsc automatically)
bun run build
bun run start

API

See USAGE.md for factory examples.

All factories return BlockConfiguration<Attributes> — pass directly to registerBlockType.