SuffixTreeJS is a javascript implementation of Ukkonen’s algorithm for “generalized suffix tree”. ~ @ENoutahi