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

@bemedev/mind-flow

v1.4.1

Published

Flow Chart UI library for Solid.js applications

Readme

@bemedev/mind-flow

Flow Chart and diagramming UI library for Solid.js applications.

Features

  • Interactive Canvas: Drag-and-drop nodes and interactive connecting edges.
  • State Machine Powered: State management built with @bemedev/app.
  • Zoom & Controls: Built-in zoom in/out, reset, and node creation toolbar.
  • Dynamic Edge Creation: Interactive drag-to-connect endpoints between nodes.
  • Type-Safe: Full TypeScript definitions for nodes, edges, and configuration handlers.

Installation

# Using pnpm
pnpm add @bemedev/mind-flow

# Peer dependencies
pnpm add solid-js @bemedev/app @bemedev/app-solidjs @thisbeyond/solid-dnd

Quick Start

Import the Flow component and include the CSS stylesheet:

import { Flow } from '@bemedev/mind-flow';
import '@bemedev/mind-flow/style.css';

export const FlowDemo = () => {
  return (
    <div style={{ width: '100vw', height: '100vh' }}>
      <Flow />
    </div>
  );
};

Custom Configuration

You can provide initial node and edge configurations, generic custom node data, custom node components, overlay panels, and callback handlers:

import { Flow, EditPanel, type NodeProps, type EdgeProps } from '@bemedev/mind-flow';
import type { Component, ComponentProps } from 'solid-js';
import '@bemedev/mind-flow/style.css';

type CustomData = { label?: string; content?: string; category?: string };

const CustomNode: Component<CustomData> = props => {
  return (
    <div class='p-3'>
      <div class='font-bold text-blue-600'>{props.label}</div>
      <div class='text-sm text-gray-600'>{props.content}</div>
      {props.category && (
        <span class='mt-1 inline-block rounded bg-gray-100 px-1 text-xs'>
          {props.category}
        </span>
      )}
    </div>
  );
};

type CustomFlowProps = ComponentProps<typeof Flow<CustomData>>;

const config: CustomFlowProps['config'] = {
  nodes: [
    {
      id: 'node-1',
      data: {
        label: 'Start',
        content: 'Starting point of workflow',
        category: 'Trigger',
      },
      position: { x: 100, y: 100 },
    },
    {
      id: 'node-2',
      data: { label: 'Process', content: 'Step 1 processing', category: 'Action' },
      position: { x: 400, y: 100 },
    },
  ],
  edges: [{ id: 'edge-1', from: 'node-1', to: 'node-2' }],
};

export const CustomFlow = () => {
  return (
    <div style={{ width: '100vw', height: '100vh' }}>
      <Flow<CustomData>
        config={config}
        component={CustomNode}
        panels={{
          topRight: () => (
            <EditPanel<CustomData>
              children={hooks => (
                <div>
                  <input
                    value={hooks.editing()?.data.label ?? ''}
                    onInput={e => hooks.updateField('label', e.currentTarget.value)}
                  />
                </div>
              )}
            />
          ),
        }}
        onNodeAdded={node => console.log('Node added:', node)}
        onNodeDeleted={nodeId => console.log('Node deleted:', nodeId)}
        onEdgeAdded={edge => console.log('Edge added:', edge)}
        onEdgeDeleted={edgeId => console.log('Edge deleted:', edgeId)}
      />
    </div>
  );
};

Exports

  • Flow: Root Solid.js flowchart component wrapping context provider and canvas.
  • FlowChart: Flowchart canvas component for custom embedding inside existing context.
  • Provider, useFlow: Solid context provider and hook for accessing the state machine service.
  • EditPanel: Configurable overlay panel component for editing active node data.
  • Panels: Overlay container component rendering custom canvas panels.
  • NodeProps: Generic type definition for node elements (NodeProps<D>).
  • EdgeProps: Type definition for edge connections.
  • FlowProps: Generic props configuration type for Flow and FlowChart.
  • EditPanelProps, EditPanelChildProps: Types for EditPanel and its children accessor helpers.
  • CLASSES: Array of Tailwind CSS safelist class names used in the UI.
  • mouseOut, clickOutside, resize: Custom Solid.js directives for focus/hover handling, outside click detection, and node dimension observation.
  • clamp: Number boundary constraint helper.

License

MIT