Skip to content

JiyaMehta-6/markupStudio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarkupStudio - HTML Minifier & Beautifier

A structural HTML processing tool designed for embedded systems, constrained web environments, and development workflows.

This project provides:

  • HTML minification for byte-size reduction
  • HTML beautification for developer readability
  • A removal report system that reveals what was eliminated during optimization
  • A simple UI workflow for analyzing HTML transformations

The Problem

HTML Is Written for Humans, Not Machines

HTML written during development prioritizes: readability, indentation, spacing, structural clarity

While this helps developers, it introduces extra characters that serve no functional purpose for browsers.

Every unnecessary character increases the total byte size of the page.


Embedded Systems Have Tight Size Constraints

Embedded environments frequently have strict limitations:

firmware size limits, constrained storage, low-bandwidth communication, memory restrictions

Large HTML files increase:

transfer time, memory usage, parsing overhead

Reducing unnecessary characters directly improves efficiency and reliability.


Development Requires the Opposite

During development, the opposite problem occurs.

Minified HTML becomes extremely difficult to read, debug, or maintain.

Developers require:

indentation, consistent formatting, structured layout

Without a beautifier, working with compressed HTML becomes impractical.


Result:
Developers need a tool that can both optimize HTML for deployment and restore readability for development, while also revealing exactly what changes occurred.


The Solution

image This project provides a **dual-mode HTML processing system** designed to address these problems.

HTML Minifier

The minifier focuses on byte reduction by removing unnecessary characters and elements that do not affect browser rendering.

Primary objectives:

  • reduce HTML byte size
  • eliminate redundant structures
  • maintain valid browser parsing behavior
  • Example :Screenshot 2026-03-06 195319Screenshot 2026-03-06 195256 Screenshot 2026-03-06 195548Screenshot 2026-03-06 195637

HTML Beautifier

The beautifier reformats compressed HTML into a clean, readable structure.

Its role is to:

  • restore indentation
  • organize tags
  • improve maintainability
  • Example: Screenshot 2026-03-06 201257Screenshot 2026-03-06 201323

This mode is intended strictly for development readability.


Workflow

  1. Insert HTML into the editor
  2. Select Minify to optimize the document
  3. Inspect byte size reduction
  4. Open Show Removed to view removed structures
  5. Use Beautify when readable formatting is required

Project Structure

project/
│
├── main.py
├── minifier.py
├── formatter.py
│
└── README.md

Intended Use Cases

This tool is particularly useful in:

  • embedded web interfaces
  • firmware web dashboards
  • lightweight web deployments
  • HTML analysis workflows
  • development pipelines requiring readable formatting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages