better api, update index, add darkness.html