
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
cssprobe-cli
Advanced tools
Runtime CSS probe — inspect layout, colors, backgrounds, fonts and more in a live browser. AI agents and shell automation.
Runtime CSS probe — inspect layout, scroll, colors, backgrounds, fonts and more in a live browser. Built for both humans and AI agents.
npm install -g cssprobe-cli
cssprobe-cli skill-install
# With explicit selector
cssprobe-cli inspect https://getbootstrap.com/docs/5.3/examples/checkout ".container"
# Auto-detect root element
cssprobe-cli inspect https://getbootstrap.com/docs/5.3/examples/checkout
# Local HTML file
cssprobe-cli inspect ./test.html ".container"
# Import cookies from browser export (Netscape format)
cssprobe-cli state-import cookies.txt --out ~/.cssprobe-cli/states/mysite.json
# Or interactive login
cssprobe-cli login https://mysite.com
# Then inspect with state
cssprobe-cli inspect https://mysite.com/page ".target" --state ~/.cssprobe-cli/states/mysite.json
# Wait for user interaction before collecting (e.g. click a button to open a dialog)
cssprobe-cli inspect https://mysite.com/page ".dialog" --state ~/.cssprobe-cli/states/mysite.json --wait
# Open browser and inspect interactively (REPL mode)
cssprobe-cli interactive https://mysite.com --state ~/.cssprobe-cli/states/mysite.json
Runtime commands:
inspect> tree .dialog-A # DOM tree
inspect> layout .sidebar-B # ASCII layout diagram
inspect> sketch .content # Tree sketch (issues only)
inspect> findings .modal # Findings only
inspect> json .dialog-A # JSON output
inspect> report .dialog-A # Full report
inspect> .dialog-A # Shorthand for report
inspect> navigate https://other.com # Navigate to new URL
inspect> depth 10 # Set depth
inspect> help # Show help
inspect> quit # Exit
cssprobe-cli inspect https://getbootstrap.com/docs/5.3/examples/checkout body --json
cssprobe-cli inspect https://getbootstrap.com/docs/5.3/examples/checkout body --json | jq '.findings[] | {id, confidence, message}'
| Flag | Output | Use Case |
|---|---|---|
| (default) | Markdown report with ancestor chain, DOM tree, findings | Terminal viewing |
--json | Structured JSON with snapshot, findings, confidence summary | Scripts, jq pipes, AI agent consumption |
--brief | Compact output: tree sketch + warnings/errors only | Quick overview |
--layout | ASCII layout diagram showing element positions and sizes | Visual layout inspection |
cssprobe-cli inspect <url> [selector] # Inspect CSS layout
cssprobe-cli interactive <url> # Interactive REPL mode
cssprobe-cli login <url> # Interactive login, save state
cssprobe-cli state-import [file] # Import cookies from Netscape format
cssprobe-cli inspect https://getbootstrap.com/docs/5.3/examples/checkout body
cssprobe-cli config-show # Show current config
cssprobe-cli config-set <key> <value> # Set config value
cssprobe-cli config-list # List all profiles
cssprobe-cli config-use <name> # Switch active profile
cssprobe-cli config-new <name> # Create new profile
cssprobe-cli config-path # Show config file path
cssprobe-cli inspect <url> [selector] [options]
Arguments:
<url> URL, file:// path, or local HTML file
[selector] CSS selector for root (auto-detected if omitted)
Options:
--json Output structured JSON
--headed Show browser window
--browser <engine> chromium|firefox|webkit (default chromium)
--zoom Run 1x/0.5x viewport diagnosis
--depth <n> DOM tree depth (default: auto)
--max-nodes <n> Node count cap (default 60)
--up-to <tag> Ancestor stop tag (default html)
--state <file> Load saved state (cookies + localStorage)
--brief Compact output: tree sketch + warnings/errors only
--layout ASCII layout diagram showing element positions and sizes
--wait Wait for user interaction before collecting (implies --headed)
--viewport <WxH> Viewport size (e.g. 375x812, default 1280x720)
Import cookies from Netscape format (browser export standard) into a Playwright state file.
# From file
cssprobe-cli state-import cookies.txt --out mystate.json
# From stdin
cat cookies.txt | cssprobe-cli state-import --out mystate.json
# Merge into existing state
cssprobe-cli state-import new-cookies.txt --merge existing.json --out merged.json
Netscape format (tab-separated):
.example.com TRUE / TRUE 1813025057 session_id abc123
.example.com TRUE / FALSE -1 lang zh-CN
Every finding carries a confidence level:
| Level | Meaning |
|---|---|
| DEFINITE | Based on computed values (facts from getComputedStyle) or accessible declared values |
| INDEFINITE | Declared value uses % — resolves at runtime |
| UNVERIFIABLE | Declared value missing or from blocked cross-origin stylesheet |
The report header shows: confidence: DEFINITE 8 | INDEFINITE 0 | UNVERIFIABLE 1
# Set values
cssprobe-cli config-set browser chromium
cssprobe-cli config-set depth 8
cssprobe-cli config-set viewport 375x812
# Show current config
cssprobe-cli config-show
# Profile management
cssprobe-cli config-new staging
cssprobe-cli -p staging config-set browser firefox
cssprobe-cli config-use staging
cssprobe-cli config-list
Priority: CLI flags > Environment variables > Config file
--browser CSSPROBE_BROWSER
--depth CSSPROBE_DEPTH
--headed CSSPROBE_HEADED
--viewport CSSPROBE_VIEWPORT
-p, --profile CSSPROBE_PROFILE
Config file: ~/.cssprobe-clirc
# Install skill for all detected agents
cssprobe-cli skill-install
# Install for a specific agent
cssprobe-cli skill-install --target opencode
cssprobe-cli skill-install --target claude
# Remove installed skills
cssprobe-cli skill-uninstall
--json Output as JSON (default: Markdown)
--raw Output raw result without formatting
--help [command] Show help for a command or global
--version Show version
-p, --profile Use named config profile
npm install
npm run build # tsc + esbuild collector bundle + generate help.json
npm test # Run unit tests
npx tsc --noEmit # Type check only
MIT
FAQs
Runtime CSS probe — inspect layout, colors, backgrounds, fonts and more in a live browser. AI agents and shell automation.
The npm package cssprobe-cli receives a total of 61 weekly downloads. As such, cssprobe-cli popularity was classified as not popular.
We found that cssprobe-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.