openai-gpt-token-counter
Count the number of OpenAI tokens in a string. Supports all OpenAI Text models (text-davinci-003, gpt-3.5-turbo, gpt-4)
chatgpt
Node.js client for the official ChatGPT API.
@lenml/tokenizers
a lightweight no-dependency fork of transformers.js (only tokenizers)