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

@quatrecentquatre/front-end-tools

v1.0.0

Published

Package that contains front-end tools for pagebuilder, animation and html banner

Readme

Pagebuilder components — deploy into a project

This folder holds reference pagebuilder components and a script that copies them into a target htdocs tree. Use it when you want to add an existing component from refs into a project without overwriting files that are already there.

Where this must live in the project

install-in-project.sh assumes this directory is installed in node_modules:

<htdocs>/
  templates/
  resources/
  node_modules/
    @quatrecentquatre/
        front-end-tools/
            pagebuilder-components/    ← this folder (contains install-in-project.sh + component folders)
                install-in-project.sh
                block_example/
                    block_example.twig
                    assets/
                    modules/
                ...

The script sets the htdocs root to the parent of node_modules/, then copies files into templates/ and resources/ under that root.

If pagebuilder-components is not under htdocs/node_modules/, the destinations will be wrong. Package can be download by itself, placed wherever you want and adapt .sh script for path to fit the new emplacement. You can use .mdc files to run the same kind of behavior for installation with AI. (Command in AI chat : create component [COMPONENT_NAME])

Prerequisites

  • A component folder named exactly as you will pass to the script (for example block_carousel, block_timeline).
  • That folder must sit next to install-in-project.sh inside pagebuilder-components/.

Ignored names when listing “available components” in errors: [NOM_DU_COMPOSANT], commons, .DS_Store, and the script itself.

How to include a new component

  1. Add or obtain the ref component under pagebuilder-components/<COMPONENT_NAME>/, with the structure your project expects (root Twig file(s), optional assets/, modules/, svg/, or other top-level folders). See create-pagebuilder-component.mdc in this repo for the full authoring convention.

  2. From htdocs or the root folder where package.json is, run:

    npm run install-component -- COMPONENT_NAME

    Example:

    npm run install-component block_collapse

  3. Read the script output. For each file it either copies, reports Copied …, or skips with Skipped (exists): … if the destination file already exists.

  4. Finish integration in the project (the script only copies files). You may still need to:

    • Ajust files if you have to extend the section
    • Register the section in CMS / pagebuilder configuration
    • Import or wire SCSS/JS into the main bundles if your build does not pick up new files automatically
    • Commit the new files in the target project

What the script copies (and where)

| Source (under pagebuilder-components/<COMPONENT_NAME>/) | Destination (under htdocs) | | --------------------------------------------------------- | ---------------------------------------------------------- | | *.twig at component root | templates/partials/sections/pagebuilder/ (same filename) | | assets/js/** | resources/assets/js/** (relative paths preserved) | | assets/scss/*.scss (root of scss only) | resources/assets/scss/partials/sections/pagebuilder/ | | assets/scss/modules/**/*.scss | resources/assets/scss/partials/modules/** | | modules/** | templates/partials/modules/** | | svg/** | templates/partials/svg/** | | Any other top-level folder (e.g. commons/) | templates/partials/<folder-name>/** |

The assets/ folder is handled specially; everything else at the top level except root .twig files is expected to be a directory (modules, svg, commons, etc.).

Overwrites

Existing destination files are never replaced. If you need to refresh a file, remove or rename it in the project first, then run the script again—or copy/update manually.

Troubleshooting

  • Ref folder does not exist: The name must match a directory beside the script. Use the exact folder name (often block_<something>).
  • Files end up in the wrong place: Confirm pagebuilder-components is under htdocs/node_modules/@quatrecentquatre/front-end-tools as in the layout above.