{"id":24617800,"url":"https://github.com/jacoblincool/tiktoken-calculator","last_synced_at":"2026-02-28T07:04:48.026Z","repository":{"id":212625776,"uuid":"614236728","full_name":"JacobLinCool/Tiktoken-Calculator","owner":"JacobLinCool","description":"Calculate the token count for GPT-4, GPT-3.5, GPT-3, and GPT-2.","archived":false,"fork":false,"pushed_at":"2023-12-15T08:43:38.000Z","size":70,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T05:47:53.773Z","etag":null,"topics":["gpt","tiktoken","tokenizer"],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/JacobLinCool/tiktoken-calculator","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JacobLinCool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-15T07:14:41.000Z","updated_at":"2023-12-16T18:14:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"65d3bcba-4bfc-4a14-865d-dd63284b2eab","html_url":"https://github.com/JacobLinCool/Tiktoken-Calculator","commit_stats":null,"previous_names":["jacoblincool/tiktoken-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JacobLinCool/Tiktoken-Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTiktoken-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTiktoken-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTiktoken-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTiktoken-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobLinCool","download_url":"https://codeload.github.com/JacobLinCool/Tiktoken-Calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTiktoken-Calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272324327,"owners_count":24914395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpt","tiktoken","tokenizer"],"created_at":"2025-01-24T23:41:01.549Z","updated_at":"2026-02-28T07:04:48.001Z","avatar_url":"https://github.com/JacobLinCool.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tiktoken Calculator\n\nCalculate the token count for GPT-4, GPT-3.5, GPT-3, and GPT-2.\n\n\u003e It uses [openai/tiktoken](https://github.com/openai/tiktoken) to calculate the token count.\n\n## How to use\n\n### HuggingFace Spaces\n\nGo to \u003chttps://huggingface.co/spaces/JacobLinCool/tiktoken-calculator\u003e and try it out!\n\n### Docker\n\nThere is a pre-built Docker image available on Docker Hub: \u003chttps://hub.docker.com/r/jacoblincool/tiktoken-calculator\u003e\n\n```bash\ndocker run -p 7860:7860 jacoblincool/tiktoken-calculator\n```\n\nIf you prefer to use Docker Compose, you can clone this repository and run:\n\n```bash\ndocker compose up -d\n```\n\n### Local\n\nI use Poetry to manage dependencies.\n\nSetup the virtual environment after cloning this repository:\n\n```bash\npoetry install\n```\n\nThen run the app:\n\n```bash\npoetry run python app.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Ftiktoken-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacoblincool%2Ftiktoken-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Ftiktoken-calculator/lists"}