{"library":"htm","type":"library","category":null,"description":"HTM (Hyperscript Tagged Markup) is a small JSX-like syntax for virtual DOM using standard JavaScript tagged templates, eliminating the need for a transpiler. Current stable version is 3.1.1, released with TypeScript module support improvements and package exports for Node 12+. It is actively maintained by the Preact team with a regular release cadence. HTM works in all modern browsers and is <600 bytes min+gzip. Key differentiators: no build step required, optional HTML-style quotes, component end-tags, HTML comments, and static subtree caching in v3. It provides off-the-shelf bindings for React and Preact, and can be customized with any hyperscript function. The package ships TypeScript type definitions, supports ESM and CJS, and can be compiled away with babel-plugin-htm for zero runtime cost in production.","language":"javascript","status":"active","version":"3.1.1","tags":["javascript","Hyperscript Tagged Markup","tagged template","template literals","html","htm","jsx","virtual dom","hyperscript","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install htm","imports":["import htm from 'htm'","import { html } from 'htm/preact'","import { html } from 'htm/react'","import { html, render } from 'htm/preact/standalone'","import htm from 'htm/mini'"]},{"cmd":"yarn add htm","imports":[]},{"cmd":"pnpm add htm","imports":[]}],"homepage":null,"github":"https://github.com/developit/htm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/htm","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}