
AI-Powered Autocomplete for Perplexity Using Sonar API
If you've used Perplexity.ai, you already know it's one of the best AI search engines out there. But there's one thing missing that Google has had for decades: autocomplete. As you type in Google's search bar, suggestions appear instantly. Perplexity doesn't have this — you're typing blind until you hit Enter. So I built it. A Chrome extension that injects AI-powered query suggestions directly into Perplexity's search bar, powered by their own Sonar API. Here's exactly how I did it. What It Does As you type in the Perplexity search bar (3+ characters), a dropdown appears with 5 AI-generated query completions. You can navigate them with arrow keys, select with Enter, or dismiss with Escape. It looks and feels native to Perplexity's dark UI. Demo: Watch it in action GitHub: ravisastryk/perplexity-autocomplete Tech Stack Manifest V3 Chrome Extension Perplexity Sonar API ( sonar model) for generating suggestions Vanilla JS — no framework needed for a content script this focused GitHub Acti
Continue reading on Dev.to JavaScript
Opens in a new tab




