Skip to content
PluginStats

chatoyant weekly downloads statistics

By Anonyfox · npm · AI SDKs

OCaml-first SDK for LLM providers with a zero-dependency Melange-generated JavaScript package, streaming, structured outputs, and tool calling.

View on npm Fresh · Dec 6, 2026

chatoyant has 935 recorded weekly downloads on npm, an increase of 48.2% over the past 30 days, ranking #2090 of 3,247 tracked listings.

Weekly downloads
935
Official API · Dec 5, 2026
7-day growth
+18.5%
+146 weekly downloads
30-day growth
+48.2%
+304 weekly downloads
90-day growth
+177%
+597 weekly downloads
Rank
#2090
▼ 34 in 7 days

About chatoyant

Chatoyant

npm version CI OCaml TypeScript License: MIT

<div align="center"> <img src="https://raw.githubusercontent.com/Anonyfox/chatoyant/main/assets/chatoyant-logo.png" alt="Chatoyant Logo" width="400" /> </div>

OCaml-first SDK for LLM providers with an Eio native runtime and a zero-runtime-dependency JavaScript package generated by Melange. Chatoyant provides typed provider clients, structured outputs, tool calling, streaming, token/cost accounting, and root-only npm exports.

chatoyant /shuh-TOY-uhnt/ - having a changeable lustre.

Install

npm install chatoyant            # JavaScript/TypeScript: Node 18+, no runtime dependencies
opam install chatoyant eio_main  # OCaml 5.3+

Set the API key for the provider you call (OPENAI_API_KEY, ANTHROPIC_API_KEY, XAI_API_KEY, META_API_KEY or OPENROUTER_API_KEY), then make a first call:

import { genText } from "chatoyant";

console.log(await genText("Say hello in three words.", { model: "fast" }));

In OCaml, add (libraries chatoyant eio_main) to your dune stanza, plus (preprocess (pps chatoyant.ppx)) for module%tool and derived codecs. Full examples: OCaml Quick Start and JavaScript Quick Start.

Highlights

  • Native OCaml API built around Eio, result-returning calls, .mli contracts, and typed tool definitions.
  • Melange-generated npm package with one root import path, ESM and CommonJS entrypoints, colocated .d.ts and .d.cts declarations, and no runtime npm dependencies.
  • Unified Chat session API, one-shot text/data/stream shortcuts, tool calling, streaming accumulation, JSON roundtrip, and token/cost accounting.
  • Raw provider clients for OpenAI, Anthropic, xAI, Meta (Muse Spark), OpenRouter, and local OpenAI-compatible servers.
  • Standalone Draft 2020-12 JSON Schema parser/validator with OpenAI strict projection and typed OCaml codec generation.
  • Production-derived JS usage tests, OCaml native tests, TypeScript declaration checks, package metadata checks, and the official JSON Schema suite against the bundled npm package.

Guides

Full API docs live at anonyfox.github.io/chatoyant. Start with one of these:

Package Size Next To Other JS LLM Libraries

Measured on 2026-11-10 with Node v24.22.1 and npm 11.21.1. Each case uses fresh production installs of registry latest versions. Install sizes count node_modules file bytes (1 MB = 1024 KB); bundles use a one-request script, esbuild 0.25 (minified ESM for Node 20), and gzip level 9.

SDKVersionsInstalled packagesnode_modulesMinified bundleGzip
chatoyantchatoyant@0.17.210.6 MB218.0 KB54.9 KB
openaiopenai@7.55.0122.9 MB385.0 KB84.2 KB
@anthropic-ai/sdk@anthropic-ai/sdk@1.7.0817.6 MB413.5 KB97.3 KB
ai + @ai-sdk/openaiai@7.0.166, @ai-sdk/openai@4.0.1111222.5 MB916.2 KB208.2 KB
langchain + @langchain/openailangchain@1.6.3, @langchain/core@1.3.6, @langchain/openai@1.8.22578.1 MB1520.6 KB356.1 KB

Chatoyant has the smallest install and bundles in this sample; openai ties its installed package count. The openai and Anthropic cases each cover one provider; chatoyant includes all six provider adapters plus JSON Schema validation and token/cost tables. One root import still pulls all adapters into the bundle.

See Smallest JavaScript LLM SDK: measured sizes for the method, source scripts, measured JSON and a typechecked example. Rerun with node scripts/measure-sdk-size.mjs.

Provider Routing

ProviderEnv varDetection
OpenAIOPENAI_API_KEYgpt-*, o1-*, o3-*, o4-*, chatgpt-*
AnthropicANTHROPIC_API_KEYclaude-*
xAIXAI_API_KEYgrok-*
MetaMETA_API_KEY (or MODEL_API_KEY)muse-*
OpenRouterOPENROUTER_API_KEYSlash notation such as openai/gpt-4o
LocalLOCAL_BASE_URLExplicit provider: "local" or local fallback

Model presets are available for quick intent-based calls: fast, cheap, balanced, best, and reasoning.

PresetOpenAIAnthropicxAIMeta
fast / cheapgpt-6-lunaclaude-haiku-5-5grok-4.20-0309-non-reasoningmuse-spark-1.3
balancedgpt-6.2-solclaude-sonnet-5-5grok-4.3muse-spark-1.3
best / reasoninggpt-6.2-astraclaude-fable-5-2grok-4.7muse-spark-1.3

Description from the npm listing.

  • llm
  • ai
  • openai
  • anthropic
  • claude
  • gpt
  • chatgpt
  • xai
  • grok
  • openrouter
  • local-llm
  • ai-sdk
  • chat-completion
  • text-generation
  • ai-client
  • llm-sdk
  • json-schema
  • structured-output
  • function-calling
  • streaming

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

chatoyant weekly downloads on npm, last 90 days: 935 weekly downloads as of Dec 5, 2026, +177% over 90 days.chatoyantWeekly downloads on npm · Last 90 days935downloads / week+177% over 90 days02004006008001K1.2KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
chatoyant weekly downloads on npm, last 90 days: 935 weekly downloads as of Dec 5, 2026, +177% over 90 days.

7/30/90-day growth

chatoyant weekly downloads growth on npm: +18.5% over 7 days, +48.2% over 30 days, +177% over 90 days.chatoyantWeekly downloads growth on npm935downloads / week now7-day growth+146 weekly downloads+18.5%30-day growth+304 weekly downloads+48.2%90-day growth+597 weekly downloads+177%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
chatoyant weekly downloads growth on npm: +18.5% over 7 days, +48.2% over 30 days, +177% over 90 days.

Ranking history

chatoyant npm ranking history: currently #2090 (by weekly downloads).chatoyantnpm ranking · by weekly downloads · Last 90 days#2090current rank#1600#1700#1800#1900#2000#2100Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 21, 2026 – Dec 6, 2026 · 16 observations · Updated Dec 5, 2026pluginstats.com
chatoyant npm ranking history: currently #2090 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 105, #10 (overall #2,090)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 12, #9 (overall #229)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (135)
Recent weekly downloads observations for chatoyant
Date (UTC)Weekly downloadsChange vs. previous
935+85
850-6
856+15
841+73
768-52
820+12
808+19
789+4
785+187
598+85
513-89
602-29
631-34
665—

Similar npm AI SDKs plugins

All 20 chatoyant alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/chatoyant. First seen Nov 21, 2026; last successful collection Dec 6, 2026. See the methodology.