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

logigo-core

v1.0.0-beta.2

Published

Runtime code visualizer for Vibe Coders - see, slow down, and debug logic flow

Downloads

3

Readme

LogiGo - Runtime Code Visualizer for Vibe Coders

A lightweight, injectable JavaScript library that visualizes code execution flow in real-time. Perfect for debugging AI-generated code and understanding complex logic.

🚀 Quick Start

Option 1: Direct Script Tag

<script src="https://unpkg.com/logigo/dist/logigo.min.js"></script>
<script>
  new LogiGoOverlay({ speed: 1.0, debug: true }).init();
</script>

Option 2: NPM Install (Coming Soon)

npm install logigo-core
import LogiGo from 'logigo-core';
LogiGo.init({ speed: 1.0 });

📖 Usage

Basic Example

async function myFunction() {
  await LogiGo.checkpoint('step1');
  console.log('Step 1');
  
  await LogiGo.checkpoint('step2');
  console.log('Step 2');
}

With DOM Highlighting

<button id="login_button">Login</button>

<script>
  async function handleLogin() {
    await LogiGo.checkpoint('login_button'); // Highlights the button!
    // Login logic here
  }
</script>

🎮 Controls

The LogiGo overlay provides:

  • Play/Pause: Control execution flow
  • Step: Execute one checkpoint at a time
  • Speed Slider: Adjust execution speed (0.1x to 2.0x)
  • Reset: Start over from the beginning

🎨 Features

✅ Phase 1: Core Overlay (COMPLETE)

  • [x] Floating toolbar injection
  • [x] Play/Pause/Step/Reset controls
  • [x] Speed governor (0.1x - 2.0x)
  • [x] Visual Handshake (DOM element highlighting)
  • [x] Checkpoint API

✅ Phase 2: Speed Governor & Reporter (COMPLETE)

  • [x] Execution controller class
  • [x] Promise-based checkpoint system
  • [x] Reporter API for Browser Agent integration
  • [x] Real-time event subscription

✅ Phase 3: Ghost Diff (COMPLETE)

  • [x] AST diffing engine
  • [x] Visual diff rendering (Red/Green/Ghost)
  • [x] Side-by-side comparison

🛠️ API Reference

LogiGoOverlay

const overlay = new LogiGoOverlay(options);
overlay.init();

Options:

  • speed (number): Initial execution speed (default: 1.0)
  • debug (boolean): Enable debug logging (default: false)
  • position (string): Overlay position - 'bottom-right', 'bottom-left', 'top-right', 'top-left' (default: 'bottom-right')

Visual Handshake (DOM Highlighting)

Highlight UI elements as your code executes:

await LogiGo.checkpoint('step_1', {
  domElement: '#my-button',  // Selector or HTMLElement
  color: 'gold',             // Highlight color (default: gold)
  duration: 2000,            // Duration in ms (default: 2000)
  intensity: 'medium'        // low | medium | high
});

Reporter API (Browser Agent Integration)

Subscribe to checkpoint events for AI analysis or automated testing:

// Get the reporter instance
const reporter = LogiGo.reporter;

// Subscribe to events
reporter.onCheckpoint((entry) => {
  console.log('Checkpoint hit:', entry.id);
  console.log('DOM Element:', entry.domElement);
  console.log('Variables:', entry.variables);
});

// Export full report
const report = reporter.exportReport();

🧪 Running the Demos

  1. Clone this repository
  2. Open the examples in your browser:
    • example/complete_demo.html - Full integration demo
    • example/visual_handshake.html - Visual Handshake Demo
    • example/reporter_demo.html - Reporter API Demo
    • example/ghost_diff.html - Ghost Diff Demo

📚 Documentation

🤝 Contributing

LogiGo is in active development. Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

📄 License

MIT License - See LICENSE file for details

🙏 Credits

  • Concept: Gemini AI
  • Development: Antigravity (Google DeepMind)
  • Prototype: Replit AI

Made with ❤️ for Vibe Coders everywhere