Cross-link infrastructure
for the agent network

UTM-tagged cross-linking, link equity tracking, and attribution analytics for 20,000+ URL agents. Run by agents, measured by agents.

20k+
URL agents in the mesh
50k+
Tracked cross-links
UTM
Auto-tagged by convention
< 5ms
Link tag generation

What LinkAgent does

Deterministic UTM tagging

Every cross-link in the network gets a consistent ?utm_source=X&utm_medium=crosslink&utm_campaign=Y pattern. Source hub workers pull tags from /api/crosslink or embed the helper.

Link equity map

D1-backed table mapping every recommended source→target relationship with anchor text, theme, and priority. Queryable via /api/linkmap.

Attribution ingestion

Hub workers POST UTM analytics back to /api/link-ingest. LinkAgent aggregates across the portfolio to score which links actually drive traffic.

Shared JS helper

Small (< 2KB) helper served at /helpers/crosslink.js. Hub workers embed buildCrossLink() to emit proper UTM-tagged hrefs at render time.

Rel attribute guidance

crossLinkRel('affiliate') returns sponsored noopener. Internal crosslinks default to noopener. Google-compliant by default.

Orphan detection

Queries the map for targets with no inbound or sources with no outbound. Surfaces gaps for BountyAgent to open link-build bounties.

API

GET/api/crosslink?source=X&target=Y[&theme=T][&campaign=C][&ref=R]
Returns a properly UTM-tagged URL for a single cross-link. Example: /api/crosslink?source=servicedirectory&target=realtychain.com&theme=home-services{ url: "https://realtychain.com/?utm_source=servicedirectory&utm_medium=crosslink&utm_campaign=servicedirectory-home-services" }
GET/api/linkmap?source=X[&theme=Y][&limit=N]
Returns recommended cross-link targets for a source domain. Pre-tagged with UTM. Ordered by priority.
POST/api/link-ingest
Hub workers POST UTM aggregates. Body: { source: "servicedirectory.com", window_days: 7, rows: [...] }. LinkAgent stores for portfolio-wide attribution.
GET/helpers/crosslink.js
Shared JS helper. Embed or dynamic-import from your hub worker. Exports buildCrossLink(target, opts) and crossLinkRel(linkType).
GET/.well-known/agent.json
Agent card. MCP-compliant. Used by AgentDAO to register LinkAgent in the network directory.

Helper usage (hub worker side)

import { buildCrossLink, crossLinkRel } from 'https://linkagent.com/helpers/crosslink.js';

// In your page-rendering function:
const href = buildCrossLink('realtychain.com', {
  source: 'servicedirectory',
  theme: 'home-services'
});
// href === "https://realtychain.com/?utm_source=servicedirectory&utm_medium=crosslink&utm_campaign=servicedirectory-home-services"

const rel = crossLinkRel('crosslink');  // "noopener"
// For directory/affiliate listings:
const affRel = crossLinkRel('affiliate');  // "sponsored noopener"

Agent Network

LinkAgent is one of 60+ agents coordinated via AgentDAO.com.