{"id":31556092,"url":"https://github.com/nguyenvanduocit/instantcode","last_synced_at":"2025-10-04T22:48:41.384Z","repository":{"id":310382072,"uuid":"1039646050","full_name":"nguyenvanduocit/instantCode","owner":"nguyenvanduocit","description":"InstantCode is a browser inspection tool that brings AI directly to your webpage. Simply click on any element to get intelligent insights, explanations, or help with your frontend development tasks.","archived":false,"fork":false,"pushed_at":"2025-09-19T15:04:50.000Z","size":1240,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T16:36:43.552Z","etag":null,"topics":["ai","claude","claude-code","vibe-coding"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nguyenvanduocit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-17T17:22:35.000Z","updated_at":"2025-09-19T15:04:41.000Z","dependencies_parsed_at":"2025-08-17T19:26:32.540Z","dependency_job_id":"0d63496a-3583-4ba0-86dd-08abf6020c4c","html_url":"https://github.com/nguyenvanduocit/instantCode","commit_stats":null,"previous_names":["nguyenvanduocit/instantcode"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/nguyenvanduocit/instantCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvanduocit%2FinstantCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvanduocit%2FinstantCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvanduocit%2FinstantCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvanduocit%2FinstantCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nguyenvanduocit","download_url":"https://codeload.github.com/nguyenvanduocit/instantCode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvanduocit%2FinstantCode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386121,"owners_count":25978109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","claude","claude-code","vibe-coding"],"created_at":"2025-10-04T22:48:39.582Z","updated_at":"2025-10-04T22:48:41.372Z","avatar_url":"https://github.com/nguyenvanduocit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InstantCode - AI-Powered Web Development Assistant\n\n[![Watch the Tutorial](https://img.youtube.com/vi/OuKnfCbmfTg/maxresdefault.jpg)](https://youtu.be/OuKnfCbmfTg)\n\u003e 📺 **[Watch the Tutorial Video](https://youtu.be/OuKnfCbmfTg)** - See InstantCode in action!\n\n## What can this plugin help you?\n\nAfter installing the plugin, you can:\n- **Point directly at any element** on your webapp\n- **Type a short request** like \"make it bigger\", \"center it\", \"change color to blue\"\n- **Wait for AI to modify your code** - it automatically finds and updates the source files\n- **See instant results** - your changes appear immediately in the browser\n\n\u003e Save cognitive load, because it's precious.\n\n## Prerequisites\n\nInstantCode requires **Claude Code** to provide AI assistance:\n\n```bash\n# Install Claude Code globally\nbun install -g @anthropic-ai/claude-code\n\n# Verify installation\nclaude --version\n```\n\n## Quick Start with Vite\n\nThe fastest way to get started is using our Vite plugin. This automatically handles everything for you!\n\n### 1. Install InstantCode\n\n```bash\nbun add -d instantcode\n```\n\n### 2. Add to Your Vite Config\n\nAdd the plugin to your `vite.config.ts`:\n\n```typescript\nimport { defineConfig } from 'vite';\nimport inspectorPlugin from 'instantcode/vite-plugin';\n\nexport default defineConfig({\n  plugins: [\n    inspectorPlugin(),\n  ],\n});\n```\n\n### 3. Start Your Dev Server\n\n```bash\nbun dev\n```\n\nThat's it! The InstantCode toolbar will automatically appear in your application and ready to use.\n\n## Plugin Configuration\n\nThe Vite plugin accepts these options:\n\n```typescript\ninspectorPlugin({\n  port: 7318,\n  verbose: false,\n})\n```\n\n## Framework Support\n\nInstantCode works with all Vite-supported frameworks:\n\n- ⚛️ **React** - Detects components, props, and state\n- 🟢 **Vue** - Understands composition/options API\n- 🅰️ **Angular** - Recognizes components and directives  \n- 🟠 **Svelte** - Identifies components and stores\n- 📄 **Vanilla JS** - Works with plain HTML/CSS/JS\n\n## Advanced Usage - Team Collaboration\n\n### Enable Team-Wide Code Modification\n\nWant your entire team to modify the app? Or let users customize the app themselves? Run InstantCode on a server!\n\n```typescript\ninspectorPlugin({\n  port: 7318,                            // Port to run server on (default: 7318)\n  listenAddress: '0.0.0.0',              // Used for socket connection between the toolbar and the server\n  publicAddress: 'https://ai.example.com', // Used to serve the inspector-toolbar.js file\n  verbose: false,                        // Enable detailed logging (default: false)\n})\n```\n\n**How it works:**\n- `listenAddress: '0.0.0.0'` - Makes the InstantCode server accessible from any network\n- `publicAddress` - The URL where your team accesses the inspector toolbar\n\n**Example Setup for Team Access:**\n```typescript\n// Deploy your app on a server at https://myapp.com\n// Configure InstantCode to be accessible:\ninspectorPlugin({\n  listenAddress: '0.0.0.0',              // Accept connections from team members\n  publicAddress: 'https://myapp.com:7318' // Where the toolbar connects\n})\n```\n\nNow anyone on your team can:\n1. Open the app at `https://myapp.com`\n2. Use the InstantCode toolbar to modify the UI\n3. Changes are saved directly to the server's source files\n4. Everyone sees updates in real-time!\n\n### Manual Setup (Without Vite)\n\nIf you prefer manual control or aren't using Vite:\n\n#### Run Standalone Server\n\n```bash\n# Navigate to your project directory first (important for context!)\ncd /path/to/your/project\n\n# Start the server (basic)\nbunx instantcode@latest\n\n# With custom port\nbunx instantcode --port 8080\n\n# Listen on all interfaces (for team access)\nbunx instantcode --listen 0.0.0.0\n\n# Use with reverse proxy\nbunx instantcode --listen localhost --public-address https://ai.example.com\n\n# Enable verbose logging\nbunx instantcode --verbose\n```\n\n#### CLI Options\n\n- `-p, --port \u003cnumber\u003e` - Port to run server on (default: 7318)\n- `-l, --listen \u003caddress\u003e` - Address to bind server to (default: localhost)\n- `-a, --public-address \u003curl\u003e` - Public URL for reverse proxy scenarios\n- `-V, --verbose` - Enable verbose logging\n- `-h, --help` - Show help message\n- `-v, --version` - Show version\n\n#### Add Script Manually\n\nAdd to your HTML:\n\n```html\n\u003c!-- Default setup --\u003e\n\u003cscript src=\"http://localhost:7318/inspector-toolbar.js\"\u003e\u003c/script\u003e\n\n\u003c!-- With custom port --\u003e\n\u003cscript src=\"http://localhost:8080/inspector-toolbar.js\"\u003e\u003c/script\u003e\n\n\u003c!-- With reverse proxy --\u003e\n\u003cscript src=\"https://ai.yourdomain.com/inspector-toolbar.js\"\u003e\u003c/script\u003e\n```\n\n**Happy coding! 🚀** and save your precious cognitive load.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenvanduocit%2Finstantcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnguyenvanduocit%2Finstantcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenvanduocit%2Finstantcode/lists"}