NOTE (2nd April, 2012): After an e-mail correspondence with DuckDuckGo's Gabriel W. I decided to take down this project (and remove it from GitHub) due to Terms of Service issues with aggregating search results. The short story: DDG aren't allowed to syndicate search results from external providers in other ways.

I will try to implement the "autocompleter" functionality some other way in the future, so I'll keep this page for now. But until then hang tight. ;-)

DuckDuckStack is a user-script that extends the Stack Exchange with an API docs autocompleter, powered by DuckDuckGo. It is a Greasemonkey user-script and should run on Firefox and Chrome.

In Chrome you will need to also install the Tampermonkey extension as the script uses features that native user-scripts can't (more specifically @require and GM_xmlhttpRequest).

Usage

To use the autocompleter do the following:

Start writing an answer on a Stack Exchange answer. To start using the autocompleter you type in api: which will open a list of available search tags should appear that will filter as you continue typing. You can move the selection with up/down arrow keys and select with the enter key. The search tags will group in related and unrelated tags.

When you've selected the search tag it will auto-insert it into the text like this: api:[search tag]:. After this you can write a search term which will let the user-script do a relevant site search in DuckDuckGo and list them.

When you've selected the search result you want it will auto-insert the link into your post.

The screenshots below shows this three step flow:

The token that the script reacts on looks like this: api:[search tag]:[search term].