Precision measurement for the web. Free, open-source Chrome extension to measure pixel distances, inspect element dimensions, and check alignment on any webpage.
Raval is a free, open-source Chrome extension that lets designers and developers instantly measure distances, inspect dimensions, and check alignment on any webpage. Think PixelSnap, but for the browser — with direct DOM access for pixel-perfect accuracy.
Activate it with ⌥⇧C (Alt+Shift+C), hover over any element, and immediately see its exact size. No screenshots. No switching apps.
- Inspect mode — hover over elements to see
width × heightin a floating label - Measure mode — click two elements and see the pixel distance between their closest edges
- Alignment guides — drag horizontal and vertical guide lines anywhere on the page
- Box model overlay — colour-coded margin, padding, border, and content visualisation
- Screenshot export — capture the viewport with measurements overlaid, saved as PNG
- Keyboard-first — every action has a shortcut; no mouse required
Also available: companion website & docs · Chrome Web Store listing copy
# 1. Clone
git clone https://github.com/heysolomon/raval.git
cd raval
# 2. Install dependencies
pnpm install
# 3. Build the extension
pnpm build --filter=@raval/extension
# 4. Load in Chrome
# → chrome://extensions → Enable Developer mode → Load unpacked → select apps/extension/dist/Prerequisites: Node.js 18+, pnpm 8+
# Install all workspace dependencies
pnpm install
# Watch-build the extension (reloads on save)
pnpm dev --filter=@raval/extension
# Run the companion website locally
pnpm dev --filter=@raval/web
# Lint all packages
pnpm lint
# Type-check all packages
pnpm typecheck
# Production build
pnpm buildAfter running the extension dev server, load apps/extension/dist/ as an unpacked extension in Chrome.
| Layer | Technology |
|---|---|
| Extension | TypeScript, Canvas API, Chrome Manifest V3 |
| Bundler | Vite + @crxjs/vite-plugin |
| Website | Next.js 14 (App Router), TypeScript, Tailwind CSS |
| Animations | Framer Motion |
| Monorepo | pnpm workspaces + Turborepo |
| Shortcut | Action |
|---|---|
⌥⇧C / Alt+Shift+C |
Toggle Raval on/off |
1 – 4 |
Switch mode: Inspect, Measure, Guides, Annotate |
R |
Toggle rulers |
D |
Open design token panel |
F |
Cycle colour format (Inspect) |
S |
Take screenshot |
⌘Z / Ctrl+Z |
Undo in Measure, Guides, and Annotate |
? |
Show all shortcuts |
Esc |
Close what is open, then Raval |
Contributions of all kinds are welcome. See CONTRIBUTING.md for setup instructions, branch naming conventions, commit format, and the PR process.
Good first issues are labelled good first issue.
Track planned work and progress on the GitHub Projects board.
- Bugs & features: GitHub Issues
- Discussion: GitHub Discussions
- Website & docs: raval.solomonakuson.com
MIT © Raval Contributors
