MCPcopy Index your code
hub / github.com/andybalholm/cascadia

github.com/andybalholm/cascadia @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
74 symbols 180 edges 6 files 65 documented · 88% 123 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cascadia

The Cascadia package implements CSS selectors for use with the parse trees produced by the html package.

To test CSS selectors without writing Go code, check out cascadia the command line tool, a thin wrapper around this package.

Extension points exported contracts — how you extend this code

Selector (FuncType)
the Selector type, and functions for creating them A Selector is a function which tells whether a node matches or not.
selector.go

Core symbols most depended-on inside this repo

skipWhitespace
called by 13
parser.go
attributeSelector
called by 8
selector.go
parseIdentifier
called by 7
parser.go
toLowerASCII
called by 5
selector.go
simpleNthChildSelector
called by 4
selector.go
simpleNthLastChildSelector
called by 4
selector.go
consumeParenthesis
called by 4
parser.go
consumeClosingParenthesis
called by 4
parser.go

Shape

Function 48
Method 23
Struct 2
FuncType 1

Languages

Go100%

Modules by API surface

selector.go44 symbols
parser.go22 symbols
selector_test.go3 symbols
parser_test.go2 symbols
benchmark_test.go2 symbols
fuzz/fuzz.go1 symbols

For agents

$ claude mcp add cascadia \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact