{"id":26173,"library":"redomx","title":"RedomX","description":"RedomX (v0.2.0) is a transpiler that converts HTML-like syntax into RE:DOM code, enabling a JSX-like experience for building DOM applications with RE:DOM. It replaces HTML markup with Redom function calls at build time. Released in early development, it lacks stability guarantees and has no recent updates. Unlike JSX, it targets RE:DOM specifically and requires a build step.","status":"active","version":"0.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/redomxjs/redomx","tags":["javascript","Transpiler","Redom","RedomX","HTML","JSX"],"install":[{"cmd":"npm install redomx","lang":"bash","label":"npm"},{"cmd":"yarn add redomx","lang":"bash","label":"yarn"},{"cmd":"pnpm add redomx","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Main export for transforming redomx code.","symbol":"transform","correct":"import { transform } from 'redomx'"},{"note":"Package is ESM-only; require will fail.","wrong":"const redomx = require('redomx')","symbol":"default import","correct":"import redomx from 'redomx'"},{"note":"Synchronous transform function.","symbol":"transformSync","correct":"import { transformSync } from 'redomx'"}],"quickstart":{"code":"import { transform } from 'redomx';\nconst source = '<div>Hello, World!</div>';\nconst result = transform(source, { filename: 'example.html' });\nconsole.log(result);","lang":"javascript","description":"Uses RedomX to transpile HTML-like string into Redom code."},"warnings":[{"fix":"Pin exact version and test upgrades.","message":"API may change without notice in v0.x","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Use import syntax or a bundler like Rollup/Webpack.","message":"ESM-only package; requires native ESM or bundler support.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure input is valid RedomX template syntax.","message":"Only supports RE:DOM syntax; not generic JSX.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use import syntax instead of require(): import redomx from 'redomx'","cause":"Using require() on an ESM-only package.","error":"ERR_REQUIRE_ESM"},{"fix":"Install redomx and use named import: import { transform } from 'redomx'","cause":"Incorrect import or package not installed.","error":"TypeError: transform is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}