generator: browse directory and api files