index: add an `opts` argument
index: make the `sandbox` configurable

Through the "options" argument.
index: make the `filename` configurable
v1.1.0