TiktokenSharp and Tiktoken

These are **competitors** — both provide C# tokenization libraries for OpenAI models, with TiktokenSharp offering broader encoding support (`o200k_base`, `cl100k_base`, `p50k_base`) compared to Tiktoken's `cl100k_base`-only implementation.

TiktokenSharp
52
Established
Tiktoken
48
Emerging
Maintenance 10/25
Adoption 10/25
Maturity 16/25
Community 16/25
Maintenance 13/25
Adoption 9/25
Maturity 16/25
Community 10/25
Stars: 126
Forks: 18
Downloads:
Commits (30d): 0
Language: C#
License: MIT
Stars: 82
Forks: 7
Downloads:
Commits (30d): 0
Language: C#
License: MIT
No Package No Dependents
No Package No Dependents

About TiktokenSharp

aiqinxuancai/TiktokenSharp

Token calculation for OpenAI models, using `o200k_base` `cl100k_base` `p50k_base` encoding.

About Tiktoken

tryAGI/Tiktoken

This project implements token calculation for OpenAI's gpt-4 and gpt-3.5-turbo model, specifically using `cl100k_base` encoding.

Scores updated daily from GitHub, PyPI, and npm data. How scores work