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

@rosepetal/node-red-contrib-git-control

v1.0.0-alpha.0

Published

A Node-RED advanced Git control sidebar plugin

Readme

node-red-contrib-git-control

A Node-RED sidebar plugin for Git version control. Manage commits, branches, and remote synchronization directly from the editor without switching to the command line.

Example

Why you might want it

  • Visual commit graph: See your Git history with branch labels, push status, and parent relationships on a canvas-based timeline
  • Detached HEAD safety: Automatically creates branches when committing from historical states to prevent orphaned commits
  • Flow synchronization: Reloads flows after checkout/reset/pull so your editor stays in sync with disk changes
  • Smart error messages: Context-aware suggestions guide you through issues
  • Integrated workflow: Uses Node-RED's project system and SSH keys—no separate Git configuration needed

Quick start

  1. Install the plugin in your Node-RED user directory:

    cd ~/.node-red
    npm install @rosepetal/node-red-contrib-git-control
  2. Restart Node-RED.

  3. Open the Node-RED editor and look for the Git Control tab in the right sidebar (next to Debug, Config, etc.)

Node-RED 2.0+ with projects enabled is required. The plugin works only with Node-RED project directories that are Git repositories.

Using the sidebar

The Git Control sidebar has several sections:

Toolbar

  • Fetch: Download updates from remote without merging
  • Pull: Download from remote with merge (reloads flows automatically)
  • Push: Upload your commits to remote (auto-sets upstream for new branches)
  • Refresh: Reload all data from repository

Sync indicators show how many commits you are ahead/behind the remote.

Branch Selector

Switch between branches using the dropdown. The current branch is highlighted. Remote-only branches (not yet checked out locally) appear in the list.

Changes Panel

  • Unstaged changes: Modified, created, or deleted files not yet staged
  • Staged changes: Files ready to be committed

Use the + button to stage individual files or stage all at once. Use the - button to unstage. Click the trash icon on unstaged files to discard changes (⚠️ irreversible).

Commit Panel

When you have staged changes:

  1. Enter a commit message
  2. Click Commit

If you're in detached HEAD (viewing an old commit), the plugin creates a new branch automatically (named from-<hash>) to preserve your work.

Commit Graph

Visual timeline showing:

  • Blue nodes: Commits already pushed to remote
  • Purple nodes: Local commits not yet pushed
  • Green center: Current HEAD position
  • Branch labels: Which branches point to each commit

Click any commit to open a modal with actions:

  • Switch to this commit: Checkout the commit (validates no uncommitted/unpushed changes first)

Hover over commits to see tooltips with hash and message.

Detached HEAD Warning

If you check out an old commit, a warning banner appears explaining you're in detached HEAD state. Click Return to Latest to go back to your branch tip.

HTTP API

The plugin exposes admin HTTP endpoints for scripting, testing, or external tools. Full API reference with request/response examples lives in docs/http-api.md.

Key routes:

  • GET /rosepetal-git/project-info - Project metadata, branch, sync status
  • POST /rosepetal-git/log - Commit history with graph data
  • POST /rosepetal-git/status - File changes and staging state
  • POST /rosepetal-git/commit - Create commit (auto-branches in detached HEAD)
  • POST /rosepetal-git/push - Push to remote (auto-sets upstream)

All routes require git-control.read or git-control.write permissions when Node-RED authentication is enabled.