diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f8c2cbf..042c15e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,6 +25,7 @@ The product is only useful because people paste **real secrets** into it. These 4. No file content in a URL, a hash, or a share link. 5. Masked values must not exist in the DOM while masked. 6. Fix blocks, reports (default redaction) and agent prompts must never contain a value. Tests assert this with real-looking strings. +7. No inline executable `` blocks, requires each to parse as JSON, and then + fails on any other inline script. A JSON-LD block that is not valid JSON is treated as an attempt + to hide code. Canonical links are likewise excused from the "no external ``" rule — metadata + is not a fetch. +- **Crawler files are part of the build:** `robots.txt`, `sitemap.xml` (only the three routes that + `vercel.json` rewrites) and `site.webmanifest`, with long-lived cache headers for immutable assets. +- **Enforced by tests,** not by intention: `tests/unit/metadata.test.ts` asserts tag values, absolute + URLs, title/description lengths, JSON-LD validity, the real pixel size of every icon, and that the + sitemap cannot drift from the rewrite list. + ## 14. Technical architecture ### 14.1 Stack decision diff --git a/docs/PRIVACY.md b/docs/PRIVACY.md index 58e90e3..d2f2243 100644 --- a/docs/PRIVACY.md +++ b/docs/PRIVACY.md @@ -1,6 +1,6 @@ # Privacy -EnvCompare exists to be used with real credentials. That only works if you can satisfy yourself — not take our word — that nothing leaves your browser. This page is the long version of [/privacy](https://env-compare.vercel.app/privacy). +EnvCompare exists to be used with real credentials. That only works if you can satisfy yourself — not take our word — that nothing leaves your browser. This page is the long version of [/privacy](https://envcompare.vercel.app/privacy). ## The short version diff --git a/index.html b/index.html index ab130b3..a0d2946 100644 --- a/index.html +++ b/index.html @@ -4,20 +4,81 @@ + EnvCompare — see what your .env is missing + + + + + + + + + + + + + + - + + + + + + + + + + + + + + +
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..7e385f4 Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/icon-192.png b/public/icon-192.png new file mode 100644 index 0000000..c5a4e1e Binary files /dev/null and b/public/icon-192.png differ diff --git a/public/icon-512.png b/public/icon-512.png new file mode 100644 index 0000000..7f0a967 Binary files /dev/null and b/public/icon-512.png differ diff --git a/public/og-image.png b/public/og-image.png new file mode 100644 index 0000000..e2a9b27 Binary files /dev/null and b/public/og-image.png differ diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..68f88a1 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,5 @@ +# EnvCompare is a single static page plus two rendered routes. +User-agent: * +Allow: / + +Sitemap: https://envcompare.vercel.app/sitemap.xml diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100644 index 0000000..ab0d046 --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1,15 @@ +{ + "name": "EnvCompare — see what your .env is missing", + "short_name": "EnvCompare", + "description": "Compare two to eight .env files in the browser. Nothing is uploaded or stored.", + "start_url": "/", + "scope": "/", + "display": "standalone", + "background_color": "#101215", + "theme_color": "#101215", + "icons": [ + { "src": "/favicon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" }, + { "src": "/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" }, + { "src": "/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" } + ] +} diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..b679eaf --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,21 @@ + + + + https://envcompare.vercel.app/ + 2026-10-21 + weekly + 1.0 + + + https://envcompare.vercel.app/about + 2026-10-21 + monthly + 0.5 + + + https://envcompare.vercel.app/privacy + 2026-10-21 + monthly + 0.6 + + diff --git a/scripts/check-privacy.mjs b/scripts/check-privacy.mjs index 4df1e16..6c78e7e 100644 --- a/scripts/check-privacy.mjs +++ b/scripts/check-privacy.mjs @@ -11,7 +11,10 @@ * 2. every runtime dependency is on a reviewed allowlist, carries the license * it was reviewed under, and ships no install scripts * 3. no third-party origins in the built bundle (except allowlisted link targets) - * 4. no inline