New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

logigo-core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logigo-core

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

beta
latest
Source
npmnpm
Version
1.0.0-beta.2
Version published
Maintainers
1
Created
Source

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)

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

✅ Phase 2: Speed Governor & Reporter (COMPLETE)

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

✅ Phase 3: Ghost Diff (COMPLETE)

  • AST diffing engine
  • Visual diff rendering (Red/Green/Ghost)
  • 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

  • Clone this repository
  • 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

  • Technical Specification
  • Integration Guide

🤝 Contributing

LogiGo is in active development. Contributions are welcome!

  • Fork the repository
  • Create a feature branch
  • Make your changes
  • 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

Keywords

debugger

FAQs

Package last updated on 26 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts