Skip to content
selery logo

CSS selector parser, DOM query engine

Selery is a small, artisanal CSS selector parser and DOM query engine. I aimed for a straightforward implementation that’s easy to understand, fork, and tinker with.

It underpins things like QSX, a query language based on CSS selector syntax. It can also provide support for modern CSS selectors in non-browser DOM environments such as jsdom.

Full documentation available on the project’s GitHub repository page.

Some relevant CSS specifications

Try it out here:

Selery playground →

Colophon

The Selery wordmark is typeset in Manicotti, the reverse-stressed Spaghetti Western typeface by David Jonathan Ross.

Related projects

Hred logo Hred

Extract data from HTML/XML as JSON from the command line, using QSX.

QSX logo QSX

QSX, a query language based on CSS selectors for extracting things from the DOM.