A basic web server around bangin written in Node.js.
Run the server with:
node index.js [port]
If no port is provided then it will default to
Requests must include a non-empty value at querystring
q. The string will first be routed to bangin before, should that fail, falling back to DuckDuckGo.
The response if successful will be a 303 redirect that browsers can handle.
$ curl -I 'http://localhost:1234?q=x!aw' HTTP/1.1 303 See Other Location: https://wiki.archlinux.org/index.php?search=x [...] $ curl -I 'http://localhost:1234?q=x' HTTP/1.1 303 See Other Location: https://duckduckgo.com/?q=x [...]
Firefox does not yet support fully custom search engines. You can track the relevant issue here.