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

@cristianodmtsb/colmeia

v1.0.0

Published

- [Colmeia](#Colmeia) - [Access](#Access) - [Usage](#Usage) - [Css](#Css) - [FallbackMapping](#FallbackMapping) - [Add new svg icons to sprite](#add-new-svg-icons-to-sprite) - [Configuring SASS](#configuring-sass) - [Dependencies with PWA Studio](#depende

Readme

Colmeia

Access

https://colmeia.now.sh/

Usage

yarn add @cristianodmtsb/colmeia

Then open the webpack.config.js file, find the usage of configureWebpack method and add the following block inside the special node:

'@cristianodmtsb/colmeia': {
    cssModules: true,
    esModules: true,
    graphqlQueries: true,
    rootComponents: false,
    upward: false
}

It will be like this:

special: {
    'react-feather': {
        esModules: true
    },
    '@magento/peregrine': {
        esModules: true,
        cssModules: true
    },
    '@magento/venia-ui': {
        cssModules: true,
        esModules: true,
        graphqlQueries: true,
        rootComponents: true,
        upward: true
    },
    '@cristianodmtsb/colmeia': {
        cssModules: true,
        esModules: true,
        graphqlQueries: true,
        rootComponents: false,
        upward: false
    }
},

Css

Add the css from colmeia in src/index.js

import '@cristianodmtsb/colmeia/lib/index.css';

FallbackMapping

Add the plugin to map the Venia fallback files that Colmeia is using.

Open your webpack.config.js, import the Colmeia's fallback file.

const cmaMapping = require('@cristianodmtsb/colmeia/fallback-mapping');

In clientConfig.plugins add cristianodmtsbOverrideMappingPlugin. The overrideMapping is the other pluging to fallback, is recommended to use this way.

...
new cristianodmtsbOverrideMappingPlugin(
  Object.assign(cmaMapping, overrideMapping);
),
...

Add new svg icons to sprite

To work with SVG icons in your project all you have to do is run the following command to install svg-spritemap-webpack-plugin and configure it in your project.

yarn add -D svg-spritemap-webpack-plugin

npm install svg-spritemap-webpack-plugin --save-dev

In the webpack configuration file of your project add SVGSpritemapPlugin.

clientConfig.plugins = [
        ...clientConfig.plugins,

        new DefinePlugin({
            /**
             * Make sure to add the same constants to
             * the globals object in jest.config.js.
             */
            UNION_AND_INTERFACE_TYPES: JSON.stringify(
                unionAndInterfaceTypes
            ),
            STORE_NAME: JSON.stringify('Venia')
        }),
        new HTMLWebpackPlugin({
            filename: 'index.html',
            template: './template.html',
            minify: {
                collapseWhitespace: true,
                removeComments: true
            }
        }),
        new cristianodmtsbOverrideMappingPlugin(
            Object.assign(cmaMapping, overrideMapping)
        ),

        //Add SVGSpritemapPlugin   
        new SVGSpritemapPlugin([
         'src/assets/icons/**/*.svg',
         './node_modules/@cristianodmtsb/colmeia/lib/assets/**/*.svg',
        ], {
           output: {
               filename: 'sprites.svg',
           },
           sprite: {
               generate: {
                   use: true
               }
           }
        })
    ];

Finally, remove the previous svg loader package that is no longer needed by running. if you were not using the previous loader, ignore this step.

yarn remove svg-sprite-loader

npm uninstall svg-sprite-loader

Then remove the following lines from src/index.js.

- const files = require.context(
-  '!svg-sprite-loader!./assets/icons',
-   false,
-   /.*\.svg$/,
- );
- files.keys().forEach(files);

Configuring SASS

To configure SASS, you need to install these dev dependencies:

yarn add --dev sass-loader node-sass

Then edit the webpack.config.js and add a new rule to clientConfig

clientConfig.module.rules.push({
  rules: [
    {
      test: /\.s[ca]ss$/,
      use: [
        'style-loader',
        {
          loader: 'css-loader',
          options: {
            modules: true,
            sourceMap: true,
          },
        },
        'sass-loader',
      ],
    },
  ],
});

Dependencies with PWA Studio

This library uses a peer dependency on two PWA Studio libraries:

  • venia-ui
  • peregrine

The idea of this library is to have custom components based on venia-ui and custom logic (hooks) based on peregrine.

peer-dependency

We use peer-dependency to keep the project version of venia-ui and peregrine.

When this library is imported in a project as a library it will consider the project version instead of the version set in this library.

Autoprefix

Follow these steps to configure the autoprefix in your project:

  1. Install the dependencies with yarn add --dev postcss-preset-env

  2. Edit the webpack.config.js with this code after the plugins:

clientConfig.module.rules.push({
    test: /\.css$/,
    use: [{
        loader: 'postcss-loader',
        options: {
            sourceMap: true,
            config: {
                path: './node_modules/@cristianodmtsb/colmeia'
            }
        }
    }],
});

Contributing

Make sure to read the contribution guidelines