Skip to content

zhijiewong/viber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

50 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Viber Logo

Viber πŸ”

Interactive DOM inspection and AI-powered code generation extension for Cursor IDE and VS Code

Version License VS Code Node.js

Capture any webpage's DOM structure, inspect elements interactively, and generate production-ready code components with AI assistance.

Viber Demo

This project aims to provide developers and vibe coders with an intuitive way to extract DOM elements from websites they're developing, helping them easily locate where they want AI to program in order to complete projects efficiently. Future updates will include one-click integration with Cursor and other AI programming tools for seamless workflow enhancement.

✨ Features

  • 🌐 DOM Inspection: Capture and analyze any webpage's DOM structure in real-time
  • 🎯 Interactive Selection: Click-to-select elements with visual highlighting
  • πŸ€– AI Code Generation: Generate React, Vue, Angular, and vanilla JS components
  • πŸ“‹ Multi-format Export: Copy selectors, XPath, JSON, or HTML data
  • πŸ”§ Dev Server Detection: Auto-detect and inspect local development servers
  • 🎨 Cursor Integration: Seamless integration with Cursor's native AI

πŸš€ Quick Start

Prerequisites

  • VS Code or Cursor IDE 1.73.0+
  • Node.js 18+
  • Git

Installation

From Marketplace (Coming Soon)

Search for "Viber" in VS Code Extensions

Development Setup

git clone https://github.com/zhijiewong/viber.git
cd viber
npm install
npm run compile-dev
# Press F5 in VS Code to launch

πŸ“– Usage

Basic Workflow

  1. Open Command Palette (Ctrl+Shift+P)
  2. Run Viber: Open URL in Viber
  3. Enter URL or run Viber: Detect Local Dev Server
  4. Click elements to inspect and generate code

Commands

  • Viber: Open URL - Capture webpage DOM
  • Viber: Detect Local Dev Server - Find dev servers
  • Viber: Generate Code from Selection - Generate components

Configuration

{
  "viber.defaultBrowser": "chromium",
  "viber.aiProvider": "cursor-native",
  "viber.autoDetectDevServer": true
}

πŸ—οΈ Architecture

Built with modern web technologies:

  • Playwright - Browser automation
  • TypeScript - Type safety
  • VS Code API - Extension framework
  • Floating UI - Advanced positioning

βš™οΈ Configuration

Browser Options: chromium, firefox, webkit
AI Providers: cursor-native, openai, anthropic
Settings: Use viber.* instead of domAgent.* in your VS Code settings

πŸ§ͺ Development

npm install          # Install dependencies
npm run watch        # Development with auto-rebuild
npm run compile      # Production build
npm test            # Run tests
npm run lint        # Code linting

Tech Stack: ESLint, Prettier, TypeScript, Jest, Playwright

πŸ“ˆ Roadmap

  • βœ… Phase 1: Core extension architecture
  • 🚧 Phase 2: Advanced DOM analysis features
  • πŸ“‹ Phase 3: Enhanced UI and responsiveness
  • πŸ€– Phase 4: AI integration improvements
  • 🎨 Phase 5: Production polish and marketplace

🀝 Contributing

We welcome contributions! See our Contributing Guide for details.

πŸ“š Documentation

πŸ› Troubleshooting

Common Issues

Extension won't load:

  • Ensure VS Code/Cursor is version 1.73.0 or higher
  • Check Node.js version (18+ required)
  • Try reloading the window (Ctrl+Shift+P β†’ "Developer: Reload Window")
  • Check that you're using the new viber.* commands instead of dom-agent.*

DOM capture fails:

  • Verify the URL is accessible
  • Check browser permissions and security settings
  • Ensure Playwright browsers are installed

AI code generation not working:

  • Verify Cursor AI is enabled and configured
  • Check API keys for alternative AI providers
  • Ensure internet connectivity

Getting Help

πŸ“„ License

Licensed under Apache License 2.0.

πŸ“ž Support


Built with ❀️ for the developer community
Empowering developers with AI-assisted web development tools

About

Dom capture for vibe coders to do vibe coding

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published