Skip to content

montasim/JsonFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ JsonFlow - Fast JSON Formatter & Validator

Next.js Tailwind CSS TypeScript Monaco Editor

JsonFlow is a fast, privacy-friendly JSON formatter and validator that runs entirely in your browser. No data is sent to any server - all processing happens locally on your device. Perfect for developers who need to quickly format, validate, minify, or convert JSON data.

JsonFlow Preview

✨ Features

  • πŸ”€ JSON Compare: Compare two JSON documents and visualize differences (added, removed, modified, type changes)
  • πŸ“ Smart JSON Editor: Monaco Editor with syntax highlighting, line numbers, auto-indentation, and bracket matching
  • 🎨 Format & Beautify: Pretty-print JSON with configurable indentation (2/4/8 spaces or tabs)
  • πŸ—œοΈ Minify: Compress JSON to single-line format
  • βœ… Real-time Validation: Instant error detection with line number and error message
  • πŸ“₯ Copy & Download: One-click copy to clipboard or download as .json/.txt file
  • 🌳 Tree View: Expandable/collapsible tree view for easy JSON navigation
  • πŸ”„ Conversion Tools: Convert JSON to YAML, XML, CSV, or plain text
  • πŸ” Search & Navigate: Search within JSON, jump to specific lines
  • πŸŒ“ Dark Mode: Beautiful dark/light theme toggle
  • πŸ“± Fully Responsive: Works on desktop, tablet, and mobile
  • πŸ”’ Privacy First: Your JSON never leaves your browser

πŸ› οΈ Tech Stack

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • pnpm / npm / yarn

Installation

  1. Clone the repository:

    git clone https://github.com/montasim/JsonFlow.git
    cd JsonFlow
  2. Install dependencies:

    pnpm install
  3. Environment Setup: Copy the .env.example file to .env.local:

    cp .env.example .env.local

    Update the variables in .env.local if needed:

    NEXT_PUBLIC_APP_NAME=JsonFlow
    NEXT_PUBLIC_APP_URL=https://github.com/montasim/JsonFlow
    NEXT_PUBLIC_CONTACT_EMAIL=montasimmamun@gmail.com
  4. Run the development server:

    pnpm dev
  5. Open the browser: Navigate to http://localhost:3000

πŸ“‚ Project Structure

β”œβ”€β”€ app/                    # Next.js App Router (Pages & Layouts)
β”‚   β”œβ”€β”€ contact/            # Contact page
β”‚   β”œβ”€β”€ privacy/            # Privacy policy
β”‚   β”œβ”€β”€ terms/              # Terms of service
β”‚   β”œβ”€β”€ layout.tsx          # Root layout
β”‚   β”œβ”€β”€ page.tsx            # Main JSON formatter page
β”‚   └── globals.css         # Global styles
β”œβ”€β”€ components/             # Reusable UI components
β”‚   β”œβ”€β”€ ui/                 # shadcn/ui components
β”‚   β”œβ”€β”€ json-editor.tsx     # Monaco Editor wrapper
β”‚   β”œβ”€β”€ json-tree-view.tsx  # Expandable tree view
β”‚   β”œβ”€β”€ json-toolbar.tsx    # Action buttons toolbar
β”‚   β”œβ”€β”€ json-settings.tsx   # Indentation settings
β”‚   β”œβ”€β”€ json-converter.tsx  # Main component
β”‚   └── layout.tsx          # App layout components
β”œβ”€β”€ lib/                    # Logic, helpers, and utilities
β”‚   β”œβ”€β”€ hooks.ts            # Custom React hooks
β”‚   β”œβ”€β”€ json-utils.ts       # JSON format, minify, validate
β”‚   β”œβ”€β”€ json-conversions.ts # JSON to YAML, XML, CSV converters
β”‚   β”œβ”€β”€ constants.ts        # Default settings
β”‚   └── utils.ts            # Utility functions
└── public/                 # Static assets

⌨️ Keyboard Shortcuts

Shortcut Action
Ctrl + Enter Format JSON
Ctrl + Shift + M Minify JSON
Ctrl + C Copy to clipboard
Ctrl + S Download JSON

πŸ”’ Privacy & Security

  • No server-side processing: All JSON formatting happens in your browser
  • No data storage: Your JSON is never stored or logged
  • No tracking: No analytics or tracking scripts
  • Open source: All code is transparent and auditable

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with ❀️ by r3tr0

About

πŸ“„ JsonFlow - Fast, privacy-friendly JSON formatter and validator that runs entirely in your browser. Format, beautify, minify, validate, and convert JSON to YAML, XML, CSV, or plain text. Features real-time validation, tree view, drag & drop, and keyboard shortcuts. Your data never leaves your device.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors