Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

JSON5 (JavaScript)

JSON parser supporting comments and more relaxed syntax for JavaScript/Node.

Utilities npm MIT

Used in agent projects
52
1.1% of 4,818 JS/TS repos built with AI coding agents
Gid Score
66 /100
#399 of 3,794 tools, #49 in utilities · ranking
Rank in utilities
#26 of 361
by use in those projects
Downloads
145M
npm, last 7 days, json5
GitHub stars
7,176
286 forks · last push Oct 19, 2026

How JSON5 (JavaScript) is used

JSON5 (JavaScript) is a dependency in 52 of the 6,208 public GitHub projects set up for AI coding agents that we scanned (1.1% of the 4,818 JavaScript/TypeScript ones), #26 of 361 in utilities. The most used alternative in our scan is yaml (193 projects). Projects that use it most often also use tsx (76.9%), chalk (69.2%), yaml (69.2%). It is more common in projects set up for OpenClaw (11.7%) than for Cursor (0.4%).

JSON5 (JavaScript) popularity over time

Top tools by Gid Score

JSON5 (JavaScript): downloads per weeknpm, json5 144,677,795
JSON5 (JavaScript): GitHub starsjson5/json5 7,176

Gid Score 66: downloads 100, use in agent projects 47, GitHub stars 44, downloads trend 57 (each 0-100). How it is calculated.

Often used with JSON5 (JavaScript)

tsx76.9% of JSON5 (JavaScript) projects · 5.1× more than average
chalk69.2% of JSON5 (JavaScript) projects · 24.0× more than average
yaml69.2% of JSON5 (JavaScript) projects · 22.3× more than average
Croner67.3% of JSON5 (JavaScript) projects · 97.2× more than average
undici67.3% of JSON5 (JavaScript) projects · 41.4× more than average
ws67.3% of JSON5 (JavaScript) projects · 21.4× more than average
chokidar65.4% of JSON5 (JavaScript) projects · 38.7× more than average
Commander65.4% of JSON5 (JavaScript) projects · 23.6× more than average

By coding agent

Claude Code1.3% of projects set up for it
OpenClaw11.7% of projects set up for it
Gemini CLI4.1% of projects set up for it
GitHub Copilot0.6% of projects set up for it
Cursor0.4% of projects set up for it

Share of public repos configured for each agent that list JSON5 (JavaScript) as a dependency.

Install

Packagenpm install json5
Main stacksTypeScript / JavaScript (42), Python (10)
Example projectsxpf0000/FlyEnv, Bitterbot-AI/bitterbot-desktop, c15t/c15t, ArgentAIOS/argentos-core, raucvr/Group-Goki

Alternatives to JSON5 (JavaScript)

All utilities

Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside JSON5 (JavaScript) are not listed here; they are in "Often used with".

Tool Gid Score Used in agent projectsDownloads / wk GitHub starsLicense
yaml npm
JavaScript YAML parser and stringifier with full spec compliance.
67 193 (4.0%) 133M 1,697 ISC
js-yaml npm
Fast YAML parser and serializer for JavaScript with spec compliance.
71 134 (2.8%) 176M 6,636 MIT

More in Utilities: clsx date-fns PyYAML uuid glob Lodash tqdm python-dateutil

Is JSON5 (JavaScript) right for your project? Ask AgentGid →