Quick, targeted feedback directly on HTML elements. No lengthy descriptionsβjust click, comment, and sync with AI.
Pointer β Your team's fastest way to give element-level feedback on live HTML pages.
For Designers, Front-end Developers, Business Analysts, Team Leads, Product Managers, and anyone on your team β Give precise feedback on any element, discuss in context, and let AI apply the changes.
β¨ Bookmarklet-based β Works on any localhost HTML page or static HTML file
- Localhost:
http://localhost:3000,http://localhost:8000, etc. - Static HTML:
file:///path/to/your/page.html
πΎ File-based storage β Comments saved as plain JSON (no database needed)
π― Element selection β Click any element to attach feedback
π AI-ready β Export pending comments for any AI agent to apply changes
(Claude Code, ChatGPT, Gemini, Copilot, or your favorite AI)
π Threaded replies β Discuss changes in context before applying
π¨ Visual highlighting β See which elements have comments
π Pin positions β Comments follow elements during scroll/zoom
β The old way (lengthy and error-prone):
Go to the contact page, find the header section, and change the title size to 24px
β The Pointer way (precise and instant):
Make this 24px
- π Click the element
- π¬ Say "Make this 24px"
- β¨ Done β AI gets it instantly
π¨βπΌ Product Managers
Validate requirements before design, generate specs directly from live pages, gather feedback faster
π¨ Designers
Convert requirements and user stories to interactive designs using AI, get precise feedback from stakeholders, streamline design reviews with visual comments
π Business Analysts
Prepare detailed user stories based on design mockups, validate business requirements against implementation
π§ͺ QA/Testers
Highlight bugs and issues instantly without screenshot tools, give feedback faster with visual context, create test cases from comments
π» Front-end Developers
Fix issues directly with AI assistance, iterate on live pages in real-time, pair with AI for live coding sessions
β‘ Team Leads
Facilitate faster design reviews and feedback loops, reduce communication overhead across team
git clone https://github.com/osama-eldrieny/Pointer.gitNavigate to the skill folder and start the server:
cd Pointer/comments-skill
npm install
npm startYou'll see:
π― HTML Comments server running at http://localhost:3001
π Bookmarklet page: http://localhost:3001/bookmarklet
- Open
http://localhost:3001/bookmarkletin your browser - Drag the "Pointer" logo to your bookmarks bar (click and hold, then drag)
- The pointer bookmark should now appear in your browser's bookmarks as "π Pointer"
- On any page, click the bookmarklet to activate the comments UI
Benefits of this one-time setup:
- β Comments UI loads automatically on every page load
- β No need to click the bookmarklet each time
- β Comments persist across page refreshes
- β Perfect for development workflows
To make Pointer always open and survive page refreshes, add one of these script tags to your HTML <head> or before </body>:
Option 1: Add this code in <head> tag
<!-- HTML Comments Skill: Enables the comments UI on page load.
Ensure the comments server is running on port 3001. -->
<script src="http://localhost:3001/inject.js" defer></script>Option 2: Or add this code
<script>
(function() {
var s = document.createElement('script');
s.src = 'http://localhost:3001/inject.js?t=' + Date.now();
s.defer = true;
document.head.appendChild(s);
})();
</script>Open your Project HTML file in the browser β either as a local server or directly:
- Test file: Open the included
test.htmlfile directly in your browser (file is at the project root) - Your project: Open your own HTML file or project URL
- Local server: Open
http://localhost:8000,http://localhost:3000, etc. (use whatever port your project runs on) - Static file: Open
file:///path/to/your/project.html(open HTML file directly without a server)
- Click the "π Pointer" bookmarklet from your bookmarks bar if it's not opened
- A toolbar appears in the top-right corner
- Click "+ Add Comment" button
- Click any element on the page to attach a comment
- Type your feedback and submit
- See numbered pins appear on the element
- Click "All Comments" button in the toolbar
- The sidebar opens showing all comments on the page
- You can:
- Reply to comments to discuss changes
- Delete comments you no longer need
- Read full comment history with replies
When ready to apply a comment:
- Click "Ready to Apply" button on the comment
- The status changes to "Pending Apply" (highlighted in yellow)
- If the comment has replies, you can mark individual replies instead
- The comment is now in the queue for your AI to process
Before applying comments, ask your AI agent to understand how Pointer works:
Check Pointer folder and understand how pointer tool works, don't create overview.md
This helps the AI agent understand the Pointer workflow, comments structure, and how to apply changes correctly.
After the AI understands Pointer, use this single command with any AI agent:
apply pending comments
Supported AI Agents:
- Claude Code
- ChatGPT
- Gemini
- Copilot
- And any other AI agent
Your AI agent will:
- Read all queued comments from
pending-apply.json - Apply each change to the corresponding HTML file
- Add an AI reply showing what was changed
- Mark the comment as β Applied
Refresh your browser to see the changes.
π‘ Pro tip: If you want the browser to refresh automatically after applying comments, ask your AI agent to add a browser refresh step to the flow.
That's it! Your HTML is now updated with all the changes. π
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /api/comments?page_url=... |
Fetch comments for a page |
| POST | /api/comments |
Create a comment |
| POST | /api/comments/:id/reply |
Add reply to comment |
| PATCH | /api/comments/:id |
Update status (for AI apply workflow) |
| DELETE | /api/comments/:id |
Delete comment |
Mark comments as "pending-apply" in the UI, then tell Claude Code:
Apply pending comments from pending-apply.json. Read the file,
apply each requested change to its HTML file, add AI replies to comments.json,
and clear pending-apply.json when done.
Claude will:
- Read
pending-apply.json(auto-generated work queue) - Edit HTML files on disk
- Update
comments.jsonwith AI replies - Mark comments as β applied
See CLAUDE_CODE_INTEGRATION.md for details.
Pointer/
βββ comments-skill/
β βββ server.js # Express API server
β βββ inject.js # Browser overlay & UI (~22KB)
β βββ comments.json # All comments (auto-created)
β βββ pending-apply.json # Work queue for AI apply
β βββ config.json # Configuration
β βββ package.json # Dependencies
β βββ package-lock.json # Locked dependencies
β βββ README.md # Full documentation
β βββ QUICK_REFERENCE.md # Quick lookup
β βββ SKILL_SETUP.md # Setup guide
β βββ CLAUDE_CODE_INTEGRATION.md # AI apply workflow
β
βββ assets/
β βββ images/
β βββ pointer-icon.png # Main icon (draggable bookmark)
β βββ pointer-icon-16.png # Small icon variant
β βββ pointer-icon-favicon.png # Favicon for bookmarklet page
β βββ favicon.ico # Standard favicon
β
βββ test.html # Example/demo page
βββ README.md # Main documentation
βββ package-lock.json # Root dependencies lock
Edit comments-skill/config.json:
{
"project_root": "../", // Path to HTML files
"server_port": 3001, // Server port
"url_base": "http://localhost:8000", // Your local server URL
"comments_file": "./comments.json" // Where comments are stored
}- comments.json β All comments with full history (append-only)
- pending-apply.json β Work queue (auto-managed, cleared after applying)
Both are plain JSON β edit directly if needed.
{
"id": "c_1718450000_abc123",
"page_url": "file:///Users/you/project/test.html",
"html_file_path": "../test.html",
"element_selector": "body > main > h1.title",
"element_snapshot": "<h1 class=\"title\">Dashboard</h1>",
"element_tag": "h1",
"element_classes": ["title"],
"element_id": null,
"computed_styles": {
"font-size": "36px",
"font-weight": "700"
},
"applied_css_rules": [],
"parent_element_info": {
"tag": "main",
"classes": [],
"id": null
},
"pin_x": 50.5,
"pin_y": 75.0,
"author": "Alice",
"text": "Change font to Inter",
"status": "applied",
"scope": "element",
"apply_to": "element-only",
"created_at": "2026-06-16T10:00:00Z",
"replies": [
{
"id": "r_1718450100_xyz",
"author": "Bob",
"text": "Suggested: use font-weight 600",
"created_at": "2026-06-16T10:05:00Z",
"status": "open"
},
{
"id": "r_1718450150_uvw",
"author": "Charlie",
"text": "I think 700 is better",
"created_at": "2026-06-16T10:10:00Z",
"status": "pending-apply"
},
{
"id": "r_1718450200_ai",
"author": "AI",
"is_ai": true,
"text": "β Applied β Changed font-family to 'Inter', font-weight to 700",
"created_at": "2026-06-16T10:15:00Z",
"status": "applied"
}
]
}{
"id": "c_1718450000_abc123",
"apply_comment": true,
"apply_reply_ids": ["r_1718450150_uvw"],
"original_comment": {
"text": "Change font to Inter",
"status": "applied"
},
"replies": [
{
"id": "r_1718450100_xyz",
"author": "Bob",
"text": "Suggested: use font-weight 600",
"created_at": "2026-06-16T10:05:00Z",
"status": "open"
},
{
"id": "r_1718450150_uvw",
"author": "Charlie",
"text": "I think 700 is better",
"created_at": "2026-06-16T10:10:00Z",
"status": "pending-apply"
}
],
"element_selector": "body > main > h1.title",
"page_url": "file:///Users/you/project/test.html",
"author": "Alice",
"created_at": "2026-06-16T10:00:00Z",
"pin_x": 50.5,
"pin_y": 75.0
}- Add β Click element, type feedback, submit
- Discuss β Reply in context with team
- Mark β Click "Mark Apply" when ready for AI
- Apply β Tell Claude Code "apply pending comments"
- Done β AI replies appear, changes live, status β β
- No database β Plain JSON files, easy to version control
- No auth β Local team skill, no user management needed
- No external API β Claude Code applies changes locally
- Portable β Ship with your project, works anywhere
- Transparent β See exactly what's being applied
- Local/localhost only (not internet-facing)
- Single-process concurrency (file-based writes)
- No real-time sync across multiple users
- Node.js 14+ required
Server won't start?
# Kill process on port 3001
kill -9 $(lsof -t -i :3001)
# Start fresh
npm startBookmarklet not loading?
- Check browser console (F12)
- Verify
config.jsonurl_base matches your server - Ensure CORS is enabled (it is by default)
Comments not showing?
- Refresh page
- Check
comments-skill/comments.jsonexists - Verify paths in config are correct
Osama Eldrieny
MIT