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

abra-flexi-addons-widget

v0.3.0

Published

Web component widget for fetching and maintaining ABRA Flexi addons.

Readme

ABRA Flexi Addons Widget

This widget is designed for ABRA Flexi, where it showcases web application addons and enables their installation within the application.

However, it can also be utilized by anyone for presenting addons on personal websites, such as partners who create them.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Third-party libraries used in this project are licensed under their respective licenses. See the thirdPartyNotice.json file for more information.

Technology Stack

  • Node.js
  • TypeScript
  • Lit
  • Rollup
  • TypeDoc
  • Web Test Runner

Usage on a Website

To use this widget directly on a production website, include a static minimized import from JSDELIVR (replace {version} with the desired version):

<script src="https://cdn.jsdelivr.net/npm/abra-flexi-addons-widget@{version}/dist/index.min.js"></script>

Then, inserting <addons-widget></addons-widget> into the website will render the complete web component without additional configuration.

Customization is possible using web component properties and styles with the addons-widget CSS selector and predefined variables, as shown below:

<style>
    addons-widget {
        --font-family: Arial, serif;
        --font-weight: light;
        --font-size: 1rem;
        --color-primary: #0e5dbb;
        --text-color-primary: #000000;
        --text-color-secondary: #6d6d70;
        --bg-color-primary: #fafafa;
        --bg-color-secondary: #f4f4f4;
        --bg-color-interactive: #ffffff;
        --bg-color-tag: #dbdbdb;
        --border-primary: solid #aaaaaa 0.1em;
        --border-interactive: solid #9c9c9c 0.1em;
        --border-radius-primary: 0.4em;
        --border-radius-interactive: 0.4em;
        --icons-color: var(--text-color-secondary);
        --addon-overview-height: 20em;
        --addon-overview-margin: 0.6em;
        --overview-rows: 2;
        --margin-container: 0;
    }
</style>
<addons-widget
    addonsPerPage="12"
    installEndpoint="/path/to/endpoint"
    localeSelect
    partnerId="123"
></addons-widget>

An example of usage is available in the /demo folder, which can be run by simply opening index.html in a browser.

Usage in Frameworks

This web component is framework-independent, but additional steps may be required for integration. For instance, in React, the Lit component must be converted into a React component to be used in JSX. Refer to this guide for more details.

To add the widget as a ES module dependency, install it from the NPM registry:

npm install abra-flexi-addons-widget

Development

To develop the source code located in the /src directory using Node.js, the following scripts are available. For manual testing and visualization, the /dev directory contains an HTML file that uses the local version of the widget.

Before making any changes, install the dependencies:

npm install

The key workflows are automated using GitHub Actions.

Watch

Compile and bundle the source code into the /dist directory with automatic refresh on file save:

npm run watch

Localization

Generate localization files in the /src/generated/locales directory based on .xlf translations in the /xliff directory:

npm run localize

To create translations, add message targets for locales in the /xliff directory. For missing translations, the default cs locale is used. However, most of the content is fetched from the Flexibee API, where translations for addons and partners should be provided.

Build

Compile and bundle the source code into the /dist directory with tree-shaking:

npm run build

Testing

Run all tests located in the /src/test directory:

npm run test

Full code converage report is generated in the /coverage directory.

For the first run on your machine, install the Playwright browser launchers:

npx playwright install --with-deps

Documentation

Generate documentation from TypeScript comments using TypeDoc, outputting Markdown files to the /wiki directory:

npm run docs

The output is synchronized with the GitHub Wiki via a GitHub Action.