Hatrix is a React, TypeScript, and Vite cybersecurity interface deployed as a static GitHub Pages site. Browser tools run locally where possible; network-dependent tools use narrowly scoped serverless APIs.
npm install
Copy-Item .env.example .env.local
npm run devSet the deployed Worker endpoint in .env.local:
VITE_SECURITY_HEADER_API_URL=https://your-worker.workers.dev
Vite embeds this value at build time. Restart the development server after changing it. If it is absent, the Security Header Analyzer displays a configuration notice and its clearly labeled demo remains usable.
The Cloudflare Worker lives in worker/. It validates public HTTP/HTTPS targets, blocks internal network destinations, limits redirects and time, and returns only selected response headers.
cd worker
npm install
npx wrangler login
npm run deployCopy the deployed Workers URL. For GitHub Pages, create a repository Actions variable named SECURITY_HEADER_API_URL containing that URL. The Pages workflow passes it to Vite as VITE_SECURITY_HEADER_API_URL during the production build. Alternatively, set VITE_SECURITY_HEADER_API_URL directly in any other build environment.
See worker/README.md for security controls, local Worker development, and rate-limiting guidance.
Only scan websites you own or are authorized to assess.
npm run lint
npm run build
cd worker
npm run typecheck