{"by":"sampsonj","descendants":27,"id":46490895,"kids":[46491833,46493399,46495876,46492021,46491891,46492246,46496309,46494105],"score":58,"text":"I thought it would be interesting to have ID style hover docs outside the IDE.<p>Hover is a Chrome extension that gives you IDE style hover tooltips on any webpage: documentation sites, ChatGPT, Claude, etc.<p>How it works:\n- When a code block comes into view, the extension detects tokens and sends the code to an LLM (via OpenRouter or custom endpoint)\n- The LLM generates documentation for tokens worth documenting, which gets cached\n- On hover, the cached documentation is displayed instantly<p>A few things I wanted to get right:\n- Website permissions are granular and use Chrome&#x27;s permission system, so the extension only runs where you allow it\n- Custom endpoints let you skip OpenRouter entirely – if you&#x27;re at a company with its own infra, you can point it at AWS Bedrock, Google AI Studio, or whatever you have<p>Built with TypeScript, Vite, and the Chrome extension APIs. Coming to the Chrome Web Store soon.<p>Would love feedback on the onboarding experience and general UX – there were a lot of design decisions I wasn&#x27;t sure about.<p>Happy to answer questions about the implementation.","time":1767552225,"title":"Show HN: Hover – IDE style hover documentation on any webpage","type":"story","url":"https://github.com/Sampsoon/hover"}