Skip to content

Core Concepts

How the Alap expression language works — from simple tag queries to protocol filters and result refiners.

PageWhat it covers
ExpressionsTags, operators (+ | -), parentheses, commas, the full grammar
MacrosNamed queries with @, nesting, the bare @, Markdown escape hatch
Search PatternsRegex search with /pattern/, field codes, age/sort/limit options
ProtocolsDimensional queries (:time:30d:, :loc:args:), handler contract, source chains
RefinersSet-level shaping (*sort*, *limit:N*, *shuffle*), inline refiners, pagination
StylingCSS custom properties, ::part() selectors, dark mode, transitions, effects

Reading order

Start with Expressions — everything else builds on it. Macros is a natural follow-up. The rest can be read in any order as you need them.

See also