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
- Coexistence by design - why Sercrod stays inside Custom Element boundaries, delegates browser behavior, and keeps responsibilities separated.
- Runtime specification - the browser-side attribute processing contract.
- Shadow DOM bridge - writing the shadow-side template and Light DOM usage in the same HTML surface.
- How Sercrod works - practical data flow, input timing, events, and server response contracts.
- 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
- Download the runtime - get the official runtime source and manual files from sercrod.com.
- Display data - start with host data, text output, and interpolation.
- Handle clicks and actions - connect events to ordinary JavaScript expressions.
- Work with forms - write form values into data paths and control update timing.
- Understand nested hosts - use the parent/child model before generating complex Sercrod templates with AI.
-
Coordinate hosts
- read or replace another host's data, call
update(), and use cross-host patterns. -
Refresh a parent or root host
- use
*updateafter changing parent data from a nested host. - Connect external environments - use adapters for file storage, Playwright SSG, and platform bridges.
Guide
Step-by-step introduction to Sercrod, from basic concepts to writing your first components.
Reference
Precise reference for directives, lifecycle, configuration, coexistence, and integration contracts.
Another way to begin
A concept page about starting small, reviewing with AI, and training human judgment.
Playground & Examples
Try Sercrod in small, focused examples, and inspect how data, attributes, events, and DOM output relate to each other.