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

@combeenation/2d-planning-utils

v0.2.0

Published

Combeenation 2D planning utils

Readme

2D planning utils

This repository contains utils for implementing 2d planning editors in an Combeenation Configurator.

API Documentation

Dependency Documentations and Examples

Here are some useful links to the documentation of the used external packages:

Daybrush (the package owner of infinite viewer, moveable and selecto) has a very useful storybook which shows a lot of examples: Storybook Daybrush

Functionalities

Dataview Drag and Drop Handler

This handler can be used to attach to a Dataview component of the configurator. It allows you to drag and drop from a Dataview into a drop container and provides events to write custom behaviors.

Usage

  1. Create the CbnDataviewDragManager specifying the type of the custom drag data, the dataview to drag items from, a selector for the target container (where items will be dropped into), and optionally the class of disabled dataview items.

  2. onDragStart and onDrag need to be overwritten to set the drag data and handle the drop logic, respectively. Drag image creation, drag image positioning and drop zone detection are done by the handler. Optionally, onDragEnd can be overwritten for any post drag logic.

See docs for more infos: CbnDataviewDragManager

Infinite 2D Viewer Integration

Provides a full infinite 2d viewer which can be used to control complex planning modes. In addition to the default features, it offers custom methods such as automatic viewport centering.

Usage

  1. Create the CbnInfiniteViewer specifying the container element, and optionally CbnInfiniteViewerOptions for customization. See InfiniteViewerOption for detailed information.

See docs for more infos: CbnInfiniteViewer

Elements Moveable and Selecto manager

Can be used to make html elements moveable and draggable (and much more) inside the infinite viewer. It provides a lot of functionality out-of-the-box and has been adapted with several Combeenation-specific methods. All necessary events are exposed and can be fully customized.

Usage

  1. Create the CbnMoveableSelectoManager specifying the CbnInfiniteViewer to use, selectors for the moveable items and the container, and optionally MoveableOptions.

  2. Overwrite the events you need. Using onSelect for selection handling and onDrag for position handling is advised.

See docs for more infos: CbnMoveableSelectoManager

Various util methods and standardized functions

Provides methods that are frequently used across various projects. These methods cover a wide spectrum, from simple unit conversions to complex mathematical calculations, useful SVG manipulations, and much more.

See docs for more infos:

Provided Types

You can view the exported and provided types in the documentation: Documentation - Types

Infinite Viewer, Moveable and Selecto types are re-exported.