Non-normative local tool

SDK playground

Inspect parsing, serialization, validation and registry resolution.

Local SDK experiment · no navigation

Use one of the four examples, or type your own. Parsing and resolution run locally; the input is never fetched or submitted.

Resolved against the example registry.

Parsed instruction

{
  "mode": "intent",
  "raw": "/~search;q.routing;page.2",
  "key": "search",
  "pathTokens": [
    "search"
  ],
  "namedArgs": {
    "q": "routing",
    "page": "2"
  }
}

Serialized anchor

/~search;q.routing;page.2

Validation result

{
  "valid": true,
  "instruction": {
    "mode": "intent",
    "raw": "/~search;q.routing;page.2",
    "key": "search",
    "pathTokens": [
      "search"
    ],
    "namedArgs": {
      "q": "routing",
      "page": "2"
    }
  },
  "errors": []
}

Resolved route record

{
  "success": true,
  "mode": "intent",
  "raw": "/~search;q.routing;page.2",
  "name": "Search",
  "path": "/search",
  "query": {
    "q": "routing",
    "page": "2"
  },
  "meta": {
    "key": "search",
    "namedArgs": {
      "q": "routing",
      "page": "2"
    },
    "instruction": {
      "mode": "intent",
      "raw": "/~search;q.routing;page.2",
      "key": "search",
      "pathTokens": [
        "search"
      ],
      "namedArgs": {
        "q": "routing",
        "page": "2"
      }
    }
  }
}
Inspect the fixed example registry
{
  "pages": {
    "settings": {
      "security": {
        "name": "Settings",
        "path": "/settings",
        "hash": "#security"
      }
    }
  },
  "global": {
    "profile": {
      "name": "Profile",
      "path": "/profile",
      "positionalBind": {
        "id": 0
      },
      "bindingTargets": {
        "id": "query"
      },
      "requiredPositionalCount": 1
    },
    "billing.invoice.list": {
      "name": "Invoices",
      "path": "/billing/invoices",
      "defaultQuery": {
        "view": "list"
      }
    },
    "search": {
      "name": "Search",
      "path": "/search",
      "namedBind": {
        "q": "q",
        "page": "page"
      },
      "bindingTargets": {
        "q": "query",
        "page": "query"
      },
      "requiredNamedArgs": [
        "q"
      ]
    }
  }
}

This bundle uses current repository core sources, including unpublished correctness fixes beyond npm core 0.2.0. It is not a new npm release. Result paths are examples; route records do not execute requests or grant authorization.

Parse an anchor-routing.txt declaration

Core 0.2 introduced declaration parsing and serialization. The current parser is deliberately tolerant: unknown fields are ignored and missing fields can receive defaults. Its output is not a conformance or security verdict.

A static result for the supplied example is shown below.

Parsed JSON

{
  "anchorRouting": 1,
  "name": "Anchor Routing local playground",
  "sdk": "@nextera.one/anchor-routing-core",
  "cases": [
    "page",
    "param",
    "dot",
    "intent"
  ],
  "routingMode": "registry",
  "internalAnchorRouting": false,
  "publicSeoUrls": false,
  "escapeMode": "percent",
  "registryVisibility": "private",
  "docs": "/spec/",
  "playground": "/playground/",
  "syntax": {
    "anchorPrefix": "/~",
    "pageCaseSeparator": "~",
    "paramCaseSeparator": ";",
    "dotCaseSeparator": ".",
    "intentCaseBinding": "name.value"
  }
}

Serialized text

Anchor-Routing: 1
Name: Anchor Routing local playground
SDK: @nextera.one/anchor-routing-core
Cases: page,param,dot,intent
Routing-Mode: registry
Internal-Anchor-Routing: false
Public-SEO-URLs: false
Anchor-Prefix: /~
Page-Case-Separator: ~
Param-Case-Separator: ;
Dot-Case-Separator: .
Intent-Case-Binding: name.value
Escape-Mode: percent
Registry-Visibility: private
Docs: /spec/
Playground: /playground/