Register
Describe your app's entities and actions in semantic terms. Declare what exists, what can be done, and in what order.
Define what your app is, what it can do, and what rules apply — as a versioned semantic contract any AI agent can read over HTTP, MCP, or in-process hooks — without scraping fragile markup.
bun add @synqel/sdk zodFlow
Three layers from declaration to audited execution — built for humans and machines to share the same contract.
Describe your app's entities and actions in semantic terms. Declare what exists, what can be done, and in what order.
AI agents read a clean, structured snapshot — not HTML. They know what objects exist, what actions are available, and what policies apply.
Policy gates each attempt; optional JSON Schema validates payloads; bound handlers run your real business logic. Every step emits semantic events for audits and observability.
Contrast
Without Synqel, agents parse opaque markup. With Synqel, they get a versioned envelope with your registry snapshot — intent, optional JSON Schema per action, workflows, and capabilities.
<!-- What AI sees today: raw HTML soup -->
<div class="sc-1x2b3c product-card">
<span class="price-label">$299</span>
<button class="btn btn-primary sc-4d5e6f"
onclick="addToCart(123)">
Add to Cart
</button>
</div>{
"format": "synqel.snapshot.v1",
"registryVersion": 12,
"snapshot": {
"entities": [
{
"id": "product_123",
"type": "product",
"metadata": { "price": 299 }
}
],
"actions": [
{
"id": "add_to_cart",
"intent": "mutation",
"deterministic": true,
"inputJsonSchema": {
"type": "object",
"properties": {
"sku": { "type": "string" },
"qty": { "type": "number" }
},
"additionalProperties": false
}
}
],
"capabilities": {
"canSearch": true,
"canCheckout": true
},
"workflows": [
{
"id": "checkout_flow",
"steps": ["add_to_cart", "confirm_order"]
}
]
}
}Use cases
Any product with multi-step tasks, sensitive mutations, or AI copilots benefits from a single semantic contract — not a one-off integration per screen.
Expose carts, shipping zones, promos, and payment steps as entities and workflows so agents complete purchases without guessing hidden state.
Bulk edits, approvals, and role-gated mutations become explicit actions with policy — agents and humans share the same rule chain.
Ticket status, allowed transitions, and safe customer-facing actions are readable as a snapshot instead of inferred from DOM layout.
Multi-step flows register as ordered workflows: the agent knows what step comes next and which fields are blocking progression.
High-risk steps stay behind policy gates; every attempt and outcome is emitted as a semantic event for auditors and replay.
Releases, feature flags, pipelines, and environments surface as navigable capabilities — ideal for internal AI assistants and bots.
Products
The SDK is the spine; these are common product shapes teams build once the registry, policy, and events are in place.
A chat or command palette that reads the same registry snapshot your external agents use — one contract, two audiences.
Stdio MCP tools expose snapshot + execution to Claude Desktop, Cursor, and other MCP hosts — without inventing a parallel agent protocol.
Drive flows by intent and workflow ids instead of brittle selectors; assert on policy decisions and emitted events.
Stream semantic events across tenants or services: who attempted what, which policy fired, and the structured result.
Let operators or developers simulate mutations against rule chains before changes hit production traffic.
Per-workspace or per-customer registry snapshots and capabilities — agents stay scoped to the right org and data boundary.
See concrete patterns in Examples and wire policy in Policy.
Beyond AI agents
The same semantic contract that makes your app AI-navigable also unlocks structural advantages in testing, accessibility, and growth.
Replace brittle CSS selectors with intent and workflow IDs. Tests assert on semantic events and policy decisions — not DOM snapshots — so they survive UI refactors without breaking.
The registry exposes what the app is and what it can do — not just visual roles. Automated a11y auditors, screen readers, and AT tools get structured entities and allowed actions with full machine-readable context.
Expose experiments, campaigns, and conversion steps as first-class semantic workflows. AI agents and analytics tools read the same structured surface to optimize flows, personalize experiences, and measure what matters.
Design
Actions carry intent class (navigation, mutation, query, system) — not DOM selectors. AI agents reason about purpose, not markup.
Policy gates prevent AI agents from executing mutations without explicit permission. Every action goes through a composable rule chain.
Synqel defines meaning and governance; MCP is optional transport. Ship the same registry via React hooks, HTTP snapshot routes, or @synqel/mcp tools (synqel_get_snapshot, synqel_execute_action).
Audience
Adding AI features to existing web applications.
Who need structured application context instead of raw HTML.
The same semantic tree concept, richer than ARIA, machine-readable.
Who need a standardized observability and policy layer.
Start with the protocol spec, wire the SDK, and expose a clean snapshot — no scraping, no brittle selectors.