Fast token estimation with 95%+ average accuracy, 2kB minified and gzipped
github.com/johannschopplich/tokenx
johannschopplich/tokenx