Interactive DOM inspection and AI-powered code generation extension for Cursor IDE and VS Code
Capture any webpage's DOM structure, inspect elements interactively, and generate production-ready code components with AI assistance.
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.
- π 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
- VS Code or Cursor IDE 1.73.0+
- Node.js 18+
- Git
Search for "Viber" in VS Code Extensions
git clone https://github.com/zhijiewong/viber.git
cd viber
npm install
npm run compile-dev
# Press F5 in VS Code to launch- Open Command Palette (
Ctrl+Shift+P) - Run
Viber: Open URL in Viber - Enter URL or run
Viber: Detect Local Dev Server - Click elements to inspect and generate code
Viber: Open URL- Capture webpage DOMViber: Detect Local Dev Server- Find dev serversViber: Generate Code from Selection- Generate components
{
"viber.defaultBrowser": "chromium",
"viber.aiProvider": "cursor-native",
"viber.autoDetectDevServer": true
}Built with modern web technologies:
- Playwright - Browser automation
- TypeScript - Type safety
- VS Code API - Extension framework
- Floating UI - Advanced positioning
Browser Options: chromium, firefox, webkit
AI Providers: cursor-native, openai, anthropic
Settings: Use viber.* instead of domAgent.* in your VS Code settings
npm install # Install dependencies
npm run watch # Development with auto-rebuild
npm run compile # Production build
npm test # Run tests
npm run lint # Code lintingTech Stack: ESLint, Prettier, TypeScript, Jest, Playwright
- β 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
We welcome contributions! See our Contributing Guide for details.
- π User Guide - Complete usage instructions
- π Changelog - Version history
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 ofdom-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
- π§ Email: [email protected]
- π Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π Documentation: Full Documentation
Licensed under Apache License 2.0.
- π Issues
- π¬ Discussions
- π§ [email protected]
Built with β€οΈ for the developer community
Empowering developers with AI-assisted web development tools

