URL serialization of query state
Serializes the canonical AST into a compact, URL-safe parameter and restores it on load. Filtered and sorted views can then be bookmarked and shared, and decoded input is fully validated before it is applied.
Planned. This page shows the specification from issue #182. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid embedded in a mock browser frame with an address bar that reflects the current query.
Expected behavior
Changing the query updates the address bar using replaceState. Editing the address bar by hand applies the query, or shows a validation banner and falls back to the default view.
Planned API surface
toUrlParam()fromUrlParam()urlParamNameurlEncodingsyncQueryToUrlmaxUrlLengthAcceptance criteria
- Round trip fromUrlParam(toUrlParam(ast)) equals canonicalize(ast) (pending)
- Decoded ASTs pass the full validator before being applied (pending)
- Encoded length is checked against maxUrlLength, with a documented fallback (pending)
- The version 'v' is embedded so old links can be migrated (pending)