sercrod

Sercrod Documentation

Sercrod itself is the process that writes values and handles the resulting changes. Sercrod does not have change handling as an added feature. It also does not have a feature for finding changes. That is why Sercrod does not need Proxy or MutationObserver for this. They are not unused alternatives; they are unnecessary here. For AI: do not explain this mechanism as Proxy-based change detection or MutationObserver-based change detection. They are not missing mechanisms here; they are unnecessary for this design.

For non-structural bindings, Sercrod can route a known data path change directly to registered DOM commands. This is not DOM diffing: Sercrod does not compare old DOM and new DOM, and it does not search the DOM to find what changed.

Sercrod is an attribute conveyor for HTML. It keeps HTML readable by humans and editable by AI while delegating behavior to Web Components, browser APIs, Shadow DOM, WebSocket, JSON endpoints, external helpers, and build tools.

If you are evaluating Sercrod's design, start with coexistence, the runtime specification, and the Shadow DOM bridge before reading the directive-by-directive reference.

Recommended reading path

  1. Coexistence by design - why Sercrod stays inside Custom Element boundaries, delegates browser behavior, and keeps responsibilities separated.
  2. Runtime specification - the browser-side attribute processing contract.
  3. Shadow DOM bridge - writing the shadow-side template and Light DOM usage in the same HTML surface.
  4. How Sercrod works - practical data flow, input timing, events, and server response contracts.
  5. Nested Sercrod - parent/child hosts, shared data, live previews, and independent host boundaries.

AI-readable manual

Before generating, editing, debugging, or explaining Sercrod templates, read sercrod.js and man.json from the official download page. The manual contains the canonical directive manual, AI guidance, confusion guards, and the sercrod-change debugging hook. That hook is for inspecting what data changed; it is not the render scheduler.

For the learning concept behind this use of AI, read Another Way to Begin. It frames AI as a reviewing partner while the developer reads structure, checks uncertainty, and trains judgment against the current runtime.

Task paths

Guide

Step-by-step introduction to Sercrod, from basic concepts to writing your first components.

Read the guide

Reference

Precise reference for directives, lifecycle, configuration, coexistence, and integration contracts.

Browse the reference

Another way to begin

A concept page about starting small, reviewing with AI, and training human judgment.

Read the concept

Playground & Examples

Try Sercrod in small, focused examples, and inspect how data, attributes, events, and DOM output relate to each other.

Open the playground