Registry / web-framework / hypert

hypert

JSON →
library0.0.1jsnpmunverified

Hypert is a hypertext transpiler in early alpha stage (v0.0.1), designed to parse and render HTML-like structures with optional React integration. Currently exploratory with no stable release cadence, it provides parse and render functions for transforming source strings into nodes and HTML output. Differentiates by offering a lightweight, library-agnostic core with a separate React module for component generation, but lacks maturity compared to established alternatives like htm or hyperHTML.

npm install hypert
INSTALL
IMPORT
SIG · HYPERT
H
hypert
web-frameworkjavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
import { parse } from 'hypert'
const parse = require('hypert').parse
ESM-only package; CommonJS require will fail in Node.js unless using esm.
render
import { render } from 'hypert'
import render from 'hypert'
Named export, not default export.
createReactComponent
import { createReactComponent } from 'hypert/react'
import { createReactComponent } from 'hypert'
Available only from the 'hypert/react' subpath; incorrect import will resolve to undefined.

Parses a simple HTML string into nodes and renders them back to HTML string.

import { parse, render } from 'hypert'; const source = '<div class="greeting">Hello, World!</div>'; const nodes = parse(source); const html = render(nodes); console.log(html); // '<div class="greeting">Hello, World!</div>'
hypert --version
Debug
Known issues
gotchaPackage is in early alpha (v0.0.1); API is unstable and may change without notice.
fix
Lock dependency to exact version and expect breaking changes.
affects: 0.0.1
gotchaReact component creation requires explicit import from 'hypert/react'; the main package does not re-export it.
fix
Use import { createReactComponent } from 'hypert/react'.
affects: >=0.0.1
Errors
Common errors & fixes
TypeError: hypert__WEBPACK_IMPORTED_MODULE_0__.parse is not a function
Incorrect import path or bundler issue with ESM.
fix
Ensure using import { parse } from 'hypert' and that the bundler supports ESM.
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
reactoptionalOptional peer dependency for React component creation via 'hypert/react' subpath.
Agent activity
20 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
hypert — npm install hypert · libregistry