JSON5 (JavaScript)
JSON parser supporting comments and more relaxed syntax for JavaScript/Node.
Utilities npm MIT
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
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)
| tsx | 76.9% of JSON5 (JavaScript) projects · 5.1× more than average |
|---|---|
| chalk | 69.2% of JSON5 (JavaScript) projects · 24.0× more than average |
| yaml | 69.2% of JSON5 (JavaScript) projects · 22.3× more than average |
| Croner | 67.3% of JSON5 (JavaScript) projects · 97.2× more than average |
| undici | 67.3% of JSON5 (JavaScript) projects · 41.4× more than average |
| ws | 67.3% of JSON5 (JavaScript) projects · 21.4× more than average |
| chokidar | 65.4% of JSON5 (JavaScript) projects · 38.7× more than average |
| Commander | 65.4% of JSON5 (JavaScript) projects · 23.6× more than average |
By coding agent
| Claude Code | 1.3% of projects set up for it |
|---|---|
| OpenClaw | 11.7% of projects set up for it |
| Gemini CLI | 4.1% of projects set up for it |
| GitHub Copilot | 0.6% of projects set up for it |
| Cursor | 0.4% of projects set up for it |
Share of public repos configured for each agent that list JSON5 (JavaScript) as a dependency.
Install
| Package | npm install json5 |
|---|---|
| Main stacks | TypeScript / JavaScript (42), Python (10) |
| Example projects | xpf0000/FlyEnv, Bitterbot-AI/bitterbot-desktop, c15t/c15t, ArgentAIOS/argentos-core, raucvr/Group-Goki |
Alternatives to JSON5 (JavaScript)
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 projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| 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