🖥️

Browser DOM Component Renderer Runtime

Declarative DOM Mounting Runtime

Render Business JSON into Live DOM Powered by json-renderers-build + json-to-tag

The real DOM creation happens in @keshavsoft/json-to-tag. Before that, component blueprints are prepared in json-renderers-build, and json-renderers orchestrates the runtime flow and mounts the final HTML into your browser container.

Conceptual Mental Model

Simple House-Building Story

📖 Full simpleDoc.html →

json-renderers is the browser runtime layer in the KeshavSoft declarative UI ecosystem. It accepts render configuration, obtains a JSON description of the requested component, asks @keshavsoft/json-to-tag to create DOM nodes, and mounts the result in the requested browser container.

It is an orchestration layer rather than the specification compiler itself. The component structure is prepared upstream by json-renderers-build; actual element construction is delegated to @keshavsoft/json-to-tag.

🏗️ Step 1 • Blueprint

json-renderers-build

The Architect

Prepares a clean JSON blueprint specifying tags, classes, and attributes without touching real browser DOM elements.

Returns: specAsJsonToDom AST
🔨 Step 2 • Elements

@keshavsoft/json-to-tag

The Construction Worker

Reads the JSON blueprint and creates real native browser HTML elements using document.createElement().

Returns: native DOM elements
📋 Step 3 • Mount

json-renderers

The Site Manager

Puts those constructed elements in the correct target position on the webpage (targetHtmlId) and manages placement.

container.append(content)
Golden Rule to Remember

Build prepares the blueprint → json-to-tag creates the DOM → json-renderers mounts it on the page.

Explore Documentation

Explore the 3 Component Suites

📦 Open Samples Hub →
📊 <table>

Table Renderer

Multi-column tabular data rendering from JSON row objects with hover states and column configurations.

▣ <select>

Select Renderer

Native dropdown components populated from string or object arrays with live change tracking.

🔍 <datalist>

Datalist Renderer

Native browser search autocomplete popovers linked to input controls without heavy plugins.

📦 Installation & Distribution

npm install json-renderers
import render from "https://cdn.jsdelivr.net/gh/keshavsoft/json-renderers@main/docs/dist/v14/min.js";