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

@blockly/continuous-toolbox

v7.0.8

Published

A Blockly plugin that adds a continous-scrolling style toolbox and flyout

Readme

@blockly/continuous-toolbox Built on Blockly

A Blockly plugin that creates a continuous-scrolling style toolbox/flyout that is always open. All of the blocks from all categories are in the flyout together, and the user can either click a category name in the toolbox or scroll to the category they're looking for. This flyout only works as a vertical flyout and it works in both left-to-right and right-to-left modes. Parts of the toolbox style have been changed already, but you can customize the style further by following the toolbox documentation.

Screenshot of continuous toolbox showing multiple categories of blocks in the flyout at once The continuous toolbox is shown here with the 'Zelos' theme, and the style can be further customized.

Installation

Yarn

yarn add @blockly/continuous-toolbox

npm

npm install @blockly/continuous-toolbox --save

Usage

Import and call the registerContinuousToolbox() function before injecting Blockly. This style of flyout works best with a toolbox definition that does not use collapsible categories.

Note that this plugin uses APIs introduced in the v12 release of Blockly, so you will need to use at least this version or higher.

import * as Blockly from 'blockly';
import {registerContinuousToolbox} from '@blockly/continuous-toolbox';

// Inject Blockly.
registerContinuousToolbox();
const workspace = Blockly.inject('blocklyDiv', {
  toolbox: toolboxCategories,
  plugins: {
    flyoutsVerticalToolbox: 'ContinuousFlyout',
    metricsManager: 'ContinuousMetrics',
    toolbox: 'ContinuousToolbox',
  },
  // ... your other options here ...
});

Block Recycling

As a performance optimization, by default the continuous toolbox "recycles" blocks to avoid having to create DOM elements for potentially hundreds of blocks every time the flyout is shown. With the default set of blocks, this drops the time to show the flyout from roughly 35ms to 25ms; the effect is naturally larger with larger block sets.

Recycling is unrelated to Blockly's Trash feature; instead, it entails moving the blocks offscreen when the flyout is hidden, and then simply repositioning them when the flyout is shown again. Not all block types are amenable to this; in particular, blocks with dynamic behavior (e.g. those that reference variables, support mutations, or have dynamic dropdown fields) are excluded by default.

This feature can be toggled by calling setRecyclingEnabled() on an instance of ContinuousFlyout, and the default ruleset for determining which blocks are safe for recycling can be replaced with a custom callback by passing that function to setBlockIsRecyclable().

License

Apache 2.0