{"passport":{"unfragile":{"@version":"1.0","version":"2026-05","artifact":{"id":"npm-openai-chat-tokens","slug":"openai-chat-tokens","name":"openai-chat-tokens","type":"repo","url":"https://github.com/hmarr/openai-chat-tokens#readme","page_url":"https://unfragile.ai/openai-chat-tokens","categories":["automation"],"tags":[],"pricing":{"model":"open_source","free":true,"starting_price":null},"status":"active","verified":false},"capabilities":[{"id":"npm-openai-chat-tokens__cap_0","uri":"capability://data.processing.analysis.token.estimation.for.chat.completions","name":"token estimation for chat completions","description":"This capability estimates the number of tokens that an OpenAI chat completion request will consume by analyzing the input text and applying specific tokenization rules defined by OpenAI's API. It uses a lightweight algorithm that mimics the tokenization process of the OpenAI models, ensuring accurate predictions. This implementation is distinct because it is designed to work seamlessly within JavaScript environments, making it easy to integrate into web applications or Node.js projects.","intents":["How many tokens will my chat completion request use?","Can I get an estimate of the token count for my input text before sending it to OpenAI?","What is the token usage for different input lengths in my chat application?"],"best_for":["developers building chat applications using OpenAI's API"],"limitations":["Estimates are based on the tokenization rules and may not account for all edge cases in input text."],"requires":["Node.js 12+"],"input_types":["text"],"output_types":["structured data"],"categories":["data-processing-analysis","developer-tools"],"confidence":0.5,"matches":0,"success_rate":0}],"trust":{"score":27,"verified":false,"data_access_risk":"low","permissions":["Node.js 12+"],"failure_modes":["Estimates are based on the tokenization rules and may not account for all edge cases in input text.","builder identity is not verified yet","no observed match outcomes yet"],"rank_breakdown":{"adoption":0.2731330851449278,"quality":0.12,"ecosystem":0.39999999999999997,"match_graph":0.25,"freshness":0.52,"weights":{"adoption":0.3,"quality":0.2,"ecosystem":0.15,"match_graph":0.3,"freshness":0.05}},"observed_outcomes":{"matches":0,"success_rate":0,"avg_confidence":0,"top_intents":[],"last_matched_at":null},"maintenance":{"status":"active","updated_at":"2026-05-24T12:16:23.902Z","last_scraped_at":"2026-05-03T14:04:47.472Z","last_commit":null},"community":{"stars":null,"forks":null,"weekly_downloads":26934,"model_downloads":null,"model_likes":null}},"distribution":{"claim_url":"https://unfragile.ai/submit?claim=openai-chat-tokens","compare_url":"https://unfragile.ai/compare?artifact=openai-chat-tokens"}},"signature":"DfVLZZg2jOClgg5ZyRMMbT9G6foHR1Hdpz/30ekxFcJDJFNOSuqvXl3vY4clj8nMVvyJYCbhzQH6BUP49Q9xAQ==","signedAt":"2026-06-22T09:48:22.865Z","signedBy":"unfragile.ai","version":1},"_links":{"self":"https://unfragile.ai/api/v1/passport/openai-chat-tokens","artifact":"https://unfragile.ai/openai-chat-tokens","verify":"https://unfragile.ai/api/v1/verify?slug=openai-chat-tokens","publicKey":"https://unfragile.ai/api/v1/trust-passport-public-key","spec":"https://unfragile.ai/trust","schema":"https://unfragile.ai/schema.json","docs":"https://unfragile.ai/docs"}}