Diffhtml
diffHTML is a web framework that helps you build applications and other interactive content
Install / Use
/learn @tbranyen/DiffhtmlREADME
<±/> diffHTML
Latest version: 1.0.0-beta.30
diffHTML is an extremely lightweight and optimized HTML parser and Virtual DOM specifically designed for modern web UIs. These interfaces can be applications, games, data visualizations, or anything that you may want to render in a web browser or Node.
The core package works like a library, where you can import just one function and have a fully reactive VDOM rendering engine. When you opt into more functions and use the companion packages you get a framework for structuring your ideas.
Features
- Parses real HTML and supports JSX & Tagged Templates.
- Memory efficient VDOM rendering that utilizes object pooling.
- Powerful middleware extends diffHTML with additional features.
- React-like Components which can be rendered as Web Components.
- A lite build which has a smaller size, meant for optimizing production code.
Works great with legacy and modern browsers, Node.js, Deno, and with whatever your favorite JavaScript runtime is.
Packages
The following list of modules are nested in the /packages folder. They form
the foundation of the diffHTML ecosystem.
-
npm install diffhtmlThe core public API for creating user interfaces. Contains a standard build which includes everything, and a smaller optimized build that excludes the HTML parser and performance metrics, which is useful for those who want to minimize the filesize.
-
npm install diffhtml-componentsProvides constructors and middleware for rendering stateful/stateless components seamlessly. The API will be very familiar to anyone who has used React as the class methods and structure are the same.
-
npm install diffhtml-rust-parserComing soon
An alternative parser written in Rust and compiled to WASM, providing a wrapper around the tl HTML parsing library which is then converted into a compatible diffHTML VDOM structure.
-
babel-plugin-transform-diffhtml
npm install babel-plugin-transform-diffhtmlTransforms your input into function calls. This eliminates the need for runtime parsing. This is similar to how React compiles down JSX.
-
npm install diffhtml-middleware-linterThis module will run various linting rules on your input to ensure you are writing valid/well-formed HTML. This was inspired by and uses rules from the HTMLHint project.
-
npm install diffhtml-middleware-loggerLogs out diffHTML state from the start and end of every render transaction.
-
diffhtml-middleware-synthetic-events
npm install diffhtml-middleware-synthetic-eventsChanges the event binding from inline event handlers like
onclick = fnto useaddEventListener. Events are attached to thebodyelement and coordinated to children through delegation. -
diffhtml-middleware-service-worker
npm install diffhtml-middleware-service-workerHelps with the creation of a service worker for PWAs, available as a convenience to make development more friendlier.
-
The source for the www.diffhtml.org website.
Related Skills
qqbot-channel
343.3kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
99.7k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
343.3kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
project-overview
FlightPHP Skeleton Project Instructions This document provides guidelines and best practices for structuring and developing a project using the FlightPHP framework. Instructions for AI Coding A
