qmetrics.net

JSON5

Human-friendly JSON config format and JavaScript parser

Frameworks & PlatformsDesktop/CLI app
JSON5 screenshot

JSON5 extends JSON with comments, unquoted keys, trailing commas, and relaxed strings for hand-edited config files. The npm package provides parse and stringify compatible with the JSON API.

Overview

JSON5 is a data interchange format that keeps valid JSON as valid JSON5 while adding ECMAScript 5.1-style conveniences for humans writing configuration by hand. It is explicitly not aimed at machine-to-machine protocols where plain JSON remains appropriate.

Syntax extensions include unquoted object keys, single-quoted and multiline strings, hexadecimal numbers, leading or trailing decimal points, explicit plus signs, NaN and infinities, trailing commas in objects and arrays, comments, and additional whitespace characters. Valid JSON5 files are also valid ES5 text, and the format has a published specification separate from this reference JavaScript implementation.

The JavaScript library exposes JSON5.parse and JSON5.stringify with options such as bigint parsing, customizable quoting, and spacing that preserves trailing commas when indenting. Node users can register a loader to require JSON5 files directly, and a global CLI converts JSON5 documents to strict JSON or validates syntax without emitting output.

Adopters mentioned in project materials include Chromium, Next.js, Babel, Retool, and WebStorm, and Apple platforms are said to support the format natively on macOS and iOS. TypeScript typings ship with the package, and browser UMD builds are documented for non-Node use.

Key features

  • Comments in config files
  • Unquoted and single-quoted keys
  • Trailing commas in objects and arrays
  • Hexadecimal and special numeric literals
  • JSON-compatible parse and stringify API
  • Node require hook for .json5 files
  • CLI convert and validate commands
  • Bundled TypeScript type declarations

Use cases

  • Hand-maintained application config files
  • Migrating human-edited JSON configs
  • Tooling that accepts relaxed JSON syntax
  • Validating JSON5 before strict JSON export
  • Browser or Node JSON5 parsing

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT