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.
β¨ Bookmarklet-based β Works on any localhost HTML page
πΎ 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 Claude Code to apply changes
π Threaded replies β Discuss changes in context before applying
π¨ Visual highlighting β See which elements have comments
π Pin positions β Comments follow elements during scroll/zoom
Instead of lengthy feedback like:
"Go to the contact page, find the header section, and change the title size to 24px"
With Pointer, just:
- π Click the element
- π¬ Say "Make this 24px"
- β¨ Done β AI gets it instantly
Perfect for:
- π₯ Design reviews with developers
- π€ Feeding feedback to AI for implementation
- β‘ Quick iteration loops
- π± Testing live pages (localhost, staging, production)
git clone https://github.com/osama-eldrieny/Pointer.gitNavigate to the skill folder and start the server:
cd Pointer/comments-skill
npm install
npm start
β οΈ IMPORTANT: Keep this terminal open β the comments server must stay running for the bookmarklet to work.
You'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" button to your bookmarks bar (click and hold, then drag)
- The button should now appear in your browser's bookmarks
- On any page, click the bookmarklet to activate the comments UI
Tip: The bookmarklet works like a browser bookmark β drag it to your toolbar for quick access.
For persistent comments that survive page refreshes, add this script tag to your HTML <head> or before </body>:
<!-- 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>This method:
- β 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
Choose this method if: You want comments to always be available while developing.
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 "HTML Comments" bookmarklet from your bookmarks bar
- 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 AI to process
Tell Claude Code to apply your pending comments:
apply pending comments
Claude 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
- Browser automatically refreshes to show the changes
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.
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 Claude Code
βββ config.json # Configuration
βββ package.json # Dependencies
βββ README.md # Full documentation
βββ QUICK_REFERENCE.md # Quick lookup
βββ CLAUDE_CODE_INTEGRATION.md # AI apply workflow
test.html # Example/demo page
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": "http://localhost:8000/test.html",
"html_file_path": "./test.html",
"element_selector": "#hero h1",
"author": "Alice",
"text": "Change font to Inter",
"status": "open",
"created_at": "2026-06-16T10:00:00Z",
"replies": [
{
"id": "r_1718450100_xyz",
"author": "Bob",
"text": "Agreed, looks better",
"status": "open"
},
{
"id": "r_1718450200_ai",
"author": "AI",
"text": "Applied β β Changed font-family to Inter",
"status": "applied"
}
]
}- 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?
# Check port
lsof -i :3001
# Kill if stuck
kill -9 <PID>
# 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