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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@wixc3/codux-librarian

v0.10.0

Published

`codux-librarian` is a CLI tool for packaging libraries of third-party boards and components templates into a format that can be consumed by [Codux](https://www.codux.com).

Readme

Codux Librarian

codux-librarian is a CLI tool for packaging libraries of third-party boards and components templates into a format that can be consumed by Codux.

This tool creates an NPM package containing the library's boards. Once this package is added as a dev dependency in a user's project, the boards will appear in the "libraries" section of the Add Panel when the project is opened in Codux and in the new component dialog to allow install/inline component templates.

Building an Asset Library

To package your boards into a library, follow these steps:

  1. Add @wixc3/codux-librarian as a dev dependency to the project you want to use for providing boards to other projects:
npm install --save-dev @wixc3/codux-librarian
  1. Create a codux-librarian.config.json file in the root directory of the project. Configure it based on the format described in the LibrarianConfig interface.

  2. Build the library using the CLI:

    npx codux-librarian build

    Build Options

    The build command supports the following option:

    • --config: Specify a custom path to a configuration file. Defaults to ./codux-librarian.config.json.
  3. A new directory containing the packaged library will be generated. Publish this package to NPM:

Build Process Details and Requirements

Board Templates

Any board file located in the configured boardsPath will be copied to the package.

Component Templates

Folders containing a *.component.json file under the configured componentsPath will be copied to the package. Required dependencies for components are automatically determined by inspecting JavaScript imports in the component template modules.

Dependency Management:

  • Dependencies required by components must be explicitly set as peerDependencies in the library package with the acceptable version range.
  • To prevent automatic installation by consuming projects, the dependency's optional flag should be set in the usedPeerDependenciesMeta.

Ignored Directories

The metadata directory is excluded from the package during the build process.

Consuming an Asset library

To use a packaged library in a project:

  1. Add the packaged library as a development dependency:

    npm install --save-dev library-package
  2. Update the codux.config.json file of the consuming project to include the library:

    {
      "addPanel": {
        "assets": ["library-package"]
      }
    }

Limitations

  1. Boards in the boardsPath that import components using relative paths are not supported. Components must be imported from external packages.
  2. Boards containing multiple return statements are not supported.
  3. Board cover images must be imported using a relative path to the image file, including the file extension.