Even though, Ferret comes as a CLI executable, it also can be used as a library.
You can download latest binaries from here.
From the source
$ go get github.com/MontFerret/ferret
$ go get github.com/MontFerret/ferret/pkg/compiler
In order to use all Ferret features, you will need to have Chrome either installed locally or running in Docker. For ease of use we recommend to run Chrome inside a Docker container:
$ docker pull alpeware/chrome-headless-stable $ docker run -d -p=0.0.0.0:9222:9222 --name=chrome-headless -v /tmp/chromedata/:/data alpeware/chrome-headless-stable
But if you want to see what's happening during query execution, just start your Chrome with remote debugging port:
$ chrome.exe --remote-debugging-port=9222