A collection of small, browser-first utilities for developers, system administrators and security engineers, maintained under safesploitOrg.
Status:
v0.1.1CI-hardening source candidate, not verified for release. The GitHub repository exists, but a successful Pages deployment and the required independent browser verification have not been established. T2 owner approval remains pending.
- GitHub repository:
https://github.com/safesploitOrg/web-tools - Target catalogue:
https://safesploitorg.github.io/web-tools/ - Target SRI utility:
https://safesploitorg.github.io/web-tools/sri-hash/ - Hosting: GitHub Pages project site, no custom domain and no
CNAME.
public/index.html is a catalogue; public/sri-hash/index.html is the first real utility. Browser runtime uses plain HTML/CSS/JavaScript ES modules, no frameworks, no backend and no database.
- Choose Resource URL, Local file or Paste text.
- Select SHA-256, SHA-384 (default) or SHA-512.
- Select JavaScript or Stylesheet if you need HTML markup, then select Generate integrity hash.
- Copy the integrity token, or the generated script/link snippet when a hosted HTTPS resource URL was supplied.
Exact bytes matter: URL mode fetches resource bytes using browser CORS; file mode hashes the local file's bytes; pasted text is encoded as UTF-8 and may differ from a file because textareas normalise some line endings. The token measures bytes, not whether the source is trustworthy.
- Files and pasted text are processed locally; nothing is uploaded to a safesploitOrg backend.
- URL mode makes a user-initiated request directly to the specified HTTPS server. The destination sees the request and must permit CORS. Redirects are refused; use the final resource URL or download the file and hash it locally.
- Maximum size is 20 MiB in all three modes. Network streams are checked against bytes actually received, not only
Content-Length. Timeout defaults to 15 seconds; user cancellation is supported for URL mode. - IP-address literals that are obviously private or reserved are rejected; IPv6 literals are not supported in v0.1. DNS-based internal-name resolution cannot be ruled out by a browser-only validator. This is not an SSRF firewall.
- Generated markup is inert text; untrusted resource content is never executed or inserted as HTML.
- The browser must support modern JavaScript, Web Crypto,
fetch,ReadableStreamand the Clipboard API for copying. Select-and-copy works when clipboard access is denied.
For a local HTTP preview, serve public/ rather than the repository root. localhost and 127.0.0.1 are secure browser contexts for Web Crypto.
python3 -m http.server 8080 --directory public
# Open http://localhost:8080/
# Direct tool: http://localhost:8080/sri-hash/The same relative links should resolve under the GitHub Pages /web-tools/ prefix without rewriting URLs.
Requires Node.js 22+ and Python 3 (for the dependency-free SVG XML validator). Once the registry is available and the dependency lockfile is generated and verified:
npm install --package-lock-only --ignore-scripts
npm ci --ignore-scripts
npm run check # Includes formatting, lint, HTML, routes, safety checks, Vitest
npm run test:smoke # Uses only built-in Node modules
npm run format # Apply Prettier formatting before committing
npm run check:svg # Validate SVG XML + five hostile-input unit cases
bash scripts/fix-quality.sh # One-time lockfile, format, check and audit helperEnvironment limitation at initial implementation: npm registry DNS was unavailable, so npm ci, Vitest, ESLint, Prettier and HTML validation could not be executed. The dependency lockfile must be generated with registry access, reviewed and committed before a reproducible Pages release. Do not mark the release as verified on the strength of test:smoke alone. See docs/testing.md.
The .github/workflows/pages.yml runs unit, format, source, route, audit and secret checks; it does not run Playwright in CI, per owner direction. That omission is an unresolved SFW Profile B browser-E2E requirement, not a passing result.
Publishing is gated on both CI jobs and requires a manual workflow_dispatch on main, plus the GitHub Pages environment protections and a separately recorded owner T2 release decision. Source implementation does not grant permission to push, merge or deploy.
Do not dispatch the release workflow until docs/testing.md, SECURITY.md and docs/operations.md release gates have been satisfied.
ARCHITECTURE.md— as-built components, data flow, constraints and release boundaries.ROADMAP.md— implementation phases and outstanding tasks.CHANGELOG.md— unreleased candidate changes.SECURITY.mdanddocs/threat-model.md— security assumptions, risks and review gates.docs/testing.md— test matrix, commands and actual evidence.docs/operations.md— deployment, smoke and rollback instructions.AGENTS.md/docs/engineering/SFW_AI_ENGINEERING_STANDARD.md— agent entry point and owner-adopted SFW v1.1 policy.
No licence has been selected by the repository owner. Source availability should not be confused with an open-source licence; do not add a licence without an owner decision.
For the first checkout, run bash scripts/relock.sh on a machine with access to
registry.npmjs.org. This generates package-lock.json, performs a locked
installation and runs the checks. Review and commit package-lock.json.
Until it is committed, CI quality/security jobs temporarily generate an npm lockfile before installing, but releases are blocked by the deploy job. This temporary path is not reproducible across runs and should be removed after the proper lockfile is committed.
The quality CI job also publishes a web-tools-package-lock artefact containing
the complete resolved package-lock.json, which you can download from the
GitHub Actions run and commit if you cannot run npm locally. This artefact
should be reviewed like any other dependency change.
The source now includes the GitHub Actions Prettier repair patch. The two SVG assets are checked by npm run check:svg instead of being passed to a parser that cannot infer .svg. Do not remove format:check to make CI pass.
If npm is available locally, run:
bash scripts/fix-quality.sh
git diff --check
git status --short
# Review the diff, then commit the formatted source and package-lock.json.If only GitHub Actions has npm access, the quality job still fails on formatting but publishes web-tools-prettier-repair as an artefact after generating the actual Prettier diff. Download the artefact, extract prettier-format.patch at the repository root and apply it:
git apply --check prettier-format.patch
git apply prettier-format.patch
# Commit the reviewed formatting changes and rerun the quality workflow.The web-tools-package-lock artefact is uploaded even when Prettier fails, so it can be reviewed and committed separately. The CI job reports other check failures independently and a failed format/lint/test gate still blocks deployment. The formatter patch is diagnostic only: no action auto-commits or deploys it.
- Previous CI run #3 identified formatting, ESLint, HTML, dependency-audit and licensed Gitleaks Action failures.
- This change applies the generated formatting patch, fixes source-level lint and HTML errors, and upgrades Vitest and HTML Validate to remediate the reported dependency chains.
- Secret scanning uses the standalone Gitleaks CLI v8.30.1 (download verified against upstream SHA-256) rather than the organisation-licensed Action. The history scan is still a required, blocking CI step.
- The repository still has no committed lockfile. CI bootstraps one for testing and uploads it for owner review, while the manual release job refuses deployment until the verified lockfile is committed.
- No application feature changes, Playwright CI addition, merge or release are authorised by this change.