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

tabgroups-extension

v1.0.5

Published

Extension for browsers to sort tabs into groups by time (day)

Readme

tabGroups

CI

Extension for browsers to sort tabs into groups by time (day)

The extension is the tabGroups module of AnalyticExtension built as a standalone Firefox extension: the core of AnalyticExtension with only the parts this module needs, the module (modules/tabGroups/), its overview and settings in the sandbox (sandbox-modules/tabGroupsSandbox/) and the welcome page (modules/onboardingModule/). Everything except the files of this repository (README, CI, tests, package.json, …) comes from that build — change the code there, not here.

Changes in 1.0.5

Since 1.0.4:

  • Colors of groups from bookmarks by their name — a group from bookmarks gets its default color from its name (the group name, or the name of the bookmark folder when the group name is empty). The same name always gives the same color: the color of the text (colorFromText() of the SDK) turned into the nearest of the colors the browser has for tab groups (by the distance in OKLab). The color list of the editor marks it as "(default)". While a group keeps its default color, the color changes along with a new name or another folder; a color the user picks stays. Groups set up before keep their colors.
  • Permission for groups from bookmarks fixed — it could not be granted in this extension. Settings now have an "Allow groups from bookmarks" button above the settings of the groups (drawn by the core, tabGroups.requestPermission); it asks for bookmarks and tabs. The permission buttons of the overview open Settings right at the settings of the groups (options.html#tabGroupsSandbox).
  • Sorting by last use is the default — a tab the user switches to moves into the "today" group. It applies after the update too unless the sorting was chosen in Settings; the previous behavior is "when the tab was opened".
  • Dashboard — the overview of the groups can also be shown on a whole page (dashboard.html): "Show module output" → "Dashboard" in Settings. When the overview is no longer in the popup, the toolbar button opens the dashboard.
  • Smaller changes — the toolbar icon is an SVG that follows the light or dark look of the browser (icon.svg instead of icon.png) and Settings show the version of each module.
  • Repository — the extension zip for addons.mozilla.org of the version is in dist/ (npm run sync:module of AnalyticExtension puts it there).

Development

npm install        # also enables the pre-commit hook (.githooks)
npm start          # run the extension in a temporary Firefox profile
npm run check      # validation, type check, linters and tests (runs before npm publish)
npm run build      # extension zip in web-ext-artifacts/

| Script | What it checks | | --- | --- | | npm run validate | versions in package.json and manifest.json match, referenced files (also those of the uploaded module in modules.json) exist and are in the npm package, translations (_locales of the core and of the modules, messages.json of the uploaded module) are complete | | npm run lint | ESLint (JS), Stylelint (CSS), html-validate (HTML), web-ext lint (manifest, addons.mozilla.org rules) | | npm test | unit tests (node:test, test/); npm run test:coverage with coverage | | npm run typecheck | TypeScript check of the JSDoc types |

Release

The version is the one of the module (VERSION in modules/tabGroups/module.mjs of AnalyticExtension). In AnalyticExtension:

powershell -ExecutionPolicy Bypass -File scripts\build-module-firefox.ps1 -Module tabGroups
npm run sync:module -- tabGroups ../tabGroups   # copies the build here, sets the version in package.json

Then here:

git commit -m "tabGroups X.Y.Z"
git tag vX.Y.Z
git push --follow-tags

Then publish a GitHub release for the tag. The publish.yml workflow runs all checks, publishes the package to npm and attaches the extension zip to the release.