Skip to main content
Glama
wayknow/clearjson

wayknow/clearjson

ClearJSON

npm version Chrome Web Store Edge Add-ons License

Браузерный просмотрщик JSON с приоритетом приватности. Ноль отслеживания. Полностью локально. Плюс MCP-сервер для ИИ-агентов.

ClearJSON — это расширение для Chrome, которое автоматически обнаруживает и форматирует JSON-ответы в браузере. Создано в ответ на скандал вокруг JSON Formatter — мы никогда не будем вставлять рекламу, отслеживать вас или продавать ваши данные.

MCP-сервер (Новинка!)

Для ИИ-агентов (Claude Code и т. д.): npx -y clearjson-mcp

{
  "mcpServers": {
    "clearjson": {
      "command": "npx",
      "args": ["-y", "clearjson-mcp"]
    }
  }
}

10 инструментов — форматирование, проверка, поиск, JSONPath-запросы, deep diff, конвертация (CSV/TSV/YAML/TypeScript), а также управление лицензией. Единственный MCP-сервер для JSON, безопасный для больших файлов. Доступен на npm и mcp.so. Полное обоснование — в AGENT_FIRST.md.

Related MCP server: mcp-json-tools

Возможности

Бесплатно (навсегда)

  • ✅ Автоматическое обнаружение и форматирование JSON/JSON-LD/JSON:API/NDJSON

  • ✅ Сворачиваемое дерево с направляющими отступов

  • ✅ Подсветка синтаксиса (строки, числа, логические значения, null)

  • ✅ 10 тем (Dark, Light, Sepia, Monokai, Dracula, Nord, One Dark, Solarized Light, GitHub, High Contrast)

  • ✅ Следование системной теме

  • ✅ Копирование значений по клику, JSONPath по правому клику

  • ✅ Автоопределяемые ссылки (кликабельные) и предпросмотр изображений (при наведении)

  • ✅ Номера строк в режиме raw

  • ✅ Панель статистики (количество узлов, глубина, размер файла, время разбора)

  • ✅ Горячие клавиши ([ свернуть, ] развернуть, D тема, R raw, Enter навигация по поиску)

  • ✅ Автономный просмотрщик (вставка JSON, перетаскивание, загрузка файла)

  • ✅ Список исключений по URL (regex-шаблоны)

  • ✅ 100% локальная обработка — ноль сетевых запросов

Pro ($2.99/месяц или $19.99/год)

  • 💰 Виртуальная прокрутка больших файлов (100MB+ без зависаний)

  • 💰 Расширенный поиск (regex, подсветка совпадений, навигация по результатам)

  • 💰 Автодекодирование JWT (header + payload инлайн, определение срока действия)

  • 💰 Экспорт в несколько форматов (CSV, TSV, YAML, TypeScript-типы с рекурсивным выводом)

  • 💰 30 премиальных тем (Catppuccin, Tokyo Night, Gruvbox, Nord, Dracula, Monokai…)

  • 💰 Пользовательские горячие клавиши (6 настраиваемых комбинаций)

Установка

Chrome Web Store

Установить ClearJSON Free

Edge Add-ons

Установить ClearJSON для Edge

Загрузить распакованное расширение (для разработки)

  1. Склонируйте этот репозиторий

  2. Перейдите на chrome://extensions/

  3. Включите «Режим разработчика»

  4. Нажмите «Загрузить распакованное расширение» и выберите папку проекта

Структура проекта

clearjson/
├── manifest.json              # Chrome Extension manifest (MV3)
├── server/                    # License server (Cloudflare Worker + D1)
│   ├── src/index.js           # API: verify/generate/webhook/admin
│   ├── schema.sql             # D1 database schema
│   └── wrangler.toml          # Worker config
├── clearjson-mcp/             # MCP server (npm: clearjson-mcp)
│   ├── package.json
│   ├── src/
│   │   ├── index.js           # MCP entry point (stdio transport)
│   │   ├── core/              # Core logic (parser, exporter, license)
│   │   └── tools/             # 7 JSON tools + 3 license tools
│   ├── tests/                 # 49 MCP unit tests
│   └── README.md
├── src/
│   ├── content/
│   │   ├── content.js         # Content script (JSON detection + viewer injection)
│   │   └── content.css        # Base styles + CSS variable theming
│   ├── viewer/
│   │   ├── viewer.html        # Standalone viewer page
│   │   └── viewer.js          # Viewer logic
│   ├── popup/
│   │   ├── popup.html         # Extension toolbar popup
│   │   ├── popup.js
│   │   └── popup.css
│   └── utils/
│       ├── parser.js          # JSON detection + parsing
│       ├── tokenizer.js       # Syntax highlighting tokenizer
│       ├── themes.js          # 30 theme definitions
│       ├── license.js         # Pro license system
│       ├── export.js          # CSV/TSV/YAML/TypeScript export
│       ├── stream-parser.js   # Web Worker streaming parser
│       ├── virtual-tree.js    # Virtual scrolling tree view
│       └── tree.js            # Standard tree view renderer
├── tests/                     # 136 unit tests (Node built-in runner)
│   ├── helpers/setup.js
│   ├── test-parser.js
│   ├── test-tokenizer.js
│   ├── test-jwt.js
│   ├── test-license.js
│   └── test-export.js
├── test-data/                 # Test data + automation scripts
│   ├── complex-api-response.json
│   ├── jwt-test.json
│   ├── users-array.json
│   ├── large-array.json       # 2.2 MB for Pro gate testing
│   ├── server.js              # Local test server (port 8765)
│   ├── run-checklist.js       # 130-item static analysis
│   ├── browser-test.js        # 21-item browser automation
│   └── TEST-CHECKLIST.md      # 43-item manual checklist
├── icons/
│   ├── icon.svg
│   ├── icon16.png
│   ├── icon48.png
│   └── icon128.png
└── README.md

