8 个仓库
Tools for minifying, beautifying, and sanitizing HTML output to improve deliverability and performance.
Distinct from HTML Sanitization Utilities: Candidates focus on security sanitization for labels/editors, not build-time optimization of the final HTML output.
Explore 8 awesome GitHub repositories matching web development · HTML Output Optimizers. Refine with filters or upvote what's useful.
MJML is a responsive email framework and HTML email compiler that translates simplified semantic markup into complex HTML. It functions as an email template engine designed to produce layouts that render consistently across a wide range of email clients. The system provides a markup validation tool to check structural integrity and syntax before compilation. It also includes a version migration utility to upgrade older template files to newer language versions while preserving content and layout structure. The toolset covers several capability areas, including command-line markup compilation
Optimizes resulting HTML through minification and beautification while managing CSS sanitization for template variables.
This project is a Webpack HTML generator and template engine that creates HTML files and automatically injects compiled script and style bundles. It functions as an asset injection tool and build process minifier to automate the production of web pages. The tool differentiates itself through a customizable template system that supports dynamic variable injection, programmatic content generation, and the ability to generate multiple distinct HTML entry points for multi-page applications. It also provides a hook-based lifecycle pipeline, allowing for the modification of assets and tags before t
Minifies HTML output by removing redundant attributes, whitespace, and comments to improve performance.
pdf2htmlEX is a tool that converts PDF documents into HTML while preserving the original text, fonts, and layout. It uses CSS positioning and font embedding to replicate the PDF's appearance in a browser, producing output that works without JavaScript. The tool can generate a single self-contained HTML file with all resources embedded, or split the document into separate HTML files per page for individual loading and navigation. The converter offers extensive control over the output, including the ability to embed fonts directly into the HTML using base64-encoded Data URIs, or keep them as se
Merges and optimizes text elements to improve HTML output quality and size.
art-template is a JavaScript templating engine and HTML template compiler that transforms custom syntax and script statements into optimized HTML output. It functions as a precompiled template engine that converts template source into standalone JavaScript functions to render dynamic content from data. The engine features a template inheritance framework that organizes layouts through nesting, blocks, and inclusions to create reusable components across multiple files. It incorporates automatic output sanitization and encoding to prevent cross-site scripting attacks. The system includes capab
Provides capabilities to compress HTML, CSS, and JavaScript within the generated output to reduce payload size.
This project is a build-time tool that converts single-page application routes into static HTML files. It functions as a Webpack build plugin that uses a headless browser to execute JavaScript and capture the final DOM state as static markup to improve search engine optimization and initial page load speeds. The system provides precise control over the capture process through custom render triggers, allowing HTML generation to be delayed until a specific DOM element appears, a custom event fires, or a timer expires. It also supports global state injection, which embeds JSON-serializable data
Optimizes the final HTML output through minification to reduce file size and enhance production deliverability.
react-snap 是一个静态站点生成器和单页应用预渲染器。它使用无头浏览器将动态客户端组件转换为静态 HTML 文件,以提高搜索引擎优化(SEO)和初始加载速度。 该项目具有一个无头浏览器爬虫,可以通过跟踪内部链接自动发现应用路由。它包含一个水合(hydration)优化器,可以在渲染过程中捕获应用状态并缓存网络响应,直接将其嵌入到 HTML 中,从而在不重新获取数据的情况下同步客户端应用。 该工具提供了一套性能优化方案,包括关键 CSS 内联、异步脚本加载以及资源清单和预加载头的生成。它还支持跨并发浏览器标签页的并行渲染执行,并可以阻止第三方请求,以防止外部脚本在构建过程中触发。
Minifies final HTML output and optimizes styles to reduce page weight and improve initial load speeds.
html-minifier 是一个 Node.js 实用程序,旨在通过优化标记、简化文档结构以及压缩嵌入式 CSS 和 JavaScript 来减小 HTML 文件大小。它作为一个 HTML 标记压缩器和 Web 文档优化器,移除空格、注释和冗余属性。 该工具的特色在于充当嵌入式资产优化器,通过专门的压缩引擎处理样式和脚本标签内的内容。它通过移除可选标签并将长文档类型(Doctype)替换为短版本来简化最终输出。 该项目涵盖了一系列优化能力,包括用于去除不必要引号和空值的属性优化,以及用于控制行长度的输出结构格式化。它还包括用于保护特定标签或内容块免受压缩过程影响的标记保留机制。
Optimizes HTML output by stripping unnecessary quotes and removing empty attribute values.
ContentTools 是一个 JavaScript 框架和工具套件,用于构建可视化 WYSIWYG 编辑器。它提供了一个 DOM 操作库,用于将 HTML 字符串解析并转换为结构化的可编辑区域,同时配有一个管理元素行为和状态转换的可视化文档编排器。 该框架包含一个专门的浏览器选择管理器,以确保在不同 Web 浏览器中保持一致的光标定位和文本范围高亮。它还具有一个 HTML 内容验证器,用于清理输出并将第三方媒体链接转换为有效的嵌入格式。 该系统涵盖广泛的功能领域,包括用于可拖拽和可调整大小元素的交互式 DOM 操作、富文本格式设置以及用于裁剪和旋转的图片处理工作流。它还提供通过 DOM 快照跟踪编辑历史的工具,以及用于管理工具箱和分层面包屑导航的 UI 组件系统。 该项目通过元素属性限制来强制执行安全性,以防止对 HTML 标签的未经授权修改。
Generates optimized HTML output by removing internal scaffolding classes and browser-specific formatting.