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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pishposh

v1.0.26

Published

Visual Programming Language

Readme

📘 PishPosh – Visual Programming via Subway Maps

PishPosh is a lightweight, pure-DOM visual programming environment with modular plugin architecture. Users build “programs” by placing stations (nodes) and connecting them (edges). It uses reactive signals and event-driven agents for computation and data flow.

🔗 Overview

SubwayBuilder (Web Component)
 └─ Application (core)
      ├─ GridPlugin
      ├─ ToolboxPlugin
      ├─ PanZoomPlugin
      ├─ StationPlugin
      ├─ ConnectPlugin
      ├─ ConnectionLinePlugin
      ├─ MoveStationPlugin
      ├─ AgentLibraryPlugin
      ├─ AgentsPlugin
      ├─ AgentChooserPlugin
      └─ PropertiesPanelPlugin

Each plugin adds one cohesive feature — from visuals and interaction to agents and metadata — allowing for clean, feature-by-feature extension.


🚂 Application Core

  • Application.js sets up the main SVG canvas (<svg id="svg-canvas">) and provides:

    • use(plugin): loads a plugin
    • init(): initializes all plugins
    • graph: instance of reactive Graph (nodes & connections)
    • Event bus with on(event, handler) and emit(event, data)

🛤️ Core Plugins

  1. GridPlugin

    • Renders a tile-based grid behind everything
    • Updates automatically when panning/zooming happens
  2. ToolboxPlugin

    • Renders a floating toolbar with tool icons
    • Emits toolSelected when user switches between select / station / connect modes
  3. PanZoomPlugin

    • Enables click-drag panning and wheel zooming of the SVG viewBox
    • Emits viewBoxChanged to trigger grid redraw
  4. StationPlugin

    • Handles creating stations (nodes) when in station-mode
    • Renders circles and labels and hooks them into the reactive graph
  5. ConnectPlugin

    • Enables “connecting” mode:

      • Press down on a station, drag to another, then release to create a connection
    • Draws a temporary line during interaction

  6. ConnectionLinePlugin

    • Listens on connectionAdded/Removed
    • Renders permanent lines and labels, reacts to station moves
    • Follows a similar reactive pattern to StationPlugin
  7. MoveStationPlugin

    • Moves existing stations by dragging in select mode
    • Snaps movement to the grid

🤖 Agent Plugins (Programmatic Magic)

  1. AgentLibraryPlugin

    • Registers agent types (e.g., TimerAgent, GraphAgent)
    • Agents are small event-driven objects that can send, receive, and emit data
  2. AgentsPlugin

    • Instantiates agents for each node or connection using Graph metadata
    • Routes agent I/O via the application event bus (agentCreated, agentOutput, etc.)
  3. AgentChooserPlugin

  • Renders a draggable palette of available agent types
  • Drag an agent type onto the map to create a new node with that agent attached
  1. PropertiesPanelPlugin
  • Displays selected station/connection properties (position, label, agent)
  • Supports live editing

🧩 How to Use

1. Installation

npm install pishposh
# or clone the repo:
git clone https://github.com/catpea/pishposh.git

2. Add to your HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <subway-builder></subway-builder>
    <script type="module" src="./SubwayBuilder.js"></script>
  </body>
</html>

3. Interact!

  • 🛠 Switch tools via the toolbar
  • ⚪ Click in station mode to add nodes
  • 📏 Drag in select mode to pan or move nodes
  • 🔗 In connect mode, drag from one station to another
  • 🧪 Use the Agents panel to assign agents (e.g., TimerAgent, GraphAgent)
  • ✍️ Inspect and edit station/connection properties in the Properties panel

📚 Why It Matters

  • Modular structure: combine only what you need
  • Pure DOM + SVG: no dependencies, full control
  • Reactive & event-driven: clear flow of data between UI and agents
  • Self-hosted computing: nodes can introspect or mutate the graph itself (via GraphAgent)
  • Great starter/project learning: accessible, extendable, and fun to hack