A web playground for testing CSS selectors on custom HTML snippets. Built with React, TypeScript, Vite, Jotai, and Chakra UI.
- Paste or edit HTML in the left pane
- Enter CSS selectors to highlight matching elements
- See results instantly in the right pane
- Responsive UI with Chakra UI
- State managed by Jotai
- Node.js (v18+ recommended)
- pnpm (or npm/yarn)
pnpm installpnpm devVisit http://localhost:5173 in your browser.
src/— Source codecomponents/— UI components (Header, Footer, LeftPane, RightPane, Content)lib.ts— HTML parsing and selector logicstore.ts— Jotai atoms for stateApp.tsx— Main app componentmain.tsx— Entry point
public/— Static assets
- Paste HTML into the left pane.
- Type a CSS selector (e.g.,
.class,#id,a[href]). - View matching elements in the right pane.
- React
- TypeScript
- Vite
- Jotai
- Chakra UI
- Cheerio
MIT