1. Drop It In
Add one script tag. Signed-in users get their ANKLE identity, credits, and Hermes terminal. Anonymous users still get install/sign-in paths.
This is the user-facing layer for the thing Mercer described: a SoundCloud/YouTube-style embed, but connected to identity, credits, analytics, provenance, and Hermes. A builder can place ANKLE widgets on their own site while aleqth.com stays the account, data, and agent layer.
Add one script tag. Signed-in users get their ANKLE identity, credits, and Hermes terminal. Anonymous users still get install/sign-in paths.
Any site can mark a div as an ANKLE widget. The first real target is a discplayer/music embed: iframe, analytics, top-up, and Hermes context in one shell.
Mount/open/ask/top-up events write into the analytics spine, so the operator view can see which external widgets are actually moving.
Any site can become an ANKLE surface. The widget registers the host page, then writes source/media usage into the same SURF metadata graph used by aleqth-built pages. That is the @command layer: outside websites stay themselves, but their embeds, assets, and interactions become attributable inside the ANKLE database.
<script src="https://ankle.website/atcmd/widget.js" data-base="https://aleqth.com" defer></script>
<script>
window.addEventListener("load", function () {
window.atcmd.registerSurface({
title: document.title,
tags: ["portfolio", "discplayer", "music"]
});
window.atcmd.attributeSource({
url: "https://discis.netlify.app",
title: "discplayer",
widget: "discplayer",
role: "embed",
tags: ["music", "catalogue", "player"]
});
});
</script>
| Step | What Happens | System Layer |
|---|---|---|
| Discover | A builder finds @command from ankle.website, ankle.md, a friend's embed, or the extension. | ANKLE product surface |
| Install | They paste the script tag or use the extension to inject it into the current site. | @command runtime |
| Register | The widget calls /atcmd/surface/register and creates a deterministic external surface id. | aleqth.com API |
| Mount | They add data-ankle-widget blocks for players, used-in cards, sources, or approved modules. | widget registry |
| Attribute | Sources and media write into SURF through /atcmd/source. | used-in graph |
| Declare Tools | The host publishes what @command/Hermes can safely do via /atcmd/host/capabilities. | MCP-like bridge |
| Build | The user asks /build; @command returns HTML, CSS, iframe/srcdoc, and patch instructions. | builder planner |
| Confirm | The extension stages the plan, shows the target and risks, and only mutates the page after APPLY PREVIEW. | extension confirmation layer |
| Operate | Hermes sees the registry, surface, sources, credit state, and can help edit or explain the page. | agent layer |
| Domain | Role | Why It Matters |
|---|---|---|
ankle.website | Public install and distribution | Normal people learn to get the field kit, install @command, and start participating. |
ankle.md | Protocol canon and static reference | Stable spec/docs mirror for agents, builders, and verification. |
aleqth.com | Authenticated runtime | Identity, credits, Whop fulfillment, SURF writes, dashboards, and God-eye analytics live here. |
| External hosts | Activated surfaces | They keep their own domain/design while joining the ANKLE graph. |
The Whop lesson is that builders need a place to make applications, attach them to a community, and monetize access. @command needs the same product shape for websites: approved modules enter a registry, agents can discover them, and external hosts can mount them with one attribute instead of copying custom code every time.
{
"registry": "/atcmd/registry",
"manifest": "/atcmd/manifest",
"states": ["proposed", "sandboxed", "approved", "core", "monetized"],
"mount": "<div data-ankle-widget=\"used-in\" data-url=\"https://discis.netlify.app\"></div>"
}
<div data-ankle-widget="discplayer" data-src="https://discis.netlify.app" data-title="discplayer" data-height="520"></div> <script src="https://ankle.website/atcmd/widget.js" data-base="https://aleqth.com" defer></script>
This is the visible part of the asset-backlink idea: an external site can show who used an image, player, track, object, or page after it has been attributed into SURF.
<div data-ankle-widget="used-in" data-url="https://discis.netlify.app" data-title="Where this player is used"></div> <script src="https://ankle.website/atcmd/widget.js" data-base="https://aleqth.com" defer></script>
If a builder wants @command to help build their own site, the host declares a scoped capability surface. The terminal can then generate code, iframe artifacts, and patch plans. The extension can apply a contained browser preview after the user confirms; persistent writes still require a host-side save/deploy capability.
<div data-ankle-widget="builder" data-title="@command builder" data-prompt="Add a SURF-aware gallery and top-up button"></div> <script src="https://ankle.website/atcmd/widget.js" data-base="https://aleqth.com" data-builder="true" defer></script>
| Command | What It Does |
|---|---|
/install | Opens the extension/app install path so someone can participate across the web. |
/credits | Opens the Whop-backed credit pack flow on aleqth.com. |
/widget | Returns builders to this kit. |
/discplayer | Explains the external music-widget target and opens this section. |
/activate | Explains how the current page becomes an ANKLE external surface. |
/registry | Lists approved/candidate widgets and app modules. |
/build request | Generates a host-site build plan with HTML, CSS, iframe/srcdoc, and safe patch instructions. |
/source URL | Attributes an external source to the current ANKLE surface. |
/used-in URL | Shows where an attributed source has appeared. |
Custom widgets can report events without building a backend client:
window.atcmd.track("widget.play", {
widget: "discplayer",
widget_id: "mercer-demo",
source_url: "https://discis.netlify.app",
meta: { track: "uploaded folder" }
});
Backlinks are available for any attributed external asset, so the system can answer: who used this image, player, track, page, or media source?
fetch("https://aleqth.com/atcmd/source/usage?url=" +
encodeURIComponent("https://discis.netlify.app"))
.then(r => r.json())
.then(console.log);
Built now: standalone forgot-password login, external widget mounting, widget event analytics,
top-up/install visibility, a first discplayer wrapper, external surface registration,
source attribution into the used-in/SURF graph, a public @command registry, manifest,
visible backlink card, MCP-like host capability declaration, and build-plan generation.
Built in the extension lane: staged review, APPLY PREVIEW, copy-code fallback,
and builder-widget handoff. Next: richer God-eye analytics, host save adapters, and
per-builder API keys.