Fast token estimation with 95%+ average accuracy in a 2kB bundle
github.com/johannschopplich/tokenx
johannschopplich/tokenx