Разработка

# For development, load the extension unpacked:
# 1. chrome://extensions/ → Developer mode ON
# 2. Load unpacked → select the project root
# 3. Edit files and click refresh on the extension card

# Run unit tests (zero dependencies, Node 18+):
npm test                    # 136 tests (Chrome extension)
cd clearjson-mcp && npm test   # 49 tests (MCP server)

# Run static analysis checklist (130 checks):
node test-data/run-checklist.js

# Run browser automation tests (requires puppeteer):
node test-data/browser-test.js

# Start local test server (Pro auto-enabled on localhost:8765):
node test-data/server.js

Текущий статус (v1.1.1 — доступен в CWS)

Все функции реализованы. Pro доступен через Creem ($2.99/месяц или $19.99/год). 136 модульных тестов проходят. MCP-сервер v1.1.0 опубликован в npm.

Полное состояние проекта, архитектурные решения и чек-лист релиза — в STATUS.md.

Конфиденциальность

ClearJSON обрабатывает всё локально. Мы обещаем:

  • ❌ Никакие данные никуда не отправляются

  • ❌ Никакой аналитики и телеметрии

  • ❌ Никакого отслеживания

  • ❌ Никакой рекламы

  • ❌ Никаких аккаунтов

  • ❌ Никаких сторонних скриптов

Наши разрешения минимальны:

  • storage — сохраняет выбранную вами тему

  • activeTab — форматирует JSON на текущей вкладке

  • Разрешения на хост — нужны только для определения типа содержимого JSON; на не-JSON страницах содержимое не читается.

Ссылки

Почему "ClearJSON"?

После того как оригинальный JSON Formatter (2 млн+ пользователей, 10 лет open source) был продан и начал вставлять рекламу и отслеживать пользователей, разработчикам понадобилась надёжная альтернатива. ClearJSON создан, чтобы стать такой альтернативой, — с устойчивой моделью Pro, которая уважает пользователей, а не эксплуатирует их.

Available Tools

10 tools
activate_licenseA

Activate a ClearJSON Pro license key (CLJ-XXXX-XXXX-XXXX). Unlocks query_json, diff_json, and convert_json tools. One license covers up to 3 devices. $29 lifetime at wayknow.tech/clearjson.html.

Inputs: key (required).

convert_jsonA

Convert JSON to another format: CSV, TSV, YAML, or TypeScript type definitions. CSV/TSV requires a top-level array of objects. YAML and TypeScript work on any structure.

Inputs: json (required), format (required), rootName.

deactivate_licenseA

Remove the Pro license from this machine. Frees up a device slot.

Inputs: no named parameters.

diff_jsonA

Deep compare two JSON strings and produce a structured diff report. Detects added keys, removed keys, changed values, and type changes. Returns a list of differences with their JSONPath locations and old/new values.

Inputs: json_a (required), json_b (required).

format_jsonA

Parse and pretty-print a JSON string with configurable indentation. Handles JSON of any size — the only MCP JSON tool that does not crash on 100MB+ files. Returns the formatted result along with stats (node count, depth, size, parse time).

Inputs: json (required), indent.

license_statusA

Check ClearJSON Pro license status — activation state, email, device count, offline/online.

Inputs: no named parameters.

minify_jsonA

Compress/minify a JSON string to its smallest valid form (no whitespace).

Inputs: json (required).

query_jsonA

Query a JSON structure using JSONPath syntax. Supports dot-notation ($.store.book[0].title), recursive descent ($..author), array slicing ($[0:5]), wildcards ($..*), and filter expressions ($..book[?(@.price < 10)]). Returns matched values with their paths.

Inputs: json (required), path (required).

search_jsonA

Search for keys, values, or paths inside a JSON structure. Returns matching nodes with their JSONPath locations. Supports key search (field name contains), value search (value string contains), and path search (JSONPath contains). Respects maxResults limit (default 50).

Inputs: json (required), query (required), mode, maxResults, +1 more.

validate_jsonA

Validate a JSON string. Returns whether it is valid, and if not, the exact error location (line and column). Also returns stats: node count, max depth, file size, parse time.

Inputs: json (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool serves a distinct purpose: license management, JSONPath querying, diffing, conversion, formatting, minification, validation, and search. No overlap; even query and search are clearly differentiated.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., activate_license, query_json, convert_json). The only slight deviation is license_status, but it still fits the pattern as a status check.

    Tool Count5/5

    10 tools is well-scoped for a JSON utility server. It covers core operations and license management without unnecessary bloat. Each tool earns its place.

    Completeness4/5

    The set covers validation, formatting, querying, searching, diffing, and conversion. Missing are JSON editing tools (add/remove/modify keys) and schema validation, but the stated purpose focuses on analysis and transformation.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Swiss-army-knife utility MCP server for AI agents. 18 tools for JSON validation/formatting, base64 encode/decode, hash generation, UUID generation, URL parsing, regex testing, markdown↔HTML conversion, text stats, slug generation, datetime conversion, cron parsing, text diffing, CSV↔JSON conversion, and JWT decoding. Zero API Key required
      18
      5
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides tools for JSON validation, diffing, and transformation operations such as flattening and renaming. It also enables data format conversion between JSON, CSV, and YAML to streamline data processing for AI agents.
      37 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Developer-focused MCP server for code analysis and local engineering workflows. Provides tools for JSON repair, encoding fixes, import organization, format conversion, diff inspection, and regex testing.
      23
      156 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for reading, querying, and filtering local JSON files with extended JSONPath syntax, supporting sorting, aggregations, and complex conditions.
      52 npm
      2
      MIT