{"id":15888140,"url":"https://github.com/ceifa/tiktoken-node","last_synced_at":"2025-04-06T20:13:59.050Z","repository":{"id":143191254,"uuid":"615083302","full_name":"ceifa/tiktoken-node","owner":"ceifa","description":"OpenAI's tiktoken but with node bindings","archived":false,"fork":false,"pushed_at":"2024-05-18T11:58:03.000Z","size":2131,"stargazers_count":104,"open_issues_count":6,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T17:12:00.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceifa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-16T23:16:59.000Z","updated_at":"2025-03-06T11:03:01.000Z","dependencies_parsed_at":"2024-02-05T21:47:24.053Z","dependency_job_id":"8e171410-f674-4ca8-875f-4714fdbd775b","html_url":"https://github.com/ceifa/tiktoken-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Ftiktoken-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Ftiktoken-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Ftiktoken-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Ftiktoken-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceifa","download_url":"https://codeload.github.com/ceifa/tiktoken-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543595,"owners_count":20955865,"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","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":[],"created_at":"2024-10-06T06:06:28.000Z","updated_at":"2025-04-06T20:13:59.032Z","avatar_url":"https://github.com/ceifa.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⏳ tiktoken-node\n\ntiktoken is a fast [BPE](https://en.wikipedia.org/wiki/Byte_pair_encoding) tokeniser for use with\nOpenAI's models.\n\n```js\nconst tiktoken = require('tiktoken-node')\nlet enc = tiktoken.getEncoding(\"gpt2\")\nconsole.assert(enc.decode(enc.encode(\"hello world\")) == \"hello world\")\n\n// To get the tokeniser corresponding to a specific model in the OpenAI API:\nenc = tiktoken.encodingForModel(\"text-davinci-003\")\n```\n\nThe open source version of `tiktoken-node` can be installed from npm:\n```\nnpm install tiktoken-node\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceifa%2Ftiktoken-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceifa%2Ftiktoken-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceifa%2Ftiktoken-node/lists"}