<w> smolweb

Smolweb-validator

2025-08-17

smolweb-validator is a CLI tool to check if a web page respects smolweb HTML subset.

This tool uses jsoup HTML5 parser, a java library distributed under MIT License.

You need a Java Runtime Environment to execute it, and/or a Java Development Kit if you want to build it.

Usage

./smolweb-validate <URL> [--verbose]
java -cp "jsoup-1.21.1.jar:." SmolwebValidator <URL> [--verbose]
jre -cp "jsoup-1.21.1.jar:." SmolwebValidator <URL> [--verbose]

Examples:

./smolweb-validate https://example.com
./smolweb-validate https://example.com --verbose
java -cp "jsoup-1.21.1.jar:." SmolwebValidator https://example.com
java -cp "jsoup-1.21.1.jar:." SmolwebValidator https://example.com --verbose
jre -cp "jsoup-1.21.1.jar:." SmolwebValidator https://example.com
jre -cp "jsoup-1.21.1.jar:." SmolwebValidator https://example.com --verbose

Options:

--verbose    Show all errors and detailed statistics

Script: smolweb-validate is a useful script detecting java or jre


$  ./smolweb-validate https://smolweb.org/
πŸ” Validating: https://smolweb.org/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ“Š VALIDATION SUMMARY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
βœ… VALID: This page conforms to the smolweb HTML subset!

πŸ“ˆ Statistics:
  Total elements: 48
  Valid elements: 48
  Invalid elements: 0

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Validation complete.