frontend-guardian
v0.1.22
Published
Scan frontend projects for Tailwind & component consistency (Phase 1 CLI)
Downloads
1,939
Maintainers
Readme
frontend-guardian (CLI)
Scan engine for Frontend Guardian.
What is Frontend Guardian? It helps frontend teams keep UIs consistent. After you ship, spacing, borders, colors, and components often drift. This tool scans your code (Tailwind, JSX/TSX) and flags inconsistent spacing, arbitrary colors, mixed border-radius, duplicate components, and similar issues so you can fix them before they pile up.
Use this package only if you want to run the scanner from your own Node code (programmatic use).
Most users: run the CLI instead (no install):
# Scan current folder for Tailwind/component consistency
npx frontend-guardian .
# Add GitHub Actions workflow to run the check on push/PR
npx frontend-guardian init
# Same scan + AI fix suggestions
npx frontend-guardian . --suggestInstall (optional) — only if you're embedding the scanner in your app:
npm i @justinmoto/frontend-guardian-core