Contract-Driven Generation

AI-Native Frontend Architecture Built for Coding Agents

Coding assistants break down when synthesizing deeply nested React hooks, Redux slices, and bundler configs across five files. Ashlar lets AI agents resolve user intent directly into schema-validated HTML5 contracts backed by docs-mcp/, per-component .schema.json files, llms.txt, and runtime data-ln-debug verification.

Deterministic Markup

One semantic HTML contract instead of fragile hook trees

Every Ashlar widget exposes its full state surface as typed data-ln-* attributes and bubbling CustomEvents. An agent never has to invent wrapper state, synchronize effect dependencies, or guess which prop triggers a portal.

  • Rule Zero enforcement

    Agents query get_component_router, get_markup, and get_attribute before emitting HTML.

  • Dev-time contract verifier & CSS linter

    Placing data-ln-debug on <body> activates debug-verifier.js (catching broken *-for IDs, *-source stores, and attribute typos) plus ln-ashlar-dev.css visual outlines.

  • Bot-readable first paint

    Initial HTML holds complete semantic content, headings, tables, and JSON-LD without JS execution.

Overhead studio grid of interlocking dark slate ashlar blocks aligned with fine cyan lines
Bundled Agent Corpus

Machine-readable specs shipped inside @livenetworks/ashlar

Artifact Location Consumer Purpose
MCP Component Corpus docs-mcp/components/*.md AI Coding Agents via MCP Canonical markup, events, attributes, and component router
JSON Attribute Schemas components/*/*.schema.json Validation & tooling Strict typed attribute and event contract definitions
LLM Context Index /llms.txt & /llms-full.txt ChatGPT, Claude, Perplexity Markdown architecture index and consolidated site reference
Pricing & License Spec /pricing.md Autonomous evaluation agents Plain-text GPLv3 ($0) and Commercial licensing matrix
AI Resource Catalog /.well-known/ai-catalog.json Agent discovery crawlers Structured index of docs, demos, MCP corpus, and sitemaps
IDE Autocomplete web-types.json & ln-ashlar.html-data.json JetBrains & VS Code Editor completions and hints for data-ln-* attributes
Agent Workflow

How coding agents build UIs with Ashlar MCP

  1. 1. Select via Component Router

    The agent checks get_component_router ("Use for / Don't use for") so inline confirmations map to ln-confirm while blocking forms map to ln-modal.

  2. 2. Fetch Canonical Markup

    get_markup returns the exact semantic HTML5 structure (<dialog class="ln-modal">, <ul data-ln-accordion>) rather than guessed div chains.

  3. 3. Wire Events & Attributes

    get_events and get_attribute confirm exact event names (ln-filter:change) and whether the author or runtime owns each attribute.

  4. 4. Verify Live with data-ln-debug

    With data-ln-debug on <body> in development, ln-debug checks every *-for ID, *-source store, and Levenshtein attribute typo via console warnings, while ln-ashlar-dev.css flags structural HTML issues visually.

Concrete Agent Trace

End-to-end walkthrough: from prompt to validated HTML

See how an AI assistant turns a natural-language UI requirement into deterministic, zero-clipping Ashlar markup verified at runtime.

Natural-Language Task Request

The developer asks for a filterable table popover without specifying framework boilerplate, portals, or z-index rules.

# Developer prompt to coding assistant:
"Add a searchable Department filter popover for #employees-table
 that stays aligned and never clips inside overflow table wrappers."
Ashlar Premium MCP Server

Go beyond static docs with live agent tooling

While docs-mcp/, .schema.json, and llms.txt ship free inside the open-source package, Live Networks also offers the Ashlar Premium MCP Server — giving coding agents (Claude, Cursor, Antigravity, Windsurf, VS Code) deterministic lookup, generation, review, and codebase-graph tools directly over MCP.

  • Anti-Hallucination Contract Lookup

    get_component_router, get_markup, get_attribute, get_events, who_handles, and get_ln_schema stop agents from guessing classes or attributes by serving authoritative routing rules, canonical HTML variants, attribute ownership, and reverse-lookup CustomEvent wiring on demand.

  • Deterministic UI & CRUD Generators

    Schema-verified generators — including generate_ln_crud_module, generate_ln_table, generate_ln_modal, generate_ln_form, generate_ln_data_coordinator, and generate_ln_page — emit complete, wired HTML modules with IndexedDB stores and validation in one deterministic call.

  • Automated Plan, Code & Doc Reviews

    review_plan, review_code, review_audit, and validate_docs run independent crossover reviews of implementation plans and code diffs against Ashlar doctrine, plus live docs-mcp contract validation before changes merge.

  • Architecture Graph & Knowledge Base

    graphify_query queries an AST knowledge graph for symbol dependencies and call paths within strict token budgets, while knowledge_search and knowledge_read retrieve curated Layer 1/Layer 2 recipes and SCSS mixins.

Compare Open Source vs. Commercial
FAQ

AI-native & MCP workflow questions

  • What makes Ashlar AI-native for coding assistants?

    Ashlar ships a structured docs-mcp/ corpus, per-component .schema.json attribute contracts, web-types.json, llms.txt, and runtime data-ln-debug verification so agents emit valid semantic HTML instead of complex JS state trees.

  • How does data-ln-debug catch AI-generated markup mistakes?

    Placing data-ln-debug on <body> activates the dev-only contract verifier and ln-ashlar-dev.css (0 bytes in production builds). It validates *-for ID references, *-source store names, store uniqueness, and misspelled data-ln-* attributes via console warnings and visual CSS lint outlines.

  • Does Ashlar eliminate the need for MCP or documentation lookups?

    No. Coding agents follow Rule Zero: query the component router, get_markup, get_events, and get_attribute before emitting HTML so attributes match the exact schema.

  • What does the Ashlar Premium MCP Server add beyond docs-mcp/?

    While static docs-mcp/ markdown and JSON schemas ship free with Ashlar, the Ashlar Premium MCP Server adds live anti-hallucination lookups (who_handles, get_ln_schema), deterministic component and CRUD generators, automated plan/code/doc reviews, and AST architecture graph queries.

  • Where can AI search crawlers and agents read Ashlar specifications?

    Every key page renders complete content in initial HTML with JSON-LD, backed by /llms.txt, /llms-full.txt, /pricing.md, and /.well-known/ai-catalog.json.

Connect your coding agent to Ashlar

Inspect the upstream repository, browse the live component demos, or read the full MCP contracts.

Interactive Ashlar Modal & Validation

This dialog runs on native <dialog> via ln-modal and validates inputs using native browser ValidityState via ln-validate. Try submitting empty fields to see it in action.

Commercial Licensing Inquiries

When conveying ln-ashlar inside closed-source commercial web products, proprietary SaaS frontends, or client deliverables where you want unambiguous proprietary distribution rights without GPLv3 copyleft obligations, organizations obtain a commercial license from Live Networks.

Licensing Contact (Protected by ln-obfuscator) yvprafvat@yvirargjbexf.zx

Include your organization name, target product or project count, and whether you need dedicated architecture review or integration guidance.