Compare commits

..
Author SHA1 Message Date
chrnx 9d82ec0f1f Merge pull request 'ci: move the audit off the release gate and onto a schedule' (#10) from ci/audit-out-of-the-release-gate into main
CI / build (push) Successful in 11s
Release → dist.tar.gz / package (push) Has been skipped
Promote → GitHub / push-github (push) Successful in 4s
Reviewed-on: #10
2026-08-07 22:02:12 +00:00
chrnx 6fbff8eab9 Merge branch 'main' into ci/audit-out-of-the-release-gate
CI / build (pull_request) Successful in 12s
2026-08-07 21:59:46 +00:00
chrnx 3772222118 Merge pull request 'chore: version 26.8.1-beta.0 and clear the nanoid advisory' (#9) from chore/version-26.8.1-beta.0 into main
Promote → GitHub / push-github (push) Successful in 5s
CI / build (push) Successful in 11s
Reviewed-on: #9
2026-08-07 21:59:35 +00:00
chrnx aa279c31f1 ci: move the audit off the release gate and onto a schedule
CI / build (pull_request) Failing after 9s
Two advisories landed in this tree in a single day — js-yaml in the morning,
nanoid a couple of hours later. Neither had anything to do with a code change.
A release gated on `npm audit` fails by calendar date, and it fails at the
exact moment there is least time to judge whether a fix is safe.

What ships from here is built HTML, CSS and JS. Astro, js-yaml and nanoid are
build-time tools that never reach a visitor; the advisories in question need
control over build inputs to matter, and an attacker with that has already won.

So the release gate drops to `critical` — a tripwire for the catastrophic case,
not a trigger for routine noise. Nothing is lowered anywhere else: ci.yml still
blocks every PR at moderate, which is where there is time and context to fix.

The new scheduled audit is what makes that safe rather than negligent. Monday
mornings on Gitea, filing an internal issue when something turns up, with a
dedup check so a weekly cron cannot open 52 copies. Learning about a
vulnerability and being unable to publish stop being the same event.

`workflow_dispatch` is included so it can be run and verified on demand.
2026-08-07 16:54:48 -05:00
chrnx 6a19f2981a chore: version 26.8.1-beta.0 and clear the nanoid advisory
CI / build (pull_request) Successful in 12s
v26.8.0-beta.0 was released on 2026-08-03 and `verify:release` requires the
tag to equal `v${package.json.version}` exactly. Re-tagging the same version
would work — `prepare` deletes and recreates the release on purpose — but it
would silently replace the August 3 archive with different content, leaving
two deploys behind one version number and a rollback that means nothing.

CalVer has a patch digit for this, so: 26.8.1-beta.0.

Also bumps nanoid to 3.3.18. GHSA-2v37-7h3g-55p8 (high) was published after
the js-yaml fix landed and would have failed the release audit gate on its
own. Non-breaking, and in scope here since it blocks the very release this
version exists to enable.

Verified: `npm audit --audit-level=moderate` reports 0 vulnerabilities,
`npm run check` passes, `RELEASE_TAG=v26.8.1-beta.0 npm run verify:release`
passes and the old tag is correctly rejected.
2026-08-07 16:49:39 -05:00
chrnx 67a1b48394 Merge pull request 'feat: add privacy-friendly analytics (GoatCounter)' (#7) from feat/analytics into main
Promote → GitHub / push-github (push) Successful in 5s
CI / build (push) Successful in 11s
Reviewed-on: #7
2026-08-07 19:49:02 +00:00
chrnx 9c7eec883c Merge branch 'main' into feat/analytics
CI / build (pull_request) Successful in 11s
2026-08-07 19:48:09 +00:00
chrnx 73f8e1602f Merge pull request 'chore: clear the js-yaml advisory blocking CI' (#8) from chore/js-yaml-advisory into main
Promote → GitHub / push-github (push) Successful in 5s
CI / build (push) Successful in 12s
Reviewed-on: #8
2026-08-07 19:47:57 +00:00
chrnxandClaude Opus 5 68c9f42aed chore: clear the js-yaml advisory blocking CI
CI / build (pull_request) Successful in 11s
CI runs `npm audit --audit-level=moderate`, and js-yaml 4.3.0 — reached
through Astro, several paths deep — carries a high-severity advisory
(GHSA-5p4m-2wfm-xmqj, quadratic CPU consumption in !!omap resolution). Every
PR in this repo is red until it clears.

4.3.1 has the fix and the bump is not breaking, so a plain `npm audit fix`
covers it. No source changes.

Verified: `npm audit --audit-level=moderate` reports 0 vulnerabilities and
`npm run check` (build + verify:build) passes.

The docs site in Green-Tea/core hit the same advisory through Starlight and is
fixed the same way in core#17.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 14:29:30 -05:00
chrnxandClaude Opus 5 ddcb5679ba feat: add privacy-friendly analytics
CI / build (pull_request) Failing after 10s
GoatCounter, same site code as the docs site, so traffic across the marketing
pages and /docs lands in one dashboard with comparable referrer paths.

No cookies, no personal data, no consent banner, nothing to host. It answers
the question we cannot answer today: do the articles convert into
documentation reads?

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 14:04:41 -05:00
chrnx c9159ff1bf Merge pull request 'fix: mark beta site releases as prereleases' (#6) from fix/beta-release-metadata into main
Promote → GitHub / push-github (push) Successful in 5s
CI / build (push) Successful in 12s
Reviewed-on: #6
2026-08-06 16:26:47 +00:00
chrnx 41709bec46 fix: mark beta site releases as prereleases
CI / build (pull_request) Successful in 12s
2026-08-02 23:45:33 -05:00
chrnx 30afa8b630 Merge pull request 'docs: publish Green Tea 26.8.0 beta release' (#5) from feature/26.8.0-beta.0-release into main
Promote → GitHub / push-github (push) Successful in 6s
CI / build (push) Successful in 11s
Reviewed-on: #5
2026-08-03 04:42:22 +00:00
chrnx 3145cbd9da ci: audit site dependencies before release
CI / build (pull_request) Successful in 11s
2026-08-02 23:31:43 -05:00
chrnx be7237d2c2 docs: publish 26.8.0 beta release story 2026-08-02 23:31:19 -05:00
chrnx 4aff5192c5 chore: remediate site dependency advisories 2026-08-02 23:29:43 -05:00
chrnx d4192a3a12 ci: validate site release tag 2026-08-02 23:28:59 -05:00
chrnx 1fe9e19d87 docs: plan site beta release 2026-08-02 23:27:57 -05:00
chrnx 4195c00b63 Merge pull request 'chore: version to CalVer 26.8.0-beta.0' (#4) from chore/calver-26.8.0-beta.0 into main
Promote → GitHub / push-github (push) Successful in 6s
CI / build (push) Successful in 16s
Reviewed-on: #4
2026-08-03 00:34:26 +00:00
chrnx a97ed9fb20 chore: version to CalVer 26.8.0-beta.0
CI / build (pull_request) Successful in 1m7s
Prepare the website artifact for the August beta release after the SEO and performance update.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 19:31:34 -05:00
chrnx cd70472367 Merge pull request 'perf: improve SEO and page performance' (#3) from feature/seo-performance into main
Promote → GitHub / push-github (push) Successful in 10s
CI / build (push) Successful in 18s
Reviewed-on: #3
2026-08-03 00:28:07 +00:00
chrnx fb1e356ccc test: enforce generated SEO contracts
CI / build (pull_request) Successful in 13s
2026-08-02 18:21:38 -05:00
chrnx 7debd362f1 ci: harden release artifact handling 2026-08-02 18:03:15 -05:00
chrnx 17e7abf1c0 ci: verify the GitHub release artifact 2026-08-02 17:57:34 -05:00
chrnx 6437289977 fix: preserve encoded redirects and cache consistency 2026-08-02 17:54:27 -05:00
chrnx b573a0d553 perf: ship Apache caching and HTTPS redirect 2026-08-02 17:44:42 -05:00
chrnx af22bf7f77 perf: self-host heading fonts 2026-08-02 17:37:56 -05:00
chrnx 4b91f67e15 fix: enforce valid Open Graph author URLs 2026-08-02 17:34:57 -05:00
chrnx 2e2326b11e feat: describe blog posts to search engines 2026-08-02 17:29:45 -05:00
chrnx 7ebf194d16 fix: use valid repository metadata 2026-08-02 17:27:52 -05:00
chrnx 0ef916bf56 feat: add structured product metadata 2026-08-02 17:23:32 -05:00
chrnx a97a137136 test: tighten blog metadata contract 2026-08-02 17:21:11 -05:00
chrnx 96a0412531 test: harden generated SEO verification 2026-08-02 17:19:20 -05:00
chrnx a860c04741 test: verify generated SEO metadata 2026-08-02 17:13:36 -05:00
chrnx 70b96dc8a5 chore: ignore local worktrees 2026-08-02 17:10:30 -05:00
chrnx 78fcec0283 docs: plan SEO and performance implementation 2026-08-02 17:08:23 -05:00
chrnx 264ca63833 docs: design SEO and performance improvements 2026-08-02 17:05:10 -05:00
chrnx 464cd5309e Merge pull request 'chore: CalVer version 26.7.0-beta.0' (#2) from chore/calver-version into main
CI / build (push) Successful in 12s
Promote → GitHub / push-github (push) Successful in 6s
Release → dist.tar.gz / package (push) Has been skipped
2026-07-18 20:18:17 +00:00
chrnx b05a6c4fa8 chore: version to CalVer 26.7.0-beta.0
Aligns website with the org-wide CalVer scheme; every package's first tag is v26.7.0-beta.0 (no production yet).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 15:00:16 -05:00
chrnx d24243b23f Merge pull request 'ci: build gate + promote + release workflows (two-forge)' (#1) from chore/ci-workflows into main 2026-07-18 18:53:56 +00:00
chrnx 771617930e ci: bump Node to 22 (Astro 7 requires >=22.12)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 13:51:08 -05:00
chrnx 750e268a9f ci: add build gate + promote + release workflows (two-forge)
ci.yml: astro build on PR/push to main. promote.yml (Gitea-only): mirror main + tags to Expressive-Tea/green-tea-site. release.yml (GitHub-only): on a v* tag, build and attach dist as a .tar.gz to the GitHub release for the cPanel deploy.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 13:47:50 -05:00
chrnx f7473d0338 docs(blog): honest benchmarks — what a real network does to "faster"
Over two real machines the throughput race compresses and the server sits idle; the runtime-agnostic edge (Bun/Deno ~1.6x Node, same app) is the part no Node-only framework can show; and the O(n^2) I found and fixed in my own pipeline while stress-testing.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 19:09:39 -05:00
chrnx 9a34ab0699 feat(site): email launch-list capture with a PHP/MySQL endpoint
A signup form in the closing section posts to subscribe.php (ships in the build): PDO/MySQL, honeypot, idempotent insert, optional mail() notify. DB creds live in a gitignored config kept above the web root; schema and setup in server/.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 19:09:39 -05:00
chrnx b978dacd4f feat(site): sharpen the hero, intent-keyword titles, and a beta FAQ
Hero H1 leads with the differentiator (a graph, not a middleware chain) instead of three adjectives; page titles carry search-intent keywords; a beta-scoped FAQ answers production-readiness, Express migration, performance and dependency questions; the footer credits the Expressive Tea Team.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 19:09:39 -05:00
chrnx a92cc0f82f feat(site): add a How-it-compares table so the difference lands
The landing explained what Green Tea is but never set it beside Express,
Fastify, or NestJS — so 'it's different' was told, not shown, and it read
like one more framework. The core README already carries an honest
comparison; this lifts its most load-bearing rows (pipeline model, does
req.user exist, seeing the pipeline, real-time, runtimes, deps) into a
curated four-column table with the Green Tea column lit.

Responsive: the table scrolls inside its own overflow-x container so the
page body never scrolls sideways on mobile. Copy is pulled from the
verified README rows — nothing new claimed.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 10:35:59 -05:00
chrnx 1869e6c2c3 docs(site): sell real-time and the graph honestly
Two claims a skeptic would catch. RealTime still said 'return an
AsyncIterable' with no mention of declaring the transport — the same
implicit-return the framework now rejects with TransportMismatchError; the
honest version (declare the transport, the contract is never a surprise)
sells harder anyway. And GraphNotChain's 'no one else has the graph' invited
the obvious 'Angular and Nest have a DI graph' — so say the real,
unrefutable thing: they resolve a graph of services, this resolves your
request pipeline. Same fix in the founder post.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 10:16:47 -05:00
chrnx 813f7f88ad docs(site): move to green-tea.expressive-tea.io, docs at /docs
The site hangs off the expressive-tea.io cPanel now, not the placeholder
.dev domain. Docs live at /docs on the same subdomain (a separate build,
not a nested sub-subdomain), so every cross-link to the docs points there.
robots.txt sitemap and the README deploy steps follow — cPanel upload, two
folders, one cert.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 10:13:18 -05:00
chrnx f1afa05349 docs(site): point at the real GitHub org, and admit what the edge can't do
Green Tea ships under the Expressive-Tea org — the framework it grew out
of lives there, and the founder story the launch post tells is easier to
follow when both are in the same house. The green-tea-dev placeholder was
never going to exist.

RunsEverywhere claimed the same src/ runs everywhere, full stop. It
doesn't: the edge has no filesystem, so file-backed views and static
serving don't go. A landing page that oversells gets found out on day
one, and this project's whole pitch is that it tells you the truth.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 09:36:57 -05:00
chrnx 7f8980b958 fix: post date off-by-one and inconsistent placeholder links
Post/blog-index dates formatted pubDate in the local timezone, so a
UTC-midnight date like 2026-07-10 rendered as July 9 anywhere west
of UTC. Format with timeZone: 'UTC' to match the stored date.

Also normalizes the npm package to @green-tea/core everywhere (Header
and Footer still pointed at @expressive-tea/core) and settles on a
single GitHub placeholder (https://github.com/green-tea-dev/green-tea)
across Header, Footer, Hero, and HonestBeta — documented in the README
as unconfirmed until launch. Docs CTAs in Hero and HonestBeta now open
in a new tab with rel="noopener noreferrer", matching Header/Footer.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-10 19:21:26 -05:00
chrnx 2907b1e148 polish: 404 page, branded OG image, robots.txt, README
Rounds out the site for launch: a calm branded 404 (with the graph
motif and a way back home), a proper 1200x630 OG/Twitter card so
shared links look right, robots.txt pointing at the sitemap, and a
README covering local dev and the manual Cloudflare Pages deploy
flow (no deploy CI is configured).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-10 19:21:18 -05:00
chrnx 48736d3c4d content(blog): launch post — why I rebuilt my framework
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-10 19:15:24 -05:00
chrnx 4a05f364fd feat(blog): content collection, index, post layout, RSS
Adds the blog system ahead of the launch post: a zod-typed `blog`
content collection (content layer glob loader), a card-list index
with a calm empty state, the post route/layout with reading time,
and an RSS feed — all wired to the existing Base shell and palette.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-10 19:11:19 -05:00
chrnx adca1c5bdf feat: landing page — the pitch (graph, runtime-agnostic, real-time, batteries)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-10 19:02:25 -05:00
chrnx 6e1888b8ff chore: scaffold Astro site + brand shell (header, footer, layout, motif)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-10 18:52:47 -05:00
28 changed files with 1728 additions and 144 deletions

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
name: Dependency audit
# Weekly, on GITEA ONLY — this is maintenance, so it belongs in the internal tracker.
#
# This is the counterpart that makes release.yml's relaxed gate safe rather than
# negligent. Advisories still get found; they just arrive as an issue on Monday
# morning instead of as a failed release on a Friday afternoon. Learning about a
# vulnerability and being unable to publish should not be the same event.
on:
schedule:
- cron: '0 13 * * 1' # Mondays, 07:00 America/Mexico_City
workflow_dispatch: # so it can be run — and tested — on demand
jobs:
audit:
if: ${{ github.server_url != 'https://github.com' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm ci
- name: Audit
id: audit
run: |
if npm audit --audit-level=moderate > audit.txt 2>&1; then
echo 'clean=true' >> "$GITHUB_OUTPUT"
else
echo 'clean=false' >> "$GITHUB_OUTPUT"
fi
cat audit.txt
- name: File an issue
if: steps.audit.outputs.clean == 'false'
env:
GT_TOKEN: ${{ github.token }}
API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
TITLE: 'Dependency advisories: npm audit is failing'
run: |
set -eu
# One open issue at a time. A weekly cron must not file 52 duplicates.
open=$(curl -sSL -H "Authorization: token $GT_TOKEN" \
"$API/issues?state=open&type=issues" \
| jq --arg t "$TITLE" '[.[] | select(.title == $t)] | length')
if [ "$open" != "0" ]; then
echo "An issue is already open. Nothing to file."
exit 0
fi
body=$(printf '`npm audit --audit-level=moderate` failed on the scheduled run.\n\nThe release gate does not fail on this by design — see the comment in `release.yml`. A static site ships built HTML, not `node_modules`, so a build-time advisory does not reach a visitor. This issue is how it reaches you instead.\n\nFix it in a normal PR, on your own schedule.\n\n```\n%s\n```\n' "$(head -c 4000 audit.txt)")
jq -n --arg t "$TITLE" --arg b "$body" '{title: $t, body: $b}' \
| curl -sS -X POST -H "Authorization: token $GT_TOKEN" \
-H 'Content-Type: application/json' -d @- "$API/issues" > /dev/null
echo "Issue filed."
+5 -1
View File
@@ -7,6 +7,9 @@ on:
push:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
@@ -16,4 +19,5 @@ jobs:
with:
node-version: '22'
- run: npm ci
- run: npm run build
- run: npm audit --audit-level=moderate
- run: npm run check
+22 -3
View File
@@ -10,17 +10,36 @@ on:
jobs:
package:
if: ${{ github.server_url == 'https://github.com' }}
permissions:
contents: write
runs-on: ubuntu-latest
env:
ARCHIVE_NAME: green-tea-site-${{ github.ref_name }}.tar.gz
RELEASE_TAG: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Validate release tag
run: npm run verify:release
- run: npm ci
- run: npm run build
# Deliberately `critical`, not `moderate`. npm audit reads a live advisory feed,
# so a release gated on it fails by calendar date rather than by anything the
# release changed — and it fails at the exact moment there is least time to judge
# whether a fix is safe. What ships here is built HTML, CSS and JS: Astro, js-yaml
# and friends are build-time tools that never reach a visitor. `critical` keeps a
# tripwire for the catastrophic case without breaking releases on routine noise.
# Moderate and up still gate every PR in ci.yml, and audit.yml files an issue on a
# schedule, so advisories still surface — just not as a broken release.
- run: npm audit --audit-level=critical
- run: npm run check
- name: Package dist/
run: tar -czf "green-tea-site-${{ github.ref_name }}.tar.gz" -C dist .
run: tar -czf "$ARCHIVE_NAME" -C dist .
- name: Verify .htaccess in archive
run: tar -tzf "$ARCHIVE_NAME" | grep -Fx './.htaccess'
- name: Attach to GitHub release
uses: softprops/action-gh-release@v2
with:
files: green-tea-site-${{ github.ref_name }}.tar.gz
prerelease: true
files: ${{ env.ARCHIVE_NAME }}
+3
View File
@@ -11,6 +11,9 @@ node_modules/
.superpowers/
.specs/
# isolated feature worktrees
.worktrees/
# environment variables
.env
.env.production
@@ -0,0 +1,72 @@
# SEO and performance improvement design
Date: 2026-08-02
## Goal
Make the public site easier for search engines to understand and faster on a cold mobile load. Preserve the current visual design, static Astro architecture, and two-forge release flow.
## Baseline
Lighthouse 13 measured the deployed home page at 96 performance, 96 accessibility, 100 best practices, and 100 SEO on mobile. The desktop scores were 95, 96, 100, and 100. Mobile FCP and LCP were 2.3 seconds, TBT was 0 milliseconds, and CLS was 0.001.
The audit found five material gaps:
- Google Fonts blocks rendering and accounts for about 990 milliseconds of estimated savings.
- Hashed CSS and SVG assets have no explicit browser cache lifetime.
- HTTP serves a second working copy instead of redirecting to HTTPS.
- Pages lack product and article structured data.
- Two text treatments fail WCAG color contrast checks.
The sitemap, canonical URLs, robots file, HTTPS pages, and real 404 status already work.
## Design
### Metadata and structured data
Extend `Base.astro` with explicit page type, robots, publication metadata, and JSON-LD inputs. The home page will describe Green Tea as a software application and website. Blog posts will emit `BlogPosting` data, `og:type=article`, publication and modification dates, author, and tags. The 404 page will emit `noindex, follow`.
Keep canonical URLs derived from `Astro.site`. Serialize structured data from trusted build-time objects and render it as an `application/ld+json` script.
### Font delivery and accessibility
Remove the Google Fonts stylesheet from the page and unused Starlight brand imports from the marketing site's global CSS. Host only the WOFF2 files required for Zen Maru Gothic weights 500 and 700 under `public/fonts`, declare them with `font-display: swap`, and preload only the heading face needed above the fold.
Adjust the muted runtime caveat and syntax-comment colors until Lighthouse reports sufficient contrast. Do not change layout, spacing, copy, or component structure.
### Apache behavior
Add `public/.htaccess` so Astro copies it to `dist/.htaccess`. It will:
- redirect HTTP requests to the same HTTPS URL;
- assign a long immutable cache lifetime to hashed `/_astro/` assets;
- assign shorter cache lifetimes to fonts and static images;
- enable compression when the host provides `mod_deflate` or `mod_brotli`;
- avoid changing routes or the existing 404 behavior.
Every directive that depends on an optional Apache module will use an `IfModule` guard. The release must remain compatible with the current cPanel Apache host.
### Release boundary
GitHub remains the only forge that packages a production artifact. `.github/workflows/release.yml` already restricts its package job to `github.com` and creates `green-tea-site-<tag>.tar.gz` with `tar -C dist .`, which includes dotfiles.
Add a release validation step after the build that fails unless `dist/.htaccess` exists. Gitea will continue to run the shared build gate and promotion workflow, but it will not package or publish a release artifact.
## Verification
Run a clean production build and verify:
- `dist/.htaccess` exists and appears in a locally created tar listing;
- every indexable page has one canonical URL, description, and valid JSON-LD;
- the 404 page has `noindex, follow`;
- the sitemap lists only indexable public pages;
- no generated page requests Google Fonts;
- internal production links return expected statuses;
- Lighthouse mobile and desktop improve or hold their baseline scores;
- Lighthouse reports no automated SEO or contrast failures.
The final report will separate local build results from behavior that requires the new artifact to be deployed on Apache.
## Non-goals
This change will not redesign the site, add analytics, create keyword-stuffed copy, submit the site to Search Console, modify the documentation build under `/docs`, or create release archives in Gitea.
@@ -0,0 +1,366 @@
# SEO and Performance Improvements Implementation Plan
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
**Goal:** Improve search-engine metadata, remove the render-blocking font dependency, fix automated contrast failures, and ship Apache redirects and caching inside the GitHub release artifact.
**Architecture:** Keep Astro's static output and extend the existing base layout with typed metadata and build-time JSON-LD. Vendor the two Latin WOFF2 font files, copy Apache configuration from `public/`, and verify generated HTML with a dependency-free Node script. Preserve the shared Gitea/GitHub build gate while keeping production packaging exclusive to GitHub.
**Tech Stack:** Astro 7, TypeScript, plain CSS, Node.js assertions, Apache `.htaccess`, GitHub Actions, Lighthouse 13.
---
### Task 1: Add a failing generated-site verifier
**Files:**
- Create: `scripts/verify-build.mjs`
- Modify: `package.json`
**Step 1: Create the verifier**
Write a Node script that reads `dist/index.html`, `dist/404.html`, the blog index, and every generated blog post. Use `node:assert/strict` to require:
- one canonical URL and one meta description per HTML page;
- parseable JSON-LD on the home page and each blog post;
- `SoftwareApplication` in the home JSON-LD graph;
- `BlogPosting`, article Open Graph metadata, dates, and author on each post;
- `noindex, follow` on the 404 page;
- no reference to `fonts.googleapis.com` or `fonts.gstatic.com`;
- a generated `dist/.htaccess` file.
The script should end with `Verified generated SEO and deploy metadata.` and exit nonzero on the first failed assertion.
**Step 2: Add build-check scripts**
Add these entries to `package.json`:
```json
"check": "npm run build && npm run verify:build",
"verify:build": "node scripts/verify-build.mjs"
```
**Step 3: Run the verifier against the current build**
Run: `npm run build && npm run verify:build`
Expected: FAIL because the current output has no JSON-LD and no `dist/.htaccess`.
**Step 4: Commit the failing verifier**
```bash
git add package.json scripts/verify-build.mjs
git commit -m "test: verify generated SEO metadata"
```
### Task 2: Add typed global and home-page SEO metadata
**Files:**
- Modify: `src/layouts/Base.astro`
- Modify: `src/pages/index.astro`
**Step 1: Extend the base layout contract**
Add these optional props:
```ts
type OpenGraphType = 'website' | 'article';
type StructuredData = Record<string, unknown>;
interface Props {
title?: string;
description?: string;
image?: string;
ogType?: OpenGraphType;
robots?: string;
publishedTime?: Date;
updatedTime?: Date;
author?: string;
tags?: string[];
structuredData?: StructuredData;
}
```
Default `ogType` to `website` and `robots` to `index, follow`. Convert the canonical and image URLs to strings before using them in metadata.
Emit:
```astro
<meta name="robots" content={robots} />
<meta property="og:type" content={ogType} />
{
ogType === 'article' && (
<>
{publishedTime && <meta property="article:published_time" content={publishedTime.toISOString()} />}
{updatedTime && <meta property="article:modified_time" content={updatedTime.toISOString()} />}
{author && <meta property="article:author" content={author} />}
{tags?.map((tag) => <meta property="article:tag" content={tag} />)}
</>
)
}
{structuredData && (
<script
type="application/ld+json"
set:html={JSON.stringify(structuredData).replace(/</g, '\\u003c')}
/>
)}
```
Keep the existing title, description, canonical, Open Graph image, Twitter card, RSS, favicon, and generator metadata.
**Step 2: Add home-page JSON-LD**
In `src/pages/index.astro`, construct a single `@context` object with an `@graph` containing:
- a `WebSite` node with the canonical URL, name, and page description;
- a `SoftwareApplication` node with name, description, application category, cross-platform operating system, canonical URL, repository URL, MIT license URL, and a zero-price `Offer`.
Pass that object through `structuredData` on `<Base>`.
**Step 3: Build and inspect the home page**
Run: `npm run build`
Expected: PASS. `dist/index.html` contains one canonical tag, `robots=index, follow`, and parseable JSON-LD containing `WebSite` and `SoftwareApplication`.
**Step 4: Commit global and home metadata**
```bash
git add src/layouts/Base.astro src/pages/index.astro
git commit -m "feat: add structured product metadata"
```
### Task 3: Add article metadata and exclude the 404 page
**Files:**
- Modify: `src/layouts/Post.astro`
- Modify: `src/pages/404.astro`
**Step 1: Construct article JSON-LD**
In `Post.astro`, derive absolute canonical and hero-image URLs from `Astro.url.pathname` and `Astro.site`. Create a `BlogPosting` object containing:
```ts
const structuredData = {
'@context': 'https://schema.org',
'@type': 'BlogPosting',
headline: title,
description,
image: absoluteHeroImage,
datePublished: pubDate.toISOString(),
dateModified: (updatedDate ?? pubDate).toISOString(),
author: { '@type': 'Person', name: author },
publisher: { '@type': 'Organization', name: 'Expressive Tea Team' },
mainEntityOfPage: canonicalURL,
keywords: tags?.join(', '),
};
```
Pass `ogType="article"`, dates, author, tags, and `structuredData` to `Base`.
**Step 2: Mark the 404 page for exclusion**
Pass `robots="noindex, follow"` to `Base` in `src/pages/404.astro`.
**Step 3: Build and inspect posts and 404 output**
Run: `npm run build`
Expected: PASS. Each post contains article metadata and parseable `BlogPosting` JSON-LD. `dist/404.html` contains `noindex, follow` and no indexable structured-data entity.
**Step 4: Commit article and 404 metadata**
```bash
git add src/layouts/Post.astro src/pages/404.astro
git commit -m "feat: describe blog posts to search engines"
```
### Task 4: Self-host the heading font and fix contrast
**Files:**
- Create: `public/fonts/zen-maru-gothic-latin-500.woff2`
- Create: `public/fonts/zen-maru-gothic-latin-700.woff2`
- Create: `public/fonts/OFL.txt`
- Modify: `src/layouts/Base.astro`
- Modify: `src/styles/global.css`
- Modify: `src/components/sections/RunsEverywhere.astro`
- Modify: `src/components/sections/SeeIt.astro`
**Step 1: Vendor the exact Latin font files**
Download the Google Fonts v19 Latin WOFF2 assets and the Zen Maru Gothic OFL license. Record and verify these SHA-256 hashes:
```text
2c5953da616e5e6dcad34ae8b744f7e759f1647c041389681fa2360908508d55 zen-maru-gothic-latin-500.woff2
9d65f92a3e11edcef9d73694b5b73cb6888243aee54e8034b162eb368c6ff3ed zen-maru-gothic-latin-700.woff2
```
**Step 2: Declare local font faces**
Remove `@import './brand.css';` from `src/styles/global.css`. Add two `@font-face` rules using the local files, `font-style: normal`, weights 500 and 700, `font-display: swap`, and the Latin unicode range supplied by Google Fonts.
The detached `src/styles/brand.css` belongs to the separate Starlight docs theme and must not load in this marketing build.
**Step 3: Remove the external font connection**
Delete the Google Fonts preconnect and stylesheet tags from `Base.astro`. Add one preload:
```astro
<link
rel="preload"
href="/fonts/zen-maru-gothic-latin-700.woff2"
as="font"
type="font/woff2"
crossorigin
/>
```
**Step 4: Fix both Lighthouse contrast findings**
Remove `opacity: 0.75` from `.runs__caveat` so it inherits the accessible `--dim` color at full opacity. Change the Astro `Code` theme in `SeeIt.astro` from `github-dark` to `github-dark-high-contrast`.
**Step 5: Build and check output dependencies**
Run: `npm run build && ! rg 'fonts\\.(googleapis|gstatic)\\.com' dist`
Expected: PASS. The font files exist under `dist/fonts`, and no generated page references Google-hosted fonts.
**Step 6: Commit font and contrast changes**
```bash
git add public/fonts src/layouts/Base.astro src/styles/global.css \
src/components/sections/RunsEverywhere.astro src/components/sections/SeeIt.astro
git commit -m "perf: self-host heading fonts"
```
### Task 5: Ship Apache behavior in the static build
**Files:**
- Create: `public/.htaccess`
**Step 1: Add the canonical HTTPS redirect**
Use `mod_rewrite` under `IfModule`. When `%{HTTPS}` is not `on`, redirect with status 301 to `https://green-tea.expressive-tea.io%{REQUEST_URI}`. Use `NE` and `L` flags.
**Step 2: Add guarded caching and compression**
Under guarded `mod_expires` and `mod_headers` blocks:
- cache fingerprinted CSS, JavaScript, SVG, and image assets for one year with `immutable`;
- cache WOFF2 files for one year;
- cache ordinary images and icons for seven days;
- mark HTML as immediately stale with `public, max-age=0, must-revalidate`.
Use `mod_deflate` for HTML, CSS, JavaScript, JSON, XML, SVG, and plain text. Do not add rewrites for Astro routes.
**Step 3: Verify Astro copies the dotfile**
Run: `npm run check`
Expected: PASS and print `Verified generated SEO and deploy metadata.` Confirm `test -f dist/.htaccess` exits zero.
**Step 4: Commit Apache configuration**
```bash
git add public/.htaccess
git commit -m "perf: ship Apache caching and HTTPS redirect"
```
### Task 6: Keep packaging exclusive to GitHub and enforce the artifact contract
**Files:**
- Modify: `.github/workflows/ci.yml`
- Modify: `.github/workflows/release.yml`
**Step 1: Run generated-output checks in the shared build gate**
Replace `npm run build` with `npm run check` in `ci.yml`. This check may run on GitHub and Gitea; it creates no release artifact.
**Step 2: Verify the release archive in the GitHub-only job**
Keep the existing job condition:
```yaml
if: ${{ github.server_url == 'https://github.com' }}
```
Replace the release build command with `npm run check`. After packaging, add:
```yaml
- name: Verify package contents
run: tar -tzf "green-tea-site-${{ github.ref_name }}.tar.gz" | grep -Fx './.htaccess'
```
Do not change `.github/workflows/promote.yml` and do not add a Gitea artifact job.
**Step 3: Inspect the workflow diff**
Run: `git diff --check && git diff -- .github/workflows/ci.yml .github/workflows/release.yml`
Expected: both workflows use `npm run check`; only `release.yml` contains `tar`, `softprops/action-gh-release`, and the `github.com` job guard.
**Step 4: Commit workflow verification**
```bash
git add .github/workflows/ci.yml .github/workflows/release.yml
git commit -m "ci: verify the GitHub release artifact"
```
### Task 7: Run final build and Lighthouse verification
**Files:**
- Modify if needed: files changed in Tasks 1-6
**Step 1: Run repository checks**
Run:
```bash
npm run check
git diff --check
```
Expected: both commands pass.
**Step 2: Reproduce the GitHub archive locally**
Run:
```bash
tar -czf /tmp/green-tea-site-seo-audit.tar.gz -C dist .
tar -tzf /tmp/green-tea-site-seo-audit.tar.gz | grep -Fx './.htaccess'
```
Expected: `./.htaccess`.
**Step 3: Serve the production build**
Run: `npm run preview -- --host 127.0.0.1`
Keep the preview process running for the next two steps.
**Step 4: Run mobile Lighthouse**
Run Lighthouse 13 against `http://127.0.0.1:4321/` with mobile simulated throttling and JSON output.
Expected: 100 SEO, 100 best practices, no color-contrast failure, no Google Fonts request, TBT of 0 milliseconds, and performance at or above the deployed baseline of 96 when measured under equivalent settings.
**Step 5: Run desktop Lighthouse**
Run Lighthouse 13 with the desktop preset.
Expected: 100 SEO, 100 best practices, no color-contrast failure, and performance at or above the deployed baseline of 95 when measured under equivalent settings.
**Step 6: Inspect generated metadata and Git state**
Run:
```bash
rg -n 'application/ld\\+json|article:published_time|noindex, follow' dist/index.html dist/blog dist/404.html
git status --short --branch
```
Expected: all metadata is present and only intentional changes remain.
**Step 7: Commit any verification-driven correction**
If Lighthouse required a correction, stage only that correction and commit it with a focused message. Do not create an empty verification commit.
@@ -0,0 +1,46 @@
# Green Tea Site 26.8.0-beta.0 Release Design
## Goal
Publish an accurate release story for Green Tea `26.8.0-beta.0` and make the
site artifact impossible to tag with a version that disagrees with
`package.json`.
## Release flow
Development happens on `feature/26.8.0-beta.0-release` in Gitea. A pull request
merges the branch into Gitea `main`; the existing promotion workflow mirrors
that commit to GitHub. Only after promotion is complete is
`v26.8.0-beta.0` created on GitHub. The GitHub tag builds and attaches
`green-tea-site-v26.8.0-beta.0.tar.gz` to the release.
No tag is created in Gitea and no `develop` branch is introduced for this site.
## Content
The release post will explain the safe constrained-route subset, deterministic
route precedence, strict path validation, HEAD and OPTIONS semantics, OpenAPI
projection, runtime parity, and dependency remediation. It will explicitly say
that route matching remains a linear scan and that a radix tree is future work.
Landing-page corrections stay narrow: name the four validated targets instead
of claiming every JavaScript runtime, distinguish zero validation-library
dependencies from the single runtime dependency, and qualify transport security
features that differ by runtime.
## Release integrity and security
A dependency-free Node script will compare the GitHub tag to
`v${package.json.version}`. Unit tests cover a matching tag, a mismatched version,
and malformed/missing tags. The GitHub release workflow will run this guard
before packaging.
Astro and MDX will receive compatible updates that pull patched PostCSS, SVGO,
and XML-parser transitives. Gitea/GitHub CI and the GitHub release will run
`npm audit --audit-level=moderate` after `npm ci`.
## Validation
The release branch must pass the tag-guard tests, a clean npm audit, the Astro
build, generated SEO/deploy checks, workflow syntax inspection, and a final
review of all changed claims against the core `26.8.0-beta.0` changelog and docs.
+140
View File
@@ -0,0 +1,140 @@
# Green Tea Site 26.8.0-beta.0 Release Implementation Plan
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
**Goal:** Publish an accurate `26.8.0-beta.0` release post, align site claims with the core, remediate site dependency advisories, and enforce tag/package version agreement.
**Architecture:** Keep the existing Gitea-main-to-GitHub promotion unchanged. Add a small dependency-free release metadata guard, wire security gates into existing workflows, and rely on Astro's content collection plus the existing generated-site verifier for the new post.
**Tech Stack:** Astro 7, MDX, Node.js 22, `node:test`, npm, Gitea Actions, GitHub Actions.
---
### Task 1: Guard release version metadata
**Files:**
- Create: `scripts/verify-release-tag.mjs`
- Create: `scripts/verify-release-tag.test.mjs`
- Modify: `package.json`
- Modify: `.github/workflows/release.yml`
**Step 1: Write failing tests**
Test that `assertReleaseTag('v26.8.0-beta.0', '26.8.0-beta.0')` succeeds and that missing `v`, a different version, a slash, or an empty tag throws an error naming the expected tag.
**Step 2: Verify RED**
Run: `node --test scripts/verify-release-tag.test.mjs`
Expected: FAIL because `verify-release-tag.mjs` does not exist.
**Step 3: Implement the guard**
Export `assertReleaseTag(tag, version)`, load `package.json` when run as a script, and require exact equality with `v${version}`. Add `verify:release` and `test` scripts, then replace the workflow's slash-only shell check with `npm run verify:release`.
**Step 4: Verify GREEN**
Run: `npm test`
Expected: all release-tag tests pass.
### Task 2: Remediate dependency advisories
**Files:**
- Modify: `package.json`
- Modify: `package-lock.json`
**Step 1: Capture the vulnerable baseline**
Run: `npm audit --audit-level=moderate`
Expected: FAIL with advisories for Astro, PostCSS, SVGO, and fast-xml-parser.
**Step 2: Apply compatible updates**
Update Astro to `^7.1.6` and `@astrojs/mdx` to `^7.0.5`, regenerating the lockfile without changing the site's CalVer.
**Step 3: Verify remediation**
Run: `npm audit --audit-level=moderate`
Expected: 0 vulnerabilities.
### Task 3: Align landing-page claims
**Files:**
- Modify: `src/components/sections/Hero.astro`
- Modify: `src/components/sections/Batteries.astro`
- Modify: `src/components/sections/RunsEverywhere.astro`
**Step 1: Replace over-broad claims**
Name Node, Deno, Bun, and Cloudflare Workers explicitly; say that validation adds no validator dependency to core; qualify native TLS as a Node-adapter capability.
**Step 2: Review against core documentation**
Compare every changed sentence with `../green-tea/README.md`, `CHANGELOG.md`, and runtime/security guides.
### Task 4: Publish the release post
**Files:**
- Create: `src/content/blog/green-tea-26-8-0-beta-0.mdx`
**Step 1: Write the release narrative**
Use English to match the site. Cover safe constrained parameters, static-to-catch-all precedence, rejected repeated slashes and malformed encoding, HEAD/OPTIONS behavior, OpenAPI patterns, four runtime targets, and dependency audit work.
**Step 2: State beta limits explicitly**
Document that constraints are a bounded safe subset rather than arbitrary regex, matching is still a linear scan, and a radix tree remains post-beta work.
**Step 3: Verify generated content**
Run: `npm run check`
Expected: the new post route builds and generated SEO/deploy metadata verifies.
### Task 5: Enforce supply-chain checks in automation
**Files:**
- Modify: `.github/workflows/ci.yml`
- Modify: `.github/workflows/release.yml`
**Step 1: Add audit gates**
Run `npm audit --audit-level=moderate` after `npm ci` in CI and immediately before the release build.
**Step 2: Preserve forge boundaries**
Confirm CI remains dual-forge, promotion remains Gitea-only, and release remains GitHub-only on `v*` tags.
### Task 6: Final verification and handoff
**Files:**
- Review: all changed files
**Step 1: Run complete verification**
Run: `npm ci && npm test && npm audit --audit-level=moderate && npm run check`
Expected: clean install, all tests pass, 0 vulnerabilities, site and metadata checks pass.
**Step 2: Exercise tag validation**
Run: `RELEASE_TAG=v26.8.0-beta.0 npm run verify:release`
Expected: exact version accepted.
Run: `RELEASE_TAG=v26.8.0-beta.1 npm run verify:release`
Expected: non-zero exit and a message expecting `v26.8.0-beta.0`.
**Step 3: Review Git state**
Run: `git diff --check && git status --short && git diff --stat`
Expected: no whitespace errors and only planned files changed.
**Step 4: Commit and publish branch**
Create focused commits without co-author trailers, push `feature/26.8.0-beta.0-release` to Gitea, and open a PR to `main`. Do not create the GitHub release tag until promotion completes.
+136 -117
View File
@@ -1,46 +1,46 @@
{
"name": "green-tea-site",
"version": "26.7.0-beta.0",
"version": "26.8.1-beta.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "green-tea-site",
"version": "26.7.0-beta.0",
"version": "26.8.1-beta.0",
"dependencies": {
"@astrojs/mdx": "^7.0.2",
"@astrojs/mdx": "^7.0.5",
"@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.3",
"astro": "^7.0.7"
"astro": "^7.1.6"
},
"engines": {
"node": ">=22.12.0"
}
},
"node_modules/@astrojs/compiler-binding": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.1.tgz",
"integrity": "sha512-DaAUj29AIBU2XdJ8uwcab8lW5O2pk9pY8AXkcMw0sw77nVa3oeTYRcO+Dvbbpoexf6ThMc0FMWYCQ/wN1/T7oQ==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.2.tgz",
"integrity": "sha512-8w/9CWmYrAJJ8N0SY3O43ws2BgxoW6u3QsD8u2mE140lMYAlwh+tlNoUeSBq22wVheFuiBbR212l6ixZ2IIgCQ==",
"license": "MIT",
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"optionalDependencies": {
"@astrojs/compiler-binding-darwin-arm64": "0.3.1",
"@astrojs/compiler-binding-darwin-x64": "0.3.1",
"@astrojs/compiler-binding-linux-arm64-gnu": "0.3.1",
"@astrojs/compiler-binding-linux-arm64-musl": "0.3.1",
"@astrojs/compiler-binding-linux-x64-gnu": "0.3.1",
"@astrojs/compiler-binding-linux-x64-musl": "0.3.1",
"@astrojs/compiler-binding-wasm32-wasi": "0.3.1",
"@astrojs/compiler-binding-win32-arm64-msvc": "0.3.1",
"@astrojs/compiler-binding-win32-x64-msvc": "0.3.1"
"@astrojs/compiler-binding-darwin-arm64": "0.3.2",
"@astrojs/compiler-binding-darwin-x64": "0.3.2",
"@astrojs/compiler-binding-linux-arm64-gnu": "0.3.2",
"@astrojs/compiler-binding-linux-arm64-musl": "0.3.2",
"@astrojs/compiler-binding-linux-x64-gnu": "0.3.2",
"@astrojs/compiler-binding-linux-x64-musl": "0.3.2",
"@astrojs/compiler-binding-wasm32-wasi": "0.3.2",
"@astrojs/compiler-binding-win32-arm64-msvc": "0.3.2",
"@astrojs/compiler-binding-win32-x64-msvc": "0.3.2"
}
},
"node_modules/@astrojs/compiler-binding-darwin-arm64": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.1.tgz",
"integrity": "sha512-IEmEF2fUIlTHtpeE/isyEGVOB14cEyh/LZOFYt6wn3jNyVpdC8aR5OZ+RzFUR/f+8ZDM1LaMwZKvoA7eMyJeFw==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.2.tgz",
"integrity": "sha512-MM8tn8CSimcfytaOla4b6acN8mKWiL/rlAA1fpT3/Wl7dNGSE4y8FjTN/zJVNnb63CsLWG5zZwCt01TXtDKh9g==",
"cpu": [
"arm64"
],
@@ -54,9 +54,9 @@
}
},
"node_modules/@astrojs/compiler-binding-darwin-x64": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.1.tgz",
"integrity": "sha512-GF2kIxjpPDLsn94zbZNMsxEmkU828QqnmM7kiQJnaooS3jmI+I7kk6+oI6EpwOsK3femCMdcm+wmOsEqtGrmjQ==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.2.tgz",
"integrity": "sha512-2lXOlzf8xb7jLomRsf/aswh61/NnGusynB2OwFkK6k4pmOtpfXMYnG0PLfXrEvxXYj69NdCnmUYXtHDd+JOOag==",
"cpu": [
"x64"
],
@@ -70,9 +70,9 @@
}
},
"node_modules/@astrojs/compiler-binding-linux-arm64-gnu": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.1.tgz",
"integrity": "sha512-XJL3SDmOtVrqFhCirNcHwE91+IesJqlgNo23I4qW9QUYfwzm/TBZuH61fgqsb1ttgR1mMYz6ooPWs0JDhwMqpQ==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.2.tgz",
"integrity": "sha512-BmU3kWj7qnLrd4vzm49zFEPJ5oFnn1tCT4Vt9hZbqdU5Cmb8GZl7fn6VFsnNfe7B18a2gIFtVzbLINtYl5kBjQ==",
"cpu": [
"arm64"
],
@@ -86,9 +86,9 @@
}
},
"node_modules/@astrojs/compiler-binding-linux-arm64-musl": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.1.tgz",
"integrity": "sha512-xqE8BVbDoBueK/B47w30PtkVofUWJKGkwoMVE+EOMLf11rnoANxIAdA9FPqY+rng4oNI5ndHGsri1yPj2k8vZQ==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.2.tgz",
"integrity": "sha512-f0heT9ZZEseSu5bHCeb80eL2DH07ArE6U9xi1WT/PEusNjzPmEr3GJsjG1tRLo5VYUUYX7h3ScaqGmGrMOVGmw==",
"cpu": [
"arm64"
],
@@ -102,9 +102,9 @@
}
},
"node_modules/@astrojs/compiler-binding-linux-x64-gnu": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.1.tgz",
"integrity": "sha512-1y0StU1qiCuDFH3rmbRJXcxdfHxFPrES1Rd+RLffosvUR7I2cH5SF5SFnBN9vXpzpkmyElZm3Yr47iJBPN7vVA==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.2.tgz",
"integrity": "sha512-M8fOUt0itRpqiGyoEA/ij184s8O+hqbCz3+YozRusOOM3osgGljpDThhbKAJjqh82wOo6FioQ4w8PBvU1XMD5Q==",
"cpu": [
"x64"
],
@@ -118,9 +118,9 @@
}
},
"node_modules/@astrojs/compiler-binding-linux-x64-musl": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.1.tgz",
"integrity": "sha512-16q0fYf7kpbmdObZEeZJEup8hQv/whgNwVjrSvT8umrKwLDSnNIWiQpm09lQQu6bweZB0XyIvHwlPitvJhC+hg==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.2.tgz",
"integrity": "sha512-/Kebk8sO6HnLeSd691JkaAPfN7CqR9/KEXmWvyNPkaKNGmj8rTZ/lf2uXtnPu92Lan84UrKdIKVPy1fSo2encQ==",
"cpu": [
"x64"
],
@@ -134,25 +134,25 @@
}
},
"node_modules/@astrojs/compiler-binding-wasm32-wasi": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.1.tgz",
"integrity": "sha512-cB456shIwDv/PrVT+2QG7LFndpHkVge5HjqADKZgGaAc9JHVktCtjSrcdkRQ+3tbkPazNKaTLRjXLIiz2NIx9g==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.2.tgz",
"integrity": "sha512-pUA6xbcOSB7DhfzIArB8BCAkFfAIqriiR7zl5zOStd6oU2G0kIKj+GUdGnyXyhfiv881Hffyk5tC0mR18sDjDw==",
"cpu": [
"wasm32"
],
"license": "MIT",
"optional": true,
"dependencies": {
"@napi-rs/wasm-runtime": "^1.1.6"
"@napi-rs/wasm-runtime": "^1.2.0"
},
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/@astrojs/compiler-binding-win32-arm64-msvc": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.1.tgz",
"integrity": "sha512-ur/9+If/yTE69mmeX5MqSZndL0HOyx67GeNZUy3N7wVdWpLz9UTJXwyWS4UR2PUQHitghjsM5xoX0Ge56WRVQQ==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.2.tgz",
"integrity": "sha512-ESruf+6Qkl1trHUFxI6GSf6t52j8yN2kCNSzMWdzt7V/T09tFHrYzrVaJQohb2C9bJUH76pNvX6Zb51+xCQc9Q==",
"cpu": [
"arm64"
],
@@ -166,9 +166,9 @@
}
},
"node_modules/@astrojs/compiler-binding-win32-x64-msvc": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.1.tgz",
"integrity": "sha512-k0W+kDBzDkNZOqu4kElDvCOIbKw5Ut9S1WZ1Krj3KTgNuBERNKXsMMsRLLcbgfdMdbe7bTekQLshZrrvmYpmwA==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.2.tgz",
"integrity": "sha512-wzzVrEbOwbsLWOdEbocskjMRx2aZPxJ7ZbmL+jnpBamFwmigm+2M/wzuM6JWncocgYwLic1csSpalBh96kQKXA==",
"cpu": [
"x64"
],
@@ -182,26 +182,26 @@
}
},
"node_modules/@astrojs/compiler-rs": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.1.tgz",
"integrity": "sha512-aT7xkgsbNoS6nriY5qKpbihK43slFHO41iqgHCTdOvn1ifaQxLCc5yXy+6GzAtiafoaC1zA7OwVXCXMsvUZOkg==",
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.2.tgz",
"integrity": "sha512-xlx/T7JovIKduu4ucbTQUxQ5+Q8wxkHxhLjnZk3VlJbhbQ9RLvvuDk1p2YYFYFQ5y14dVm3FGGO4isQXa4F+Tg==",
"license": "MIT",
"dependencies": {
"@astrojs/compiler-binding": "0.3.1"
"@astrojs/compiler-binding": "0.3.2"
},
"engines": {
"node": ">=22.12.0"
}
},
"node_modules/@astrojs/internal-helpers": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.1.tgz",
"integrity": "sha512-5phcroT/vmOOrYuuAxtkbPixy5hePtlz9i8K4OeDv3dNK6/UQRuXPOSRTxIOBbUY5Sonw2UaxjbuVc43Mcir6Q==",
"version": "0.10.2",
"resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.2.tgz",
"integrity": "sha512-yt7fMgPYqSM4Tmr+taTW6Per+hjJ8Pk6lA1PAcDyqzOt8HzJ6Kje5WzCxA2Sd+9wsUW7uhkLeoTMK0cXPwH9rQ==",
"license": "MIT",
"dependencies": {
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"js-yaml": "^4.1.1",
"js-yaml": "^4.3.0",
"picomatch": "^4.0.4",
"retext-smartypants": "^6.2.0",
"shiki": "^4.0.2",
@@ -210,12 +210,12 @@
}
},
"node_modules/@astrojs/markdown-remark": {
"version": "7.2.1",
"resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.2.1.tgz",
"integrity": "sha512-jPVNIqTvk+yKviikszv/Y1U4jGUSKpp/Nw48QZV4qjWgp70j4Lkq3lhSDRbWwCfgKvEyO9GHuVbV1dM2WYXy1w==",
"version": "7.2.2",
"resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.2.2.tgz",
"integrity": "sha512-FGfmK84zSNcrsBd0dl1gXE9JvZYElp8EXQa2jpHVAxG4deGKAp43wspxFupjADJX7MSsMRHwYCnfT6EyVmgeFQ==",
"license": "MIT",
"dependencies": {
"@astrojs/internal-helpers": "0.10.1",
"@astrojs/internal-helpers": "0.10.2",
"@astrojs/prism": "4.0.2",
"github-slugger": "^2.0.0",
"hast-util-from-html": "^2.0.3",
@@ -235,25 +235,26 @@
}
},
"node_modules/@astrojs/markdown-satteri": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.3.tgz",
"integrity": "sha512-Lje33Ittd8UQGgbIIWQvhPkj5X5c4b1sZnZWX3JQV/AWpfbuQGxVi2ONt6+ScydcwfR4egilslEWyczMclrJ1g==",
"version": "0.3.5",
"resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.5.tgz",
"integrity": "sha512-CvWVEFAbay7YO+i9SaqDJubipA5ckiVB89QWoMJ5XC0m5CtFg8JwZ7Kau6X9sYY7FZURH0w2l03ISH2jOS/RDQ==",
"license": "MIT",
"dependencies": {
"@astrojs/internal-helpers": "0.10.1",
"@astrojs/internal-helpers": "0.10.2",
"@astrojs/prism": "4.0.2",
"github-slugger": "^2.0.0",
"hast-util-from-html": "^2.0.3",
"satteri": "^0.9.1"
}
},
"node_modules/@astrojs/mdx": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/@astrojs/mdx/-/mdx-7.0.2.tgz",
"integrity": "sha512-l+sJY5U1KkGZUdr+bIL4Y6BefeS549qoSHVSkUSs6A9INwdCND+/0+vN0NroPBXwl5Vcg5u78t7VQRsJjePxbw==",
"version": "7.0.5",
"resolved": "https://registry.npmjs.org/@astrojs/mdx/-/mdx-7.0.5.tgz",
"integrity": "sha512-wEM/HH1RiEntyPVagdiF+yArzfcYLKBB0C1RZspVidKZ97rRMbaqP1Nbl/GR0sJs8zwaceqxRymw8aOKKJRdYw==",
"license": "MIT",
"dependencies": {
"@astrojs/internal-helpers": "0.10.1",
"@astrojs/markdown-remark": "7.2.1",
"@astrojs/internal-helpers": "0.10.2",
"@astrojs/markdown-remark": "7.2.2",
"@mdx-js/mdx": "^3.1.1",
"acorn": "^8.16.0",
"es-module-lexer": "^2.0.0",
@@ -1560,27 +1561,30 @@
}
},
"node_modules/@napi-rs/wasm-runtime": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz",
"integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==",
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.2.tgz",
"integrity": "sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==",
"license": "MIT",
"optional": true,
"dependencies": {
"@tybys/wasm-util": "^0.10.3"
},
"engines": {
"node": "^20.19.0 || ^22.13.0 || >=23.5.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Brooooooklyn"
},
"peerDependencies": {
"@emnapi/core": "^1.7.1",
"@emnapi/runtime": "^1.7.1"
"@emnapi/core": "^1.7.1 || ^2.0.0-alpha.3",
"@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.3"
}
},
"node_modules/@nodable/entities": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.2.0.tgz",
"integrity": "sha512-9uGyhaQavEUMC8AIddIjau4NsnsXhou+j5sBAGojCM1oxmQpVKTWR/9JxABD6UAv12vpIms55fPZKFQEhG6uBg==",
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.0.0.tgz",
"integrity": "sha512-8L9xFeTYKhm49xfIypoe2W5wV1m/3Z58kT+7kR9A8OyFxcPduI4VmxaUMQyKYrRjUoLLSXv6EKKID5Tvj9cUVw==",
"funding": [
{
"type": "github",
@@ -2209,14 +2213,14 @@
}
},
"node_modules/astro": {
"version": "7.0.7",
"resolved": "https://registry.npmjs.org/astro/-/astro-7.0.7.tgz",
"integrity": "sha512-swqrKDSI/B83GFroYPZYMFcxqbSe9+tkynu1WDBk3GLgBfV9++qVM4Z+2uFT6uu9A53Q0TROnxLketfMEENuqQ==",
"version": "7.1.6",
"resolved": "https://registry.npmjs.org/astro/-/astro-7.1.6.tgz",
"integrity": "sha512-83x9rYbHazMaZkYrAFRVZXSQx2moFkz0F7cjTDUF3GWfS0a3p2vZXG1ZdhV86rStHApQCodBJW+XTD37xISIrQ==",
"license": "MIT",
"dependencies": {
"@astrojs/compiler-rs": "^0.3.0",
"@astrojs/internal-helpers": "0.10.1",
"@astrojs/markdown-satteri": "0.3.3",
"@astrojs/compiler-rs": "^0.3.2",
"@astrojs/internal-helpers": "0.10.2",
"@astrojs/markdown-satteri": "0.3.5",
"@astrojs/telemetry": "3.3.3",
"@capsizecss/unpack": "^4.0.0",
"@clack/prompts": "^1.1.0",
@@ -2228,7 +2232,7 @@
"ci-info": "^4.4.0",
"clsx": "^2.1.1",
"common-ancestor-path": "^2.0.0",
"cookie": "^1.1.1",
"cookie": "^2.0.1",
"devalue": "^5.8.1",
"diff": "^8.0.3",
"dset": "^3.1.4",
@@ -2240,12 +2244,12 @@
"github-slugger": "^2.0.0",
"html-escaper": "3.0.3",
"http-cache-semantics": "^4.2.0",
"js-yaml": "^4.1.1",
"js-yaml": "^4.3.0",
"jsonc-parser": "^3.3.1",
"magic-string": "^0.30.21",
"magic-string": "^1.0.0",
"magicast": "^0.5.2",
"mrmime": "^2.0.1",
"neotraverse": "^0.6.18",
"neotraverse": "^1.0.1",
"obug": "^2.1.1",
"p-limit": "^7.3.0",
"p-queue": "^9.1.0",
@@ -2284,7 +2288,7 @@
"sharp": "^0.34.0 || ^0.35.0"
},
"peerDependencies": {
"@astrojs/markdown-remark": "7.2.1"
"@astrojs/markdown-remark": "7.2.2"
},
"peerDependenciesMeta": {
"@astrojs/markdown-remark": {
@@ -2445,12 +2449,12 @@
}
},
"node_modules/cookie": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
"integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-2.0.1.tgz",
"integrity": "sha512-yuToqVvRrj6pfDXREyQAAv8SkAEk/8GS3jQRTiUMm66TVtBYmqQeoEjL2Lmq8Rpo6271vH76InTChTitEAm65w==",
"license": "MIT",
"engines": {
"node": ">=18"
"node": ">=22"
},
"funding": {
"type": "opencollective",
@@ -2951,9 +2955,9 @@
}
},
"node_modules/fast-xml-parser": {
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.9.3.tgz",
"integrity": "sha512-brCNCeScma/kqa54J4PIDriSSSLssRkuYaUCpvHJulGc3HGI/xxKUCTDcYkAdqJsyb//ydpbxecjC3hB9+tb/g==",
"version": "5.10.1",
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.10.1.tgz",
"integrity": "sha512-IEMIf7298kXuZSRFoGfMYrl7is8LpavODgbNz1cwIudv7KwVFnuU+UsMporfq6PD6aXSlawZlARiA3UywCTfMw==",
"funding": [
{
"type": "github",
@@ -2962,17 +2966,32 @@
],
"license": "MIT",
"dependencies": {
"@nodable/entities": "^2.2.0",
"@nodable/entities": "^3.0.0",
"fast-xml-builder": "^1.2.0",
"is-unsafe": "^1.0.1",
"path-expression-matcher": "^1.5.0",
"is-unsafe": "^2.0.0",
"path-expression-matcher": "^1.6.2",
"strnum": "^2.4.1",
"xml-naming": "^0.1.0"
"xml-naming": "^0.3.0"
},
"bin": {
"fxparser": "src/cli/cli.js"
}
},
"node_modules/fast-xml-parser/node_modules/xml-naming": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz",
"integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/NaturalIntelligence"
}
],
"license": "MIT",
"engines": {
"node": ">=16.0.0"
}
},
"node_modules/fdir": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
@@ -3413,9 +3432,9 @@
}
},
"node_modules/is-unsafe": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-1.0.1.tgz",
"integrity": "sha512-CLK2+VdgERgD96EYm5lUQssZYlRg2tkZnbsxZoacmSiRxiFJ4Nk4SzjCl+Ur+v3kXIY9dTIdb3IH22y1mZ56LA==",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-2.0.0.tgz",
"integrity": "sha512-2LdV822R+wmI86unXA93WCFpL6g+av8ynWk0nrHyJqGop5VoocYsSLFgN8jrfalT6iGeLNM4KXuVSsULP53kEA==",
"funding": [
{
"type": "github",
@@ -3425,9 +3444,9 @@
"license": "MIT"
},
"node_modules/js-yaml": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz",
"integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==",
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz",
"integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==",
"funding": [
{
"type": "github",
@@ -3721,9 +3740,9 @@
}
},
"node_modules/magic-string": {
"version": "0.30.21",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
"integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.1.0.tgz",
"integrity": "sha512-kS3VHe0nEPST2saQV4Rbkchcd3UBRkVTQHo1D3h/ZTwFDhai/mfKkmtPAtD129EOI7K3HlHIsFOt0WrI2/oU9g==",
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.5"
@@ -4803,9 +4822,9 @@
"license": "MIT"
},
"node_modules/nanoid": {
"version": "3.3.15",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz",
"integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==",
"version": "3.3.18",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
"integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
"funding": [
{
"type": "github",
@@ -4821,9 +4840,9 @@
}
},
"node_modules/neotraverse": {
"version": "0.6.18",
"resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-0.6.18.tgz",
"integrity": "sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==",
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-1.0.1.tgz",
"integrity": "sha512-WmmLty1YWwJl9yZi77v2dVIV6X2kuYV8YYBI/G3LWGKdGHmHUvL1z7FW0iDvEvGAwNEoc5x1tOOOyDnf5jJw/w==",
"license": "MIT",
"engines": {
"node": ">= 10"
@@ -5078,9 +5097,9 @@
}
},
"node_modules/postcss": {
"version": "8.5.16",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.16.tgz",
"integrity": "sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg==",
"version": "8.5.25",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.25.tgz",
"integrity": "sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==",
"funding": [
{
"type": "opencollective",
@@ -5097,7 +5116,7 @@
],
"license": "MIT",
"dependencies": {
"nanoid": "^3.3.12",
"nanoid": "^3.3.16",
"picocolors": "^1.1.1",
"source-map-js": "^1.2.1"
},
@@ -5718,9 +5737,9 @@
}
},
"node_modules/svgo": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.1.tgz",
"integrity": "sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==",
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.2.tgz",
"integrity": "sha512-ekx94z1rRc5LDi6oSUaeRnYhd0UOJxdtQCL2rF8xpWxD3TPAsISWOrxezqGovqS38GRZOdpDfvQe3ts6F7nsng==",
"license": "MIT",
"dependencies": {
"commander": "^11.1.0",
+7 -3
View File
@@ -1,20 +1,24 @@
{
"name": "green-tea-site",
"type": "module",
"version": "26.7.0-beta.0",
"version": "26.8.1-beta.0",
"engines": {
"node": ">=22.12.0"
},
"scripts": {
"dev": "astro dev",
"build": "astro build",
"check": "npm run build && npm run verify:build",
"test": "node --test scripts/*.test.mjs",
"verify:build": "node scripts/verify-build.mjs",
"verify:release": "node scripts/verify-release-tag.mjs",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^7.0.2",
"@astrojs/mdx": "^7.0.5",
"@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.3",
"astro": "^7.0.7"
"astro": "^7.1.6"
}
}
+49
View File
@@ -0,0 +1,49 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://green-tea.expressive-tea.io%{REQUEST_URI} [R=301,L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 0 seconds"
ExpiresByType text/css "access plus 7 days"
ExpiresByType text/javascript "access plus 7 days"
ExpiresByType application/javascript "access plus 7 days"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType image/avif "access plus 7 days"
ExpiresByType image/gif "access plus 7 days"
ExpiresByType image/jpeg "access plus 7 days"
ExpiresByType image/png "access plus 7 days"
ExpiresByType image/svg+xml "access plus 7 days"
ExpiresByType image/webp "access plus 7 days"
ExpiresByType image/x-icon "access plus 7 days"
<FilesMatch "\.[A-Za-z0-9_-]{8,}\.(?:avif|css|eot|gif|ico|jpe?g|js|mjs|otf|png|svg|ttf|webp|woff2?)$">
ExpiresActive Off
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.html?$">
Header set Cache-Control "public, max-age=0, must-revalidate"
</FilesMatch>
<FilesMatch "\.woff2$">
Header set Cache-Control "public, max-age=31536000"
</FilesMatch>
<FilesMatch "\.(?:avif|gif|ico|jpe?g|png|svg|webp)$">
Header set Cache-Control "public, max-age=604800"
</FilesMatch>
<FilesMatch "\.[A-Za-z0-9_-]{8,}\.(?:avif|css|eot|gif|ico|jpe?g|js|mjs|otf|png|svg|ttf|webp|woff2?)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript text/xml
AddOutputFilterByType DEFLATE application/javascript application/x-javascript application/json application/ld+json
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml application/atom+xml image/svg+xml
</IfModule>
+93
View File
@@ -0,0 +1,93 @@
Copyright 2021 The Zen Maru Gothic Project Authors (https://github.com/googlefonts/zen-marugothic)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
+12
View File
@@ -0,0 +1,12 @@
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import test from 'node:test';
test('publishes beta tags as GitHub prereleases', async () => {
const workflow = await readFile(new URL('../.github/workflows/release.yml', import.meta.url), 'utf8');
assert.match(
workflow,
/uses: softprops\/action-gh-release@v2[\s\S]*?with:\s*\n\s+prerelease: true\s*\n\s+files:/,
);
});
+408
View File
@@ -0,0 +1,408 @@
import assert from 'node:assert/strict';
import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
import { join, relative, resolve } from 'node:path';
const distDir = resolve('dist');
const productionOrigin = 'https://green-tea.expressive-tea.io';
const homeCanonical = `${productionOrigin}/`;
function readHtml(filePath) {
assert.ok(existsSync(filePath), `Missing generated HTML: ${relative(distDir, filePath)}`);
return readFileSync(filePath, 'utf8');
}
function tags(html, tagName) {
return html.match(new RegExp(`<${tagName}\\b[^>]*>`, 'gi')) ?? [];
}
function attribute(tag, name) {
const match = tag.match(
new RegExp(`\\s${name}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`, 'i'),
);
return match?.[1] ?? match?.[2] ?? match?.[3];
}
function metaTags(html, attributeName, attributeValue) {
return tags(html, 'meta').filter(
(tag) => attribute(tag, attributeName)?.toLowerCase() === attributeValue.toLowerCase(),
);
}
function metaDescription(html, label) {
const descriptions = metaTags(html, 'name', 'description');
assert.equal(descriptions.length, 1, `${label} must have exactly one meta description`);
const description = attribute(descriptions[0], 'content')?.trim();
assert.ok(description, `${label} meta description must not be empty`);
return description;
}
function expectedCanonicalFor(label) {
const generatedPath = label.replaceAll('\\', '/');
if (generatedPath === 'index.html') return homeCanonical;
if (generatedPath === '404.html') return `${productionOrigin}/404/`;
assert.ok(
generatedPath.endsWith('/index.html'),
`Cannot derive a canonical route from generated page ${generatedPath}`,
);
return `${productionOrigin}/${generatedPath.slice(0, -'index.html'.length)}`;
}
function requireAbsoluteHttps(value, message) {
let parsedUrl;
assert.doesNotThrow(
() => {
parsedUrl = new URL(value);
},
`${message} must be a valid absolute URL`,
);
assert.equal(parsedUrl.protocol, 'https:', `${message} must use HTTPS`);
return value;
}
function verifyPageMetadata({ label, generatedPath = label, html, isPost = false }) {
const expectedCanonical = expectedCanonicalFor(generatedPath);
const canonicals = tags(html, 'link').filter((tag) =>
attribute(tag, 'rel')
?.toLowerCase()
.split(/\s+/)
.includes('canonical'),
);
assert.equal(canonicals.length, 1, `${label} must have exactly one canonical URL`);
const canonicalUrl = attribute(canonicals[0], 'href');
assert.equal(
canonicalUrl,
expectedCanonical,
`${label} canonical URL must match its generated route`,
);
requireAbsoluteHttps(canonicalUrl, `${label} canonical URL`);
const description = metaDescription(html, label);
const robots = metaTags(html, 'name', 'robots');
assert.equal(robots.length, 1, `${label} must have exactly one robots meta tag`);
assert.equal(
attribute(robots[0], 'content')?.toLowerCase(),
generatedPath === '404.html' ? 'noindex, follow' : 'index, follow',
`${label} robots metadata has an unexpected value`,
);
requireSingleMeta(html, label, 'og:type', isPost ? 'article' : 'website');
const ogUrl = attribute(requireSingleMeta(html, label, 'og:url'), 'content');
assert.equal(ogUrl, canonicalUrl, `${label} og:url must match its canonical URL`);
assert.ok(
attribute(requireSingleMeta(html, label, 'og:title'), 'content')?.trim(),
`${label} og:title must not be blank`,
);
assert.equal(
attribute(requireSingleMeta(html, label, 'og:description'), 'content'),
description,
`${label} og:description must match its meta description`,
);
const ogImage = attribute(requireSingleMeta(html, label, 'og:image'), 'content');
requireAbsoluteHttps(ogImage, `${label} og:image`);
return { canonicalUrl, description, ogImage };
}
function findGeneratedTextAssets(directory) {
return readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
const entryPath = join(directory, entry.name);
if (entry.isDirectory()) return findGeneratedTextAssets(entryPath);
return entry.isFile() && /\.(?:html|css|js|mjs|svg|xml|json)$/i.test(entry.name)
? [entryPath]
: [];
});
}
function parseJsonLd(html, label) {
const scripts = [];
const scriptPattern = /<script\b([^>]*)>([\s\S]*?)<\/script\s*>/gi;
let match;
while ((match = scriptPattern.exec(html)) !== null) {
if (attribute(`<script${match[1]}>`, 'type')?.toLowerCase() === 'application/ld+json') {
scripts.push(match[2]);
}
}
assert.ok(scripts.length > 0, `${label} must have parseable JSON-LD`);
return scripts.map((source, index) => {
try {
return JSON.parse(source);
} catch (error) {
assert.fail(`${label} JSON-LD script ${index + 1} is invalid: ${error.message}`);
}
});
}
function findNodesByType(value, expectedType, matches = []) {
if (Array.isArray(value)) {
for (const item of value) findNodesByType(item, expectedType, matches);
return matches;
}
if (value === null || typeof value !== 'object') return matches;
const types = Array.isArray(value['@type']) ? value['@type'] : [value['@type']];
if (types.includes(expectedType)) matches.push(value);
for (const item of Object.values(value)) findNodesByType(item, expectedType, matches);
return matches;
}
function requireValidDate(value, message) {
assert.equal(typeof value, 'string', `${message} must be a string`);
assert.match(
value,
/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/,
`${message} must use ISO-8601 UTC format`,
);
const parsedDate = new Date(value);
assert.ok(!Number.isNaN(parsedDate.valueOf()), `${message} must be a valid date`);
assert.equal(parsedDate.toISOString(), value, `${message} must not normalize an impossible date`);
}
function requireSingleMeta(html, label, property, expectedContent) {
const matching = metaTags(html, 'property', property);
assert.equal(matching.length, 1, `${label} must have exactly one ${property} meta tag`);
if (expectedContent !== undefined) {
assert.equal(
attribute(matching[0], 'content')?.toLowerCase(),
expectedContent.toLowerCase(),
`${label} ${property} must be ${expectedContent}`,
);
} else {
assert.ok(attribute(matching[0], 'content')?.trim(), `${label} ${property} must not be empty`);
}
return matching[0];
}
assert.ok(existsSync(distDir), 'Missing generated dist directory');
const generatedTextAssets = findGeneratedTextAssets(distDir);
const htmlPages = generatedTextAssets
.filter((filePath) => filePath.toLowerCase().endsWith('.html'))
.map((filePath) => ({
label: relative(distDir, filePath),
path: filePath,
html: readHtml(filePath),
}));
assert.ok(htmlPages.length > 0, 'Expected at least one generated HTML page');
function requirePage(relativePath, label) {
const page = htmlPages.find((candidate) => candidate.label === relativePath);
assert.ok(page, `Missing generated ${label}: ${relativePath}`);
return { ...page, generatedPath: relativePath, label };
}
const home = requirePage('index.html', 'home page');
const notFound = requirePage('404.html', '404 page');
requirePage(join('blog', 'index.html'), 'blog index');
const postPages = htmlPages
.map((page) => ({ ...page, route: page.label.replaceAll('\\', '/') }))
.filter(
(page) =>
page.route.startsWith('blog/') &&
page.route.endsWith('/index.html') &&
page.route !== 'blog/index.html',
)
.map((page) => ({
...page,
generatedPath: page.route,
label: `blog post ${page.route.slice('blog/'.length, -'/index.html'.length)}`,
}));
assert.ok(postPages.length > 0, 'Expected at least one generated blog post');
const homeJsonLd = parseJsonLd(home.html, home.label);
assert.equal(homeJsonLd.length, 1, 'home page must have exactly one JSON-LD script');
const homeMetadata = verifyPageMetadata(home);
const websites = findNodesByType(homeJsonLd, 'WebSite');
assert.equal(websites.length, 1, 'home page JSON-LD must contain exactly one WebSite');
const [website] = websites;
assert.equal(website.name, 'Green Tea', 'home page WebSite name must be Green Tea');
assert.equal(
website.description,
homeMetadata.description,
'home page WebSite description must match the meta description',
);
assert.equal(website.url, homeCanonical, 'home page WebSite URL must be canonical');
requireAbsoluteHttps(website.url, 'home page WebSite URL');
const softwareApplications = findNodesByType(homeJsonLd, 'SoftwareApplication');
assert.equal(
softwareApplications.length,
1,
'home page JSON-LD must contain exactly one SoftwareApplication',
);
const [softwareApplication] = softwareApplications;
assert.equal(softwareApplication.name, 'Green Tea', 'SoftwareApplication name must be Green Tea');
assert.equal(
softwareApplication.description,
homeMetadata.description,
'SoftwareApplication description must match the meta description',
);
assert.equal(softwareApplication.url, homeCanonical, 'SoftwareApplication URL must be canonical');
requireAbsoluteHttps(softwareApplication.url, 'SoftwareApplication URL');
assert.equal(
softwareApplication.applicationCategory,
'DeveloperApplication',
'SoftwareApplication category must be DeveloperApplication',
);
assert.equal(
softwareApplication.operatingSystem,
'Cross-platform',
'SoftwareApplication operating system must be cross-platform',
);
assert.equal(
softwareApplication.sameAs,
'https://github.com/Expressive-Tea/green-tea',
'SoftwareApplication sameAs must reference the GitHub repository',
);
assert.equal(
softwareApplication.license,
'https://github.com/Expressive-Tea/green-tea/blob/main/LICENSE',
'SoftwareApplication license must reference the MIT license',
);
requireAbsoluteHttps(softwareApplication.license, 'SoftwareApplication license URL');
assert.equal(typeof softwareApplication.offers, 'object', 'SoftwareApplication must have an Offer');
assert.ok(
!Array.isArray(softwareApplication.offers) && softwareApplication.offers !== null,
'SoftwareApplication Offer must be an object',
);
assert.equal(softwareApplication.offers['@type'], 'Offer', 'SoftwareApplication offer type must be Offer');
assert.equal(softwareApplication.offers.price, '0', 'SoftwareApplication offer price must be zero');
assert.equal(
softwareApplication.offers.priceCurrency,
'USD',
'SoftwareApplication offer currency must be USD',
);
for (const page of htmlPages) {
if (page.path === home.path || postPages.some((post) => post.path === page.path)) continue;
verifyPageMetadata(page);
}
for (const post of postPages) {
const postMetadata = verifyPageMetadata({ ...post, isPost: true });
const jsonLd = parseJsonLd(post.html, post.label);
const blogPostings = findNodesByType(jsonLd, 'BlogPosting');
assert.equal(blogPostings.length, 1, `${post.label} JSON-LD must contain one BlogPosting`);
const [blogPosting] = blogPostings;
assert.ok(
typeof blogPosting.headline === 'string' && blogPosting.headline.trim(),
`${post.label} BlogPosting headline must not be empty`,
);
assert.equal(
blogPosting.description,
postMetadata.description,
`${post.label} BlogPosting description must match the meta description`,
);
assert.equal(
blogPosting.image,
postMetadata.ogImage,
`${post.label} BlogPosting image must match og:image`,
);
requireAbsoluteHttps(blogPosting.image, `${post.label} BlogPosting image`);
assert.equal(
blogPosting.mainEntityOfPage,
postMetadata.canonicalUrl,
`${post.label} BlogPosting mainEntityOfPage must match the canonical URL`,
);
requireValidDate(blogPosting.datePublished, `${post.label} BlogPosting datePublished`);
requireValidDate(blogPosting.dateModified, `${post.label} BlogPosting dateModified`);
assert.equal(typeof blogPosting.author, 'object', `${post.label} BlogPosting author must be an object`);
assert.ok(
!Array.isArray(blogPosting.author) && blogPosting.author !== null,
`${post.label} BlogPosting author must be an object`,
);
assert.equal(blogPosting.author['@type'], 'Person', `${post.label} BlogPosting author must be a Person`);
assert.ok(
typeof blogPosting.author.name === 'string' && blogPosting.author.name.trim(),
`${post.label} BlogPosting author.name must not be empty`,
);
assert.equal(typeof blogPosting.publisher, 'object', `${post.label} publisher must be an object`);
assert.ok(
!Array.isArray(blogPosting.publisher) && blogPosting.publisher !== null,
`${post.label} publisher must be an object`,
);
assert.equal(
blogPosting.publisher['@type'],
'Organization',
`${post.label} publisher must be an Organization`,
);
assert.equal(
blogPosting.publisher.name,
'Expressive Tea Team',
`${post.label} publisher must be Expressive Tea Team`,
);
const publishedTime = requireSingleMeta(post.html, post.label, 'article:published_time');
const modifiedTime = requireSingleMeta(post.html, post.label, 'article:modified_time');
const articleAuthors = metaTags(post.html, 'property', 'article:author');
for (const articleAuthor of articleAuthors) {
const authorUrl = attribute(articleAuthor, 'content');
assert.ok(authorUrl?.trim(), `${post.label} article:author must not be empty`);
let parsedAuthorUrl;
assert.doesNotThrow(
() => {
parsedAuthorUrl = new URL(authorUrl);
},
`${post.label} article:author must be a valid absolute URL`,
);
assert.ok(
['https:', 'http:'].includes(parsedAuthorUrl.protocol),
`${post.label} article:author must use HTTP or HTTPS`,
);
}
const publishedTimeContent = attribute(publishedTime, 'content');
const modifiedTimeContent = attribute(modifiedTime, 'content');
requireValidDate(publishedTimeContent, `${post.label} article:published_time content`);
requireValidDate(modifiedTimeContent, `${post.label} article:modified_time content`);
assert.equal(
publishedTimeContent,
blogPosting.datePublished,
`${post.label} article:published_time must match BlogPosting datePublished`,
);
assert.equal(
modifiedTimeContent,
blogPosting.dateModified,
`${post.label} article:modified_time must match BlogPosting dateModified`,
);
const articleTags = metaTags(post.html, 'property', 'article:tag').map((tag) =>
attribute(tag, 'content')?.trim(),
);
assert.ok(articleTags.every(Boolean), `${post.label} article:tag values must not be empty`);
assert.equal(
new Set(articleTags).size,
articleTags.length,
`${post.label} article:tag values must not contain duplicates`,
);
const keywordTags =
typeof blogPosting.keywords === 'string'
? blogPosting.keywords.split(',').map((keyword) => keyword.trim())
: [];
assert.ok(keywordTags.every(Boolean), `${post.label} BlogPosting keywords must not be empty`);
assert.equal(
new Set(keywordTags).size,
keywordTags.length,
`${post.label} BlogPosting keywords must not contain duplicates`,
);
assert.deepEqual(
keywordTags,
articleTags,
`${post.label} BlogPosting keywords must match article:tag metadata`,
);
}
for (const assetPath of generatedTextAssets) {
const source = readFileSync(assetPath, 'utf8');
for (const forbiddenHost of ['fonts.googleapis.com', 'fonts.gstatic.com']) {
assert.ok(
!source.toLowerCase().includes(forbiddenHost),
`${relative(distDir, assetPath)} must not reference ${forbiddenHost}`,
);
}
}
assert.ok(existsSync(join(distDir, '.htaccess')), 'Missing generated dist/.htaccess');
assert.ok(statSync(join(distDir, '.htaccess')).isFile(), 'Generated dist/.htaccess must be a file');
console.log('Verified generated SEO and deploy metadata.');
+24
View File
@@ -0,0 +1,24 @@
import { readFile } from 'node:fs/promises';
import { resolve } from 'node:path';
import { pathToFileURL } from 'node:url';
export function assertReleaseTag(tag, version) {
const expected = `v${version}`;
if (tag !== expected) {
const received = tag || 'an empty tag';
throw new Error(`Release tag mismatch: expected ${expected}, received ${received}.`);
}
}
async function main() {
const packageUrl = new URL('../package.json', import.meta.url);
const packageJson = JSON.parse(await readFile(packageUrl, 'utf8'));
assertReleaseTag(process.env.RELEASE_TAG, packageJson.version);
console.log(`Verified release tag v${packageJson.version}.`);
}
const entryUrl = process.argv[1] ? pathToFileURL(resolve(process.argv[1])).href : undefined;
if (entryUrl === import.meta.url) {
await main();
}
+36
View File
@@ -0,0 +1,36 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { assertReleaseTag } from './verify-release-tag.mjs';
test('accepts the exact v-prefixed package version', () => {
assert.doesNotThrow(() => assertReleaseTag('v26.8.0-beta.0', '26.8.0-beta.0'));
});
test('rejects a different prerelease version', () => {
assert.throws(
() => assertReleaseTag('v26.8.0-beta.1', '26.8.0-beta.0'),
/expected v26\.8\.0-beta\.0.*received v26\.8\.0-beta\.1/i,
);
});
test('rejects a tag without the v prefix', () => {
assert.throws(
() => assertReleaseTag('26.8.0-beta.0', '26.8.0-beta.0'),
/expected v26\.8\.0-beta\.0.*received 26\.8\.0-beta\.0/i,
);
});
test('rejects a malformed tag containing a slash', () => {
assert.throws(
() => assertReleaseTag('release/v26.8.0-beta.0', '26.8.0-beta.0'),
/expected v26\.8\.0-beta\.0.*received release\/v26\.8\.0-beta\.0/i,
);
});
test('rejects an empty tag', () => {
assert.throws(
() => assertReleaseTag('', '26.8.0-beta.0'),
/expected v26\.8\.0-beta\.0.*received an empty tag/i,
);
});
+6 -3
View File
@@ -1,14 +1,17 @@
---
const cards = [
{ title: 'Secure by default', body: 'Hardening headers, native TLS, CORS done right.' },
{ title: 'Secure by default', body: 'Hardened response headers and CORS; native TLS on Node.' },
{
title: 'Real validation',
body: 'Standard Schema; bring zod, valibot, or arktype. The core stays dependency-free.',
body: 'Standard Schema; bring zod, valibot, or arktype. No validator dependency in core.',
},
{ title: 'OpenAPI 3.1', body: 'Projected from the same graph. No extra decorators.' },
{ title: 'See the graph', body: 'Interactive, served by your app. Not behind a paywall.' },
{ title: 'Loud boot', body: 'A missing dependency fails at startup, not in production.' },
{ title: 'One dependency', body: "No Express, no Inversify. Maintenance is the framework's job, not yours." },
{
title: 'One dependency',
body: "reflect-metadata only. No Express or Inversify maintenance chain underneath you.",
},
];
---
+1 -1
View File
@@ -15,7 +15,7 @@ import GraphMotif from '../GraphMotif.astro';
<p class="hero__subhead">
Green Tea is a zen, opinionated, type-safe framework: you declare what each step needs — it computes the
order. One runtime dependency. Runs wherever JavaScript runs.
order. One runtime dependency. Runs on Node, Deno, Bun, and Cloudflare Workers.
</p>
<div class="btn-row hero__ctas">
+4 -5
View File
@@ -5,11 +5,11 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
<section class="runs">
<div class="wrap runs__inner">
<p class="kicker">Runtime-agnostic</p>
<h2>Write it once. Run it everywhere.</h2>
<h2>Write it once. Run it on four targets.</h2>
<p class="runs__body">
Node, Deno, Bun — and the edge. The same <code>src/</code> runs on all of them; the only line that changes is
how you serve it.
Node, Deno, Bun — and Cloudflare Workers at the edge. The same <code>src/</code> runs on all four; the only line
that changes is how you serve it.
</p>
<ul class="runs__chips">
@@ -18,7 +18,7 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
<p class="runs__micro">
Built on web standards. Not hostage to a runtime's fate. <span class="runs__caveat"
>(The edge has no filesystem, so file-backed views and static serving stay on the server runtimes.)</span
>(The edge has no filesystem or mesh, so those features stay on the server runtimes.)</span
>
</p>
</div>
@@ -78,6 +78,5 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
display: block;
margin-top: 0.5rem;
font-size: 0.8rem;
opacity: 0.75;
}
</style>
+1 -1
View File
@@ -30,7 +30,7 @@ class MeController {
</div>
<div class="see-it__code">
<Code code={snippet} lang="ts" theme="github-dark" />
<Code code={snippet} lang="ts" theme="github-dark-high-contrast" />
</div>
<p class="see-it__caption">Declare what you need. The framework figures out the order.</p>
@@ -0,0 +1,107 @@
---
title: "Green Tea 26.8.0-beta.0: the router stops guessing"
description: "Safe constrained routes, strict paths, complete HEAD and OPTIONS semantics, four runtime targets, and the limits we are deliberately leaving visible."
pubDate: 2026-08-02
author: "Diego Reséndez"
tags: ["green-tea", "release", "routing", "security"]
---
A beta should not mean “we will figure out the boundaries later.” It should mean the boundaries are visible, tested,
and still allowed to move.
Green Tea `26.8.0-beta.0` closes the largest gap in its HTTP surface: the router now understands constrained
parameters, chooses routes deterministically, handles `HEAD` and `OPTIONS` as first-class HTTP methods, and rejects
paths that would otherwise be normalized into something the caller did not send.
It also keeps an important limit in plain sight: this is still a small linear matcher, not a radix tree pretending to
be one.
## Constrained routes, with a deliberately boring regex subset
Routes can now constrain a parameter to one decoded path segment:
```ts
@Get('/users/:id(\\d+)')
findUser(@Param('id') id: string) {
return users.find(id);
}
```
The constraint is anchored to the complete segment automatically. Green Tea accepts character classes, escaped
classes such as `\d`, literal atoms, and bounded simple quantifiers. It rejects groups, alternation, lookarounds,
backreferences, anchors, oversized expressions, and unsafe adjacent unbounded quantifiers at boot.
That is intentional. This feature handles useful typed-looking route shapes without turning application startup into
an arbitrary-regex or obvious ReDoS surface.
When several routes could match, specificity is deterministic:
```text
static segment > constrained parameter > plain parameter > catch-all
```
Registration order is no longer a hidden tie-breaker. Ambiguous routes with the same method and shape fail during
boot instead of waiting for production traffic to discover them.
## A path is either the path you sent, or a 400
`/path` and `/path/` remain equivalent. Repeated separators such as `/path//item` do not. Green Tea rejects repeated
slashes and malformed percent encoding with `400 Bad Request` across Node and Fetch-based adapters, while retaining
the configured security and CORS headers.
The router will not silently collapse an ambiguous URL into a different one.
## HEAD and OPTIONS are HTTP behavior, not afterthoughts
This release adds explicit `@Head` and `@Options` decorators. Explicit handlers always win.
Without one, a buffered `GET` can provide a `HEAD` response with the same status and headers and no body. Streaming
GET routes do not become implicit HEAD routes. An existing path can answer `OPTIONS` automatically with `204` and a
deterministic `Allow` header; configured CORS preflight handling still takes priority.
OpenAPI follows the declarations rather than inventing operations. Constrained parameters become `{param}` path
parameters with `schema.pattern`, while only explicitly declared HEAD and OPTIONS handlers appear as operations.
## The same graph on four targets
The same application code now serves HTTP, SSE, and WebSocket traffic on Node, Deno, Bun, and Cloudflare Workers.
The entry point changes — `app.listen`, `serveDeno`, `serveBun`, or `edgeHandler` — but the route graph does not.
The runtime boundaries still matter. Edge deployments have no filesystem-backed HTML or static serving, and mesh is
limited to Node, Deno, and Bun. Deno also snapshots request and connection metadata before accepting a WebSocket
upgrade because Deno 2.9 invalidates that metadata afterward.
## The supply chain got the same treatment
The core, runtime, and documentation dependency trees were audited and updated before publication. While preparing
this release post, the public site's Astro toolchain was updated too, including patched PostCSS, SVGO, and XML parser
transitives. The automated builds now fail on moderate-or-higher npm advisories instead of leaving the check for the
next release.
Green Tea still has one runtime dependency: `reflect-metadata`. `ws` and `busboy` remain optional peers for
WebSockets and multipart uploads.
## What this release does not build
Route matching remains a linear scan. That is fine for the route tables this beta targets, but it is not the data
structure we would choose for an enormous generated API. A radix-tree matcher remains post-beta work.
Constraints are also a safe, bounded subset — not arbitrary JavaScript regular expressions. Expanding that surface
would require proving it stays predictable and resistant to pathological input; “accept every regex” is not a beta
checkbox.
Mesh remains alpha, and the core API can still shift between beta releases. Pin the version and read the changelog
before upgrading.
## Try it
```sh
npm install @green-tea/core@beta reflect-metadata
```
Then start with the [routing guide](https://green-tea.expressive-tea.io/docs/guides/routing/) or read the complete
[`26.8.0-beta.0` changelog](https://github.com/Expressive-Tea/green-tea/blob/main/CHANGELOG.md).
The router is still small. It is simply much harder to surprise now.
That's the tea. 🍵
+49 -6
View File
@@ -3,20 +3,40 @@ import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import '../styles/global.css';
type OpenGraphType = 'website' | 'article';
type StructuredData = Record<string, unknown>;
interface Props {
title?: string;
description?: string;
image?: string;
ogType?: OpenGraphType;
robots?: string;
publishedTime?: Date;
updatedTime?: Date;
authorUrl?: string;
tags?: string[];
structuredData?: StructuredData;
}
const {
title = 'Green Tea — A zen, type-safe graph-pipeline HTTP framework',
description = 'Green Tea is a graph-pipeline HTTP framework: declare what you need, not the order to build it. Runtime-agnostic, type-safe, calm by design.',
image = '/og.png',
ogType = 'website',
robots = 'index, follow',
publishedTime,
updatedTime,
authorUrl,
tags,
structuredData,
} = Astro.props;
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const ogImageURL = new URL(image, Astro.site);
const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString();
const ogImageURL = new URL(image, Astro.site).toString();
const serializedStructuredData = structuredData
? JSON.stringify(structuredData).replace(/</g, '\\u003c')
: undefined;
---
<!doctype html>
@@ -29,13 +49,24 @@ const ogImageURL = new URL(image, Astro.site);
<title>{title}</title>
<meta name="description" content={description} />
<meta name="robots" content={robots} />
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:type" content={ogType} />
<meta property="og:url" content={canonicalURL} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={ogImageURL} />
{
ogType === 'article' && (
<>
{publishedTime && <meta property="article:published_time" content={publishedTime.toISOString()} />}
{updatedTime && <meta property="article:modified_time" content={updatedTime.toISOString()} />}
{authorUrl && <meta property="article:author" content={authorUrl} />}
{tags?.map((tag) => <meta property="article:tag" content={tag} />)}
</>
)
}
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
@@ -43,15 +74,27 @@ const ogImageURL = new URL(image, Astro.site);
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={ogImageURL} />
{serializedStructuredData && <script type="application/ld+json" set:html={serializedStructuredData} />}
<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="Green Tea. Blog" href="/rss.xml" />
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap" rel="stylesheet" />
<link
rel="preload"
href="/fonts/zen-maru-gothic-latin-700.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<meta name="generator" content={Astro.generator} />
{/* GoatCounter — no cookies, no personal data, no consent banner needed. */}
<script
data-goatcounter="https://greentea.goatcounter.com/count"
async
src="//gc.zgo.at/count.js"></script>
</head>
<body>
<Header />
+31 -1
View File
@@ -23,9 +23,39 @@ const dateFormat = new Intl.DateTimeFormat('en-US', {
const wordCount = body.trim().split(/\s+/).filter(Boolean).length;
const readingTime = Math.max(1, Math.round(wordCount / 200));
const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString();
const heroImageURL = new URL(heroImage ?? '/og.png', Astro.site).toString();
const structuredData = {
'@context': 'https://schema.org',
'@type': 'BlogPosting',
headline: title,
description,
image: heroImageURL,
datePublished: pubDate.toISOString(),
dateModified: (updatedDate ?? pubDate).toISOString(),
author: {
'@type': 'Person',
name: author,
},
publisher: {
'@type': 'Organization',
name: 'Expressive Tea Team',
},
mainEntityOfPage: canonicalURL,
...(tags && tags.length > 0 ? { keywords: tags.join(', ') } : {}),
};
---
<Base title={`${title} — Green Tea. Blog`} description={description} image={heroImage}>
<Base
title={`${title} — Green Tea. Blog`}
description={description}
image={heroImage}
ogType="article"
publishedTime={pubDate}
updatedTime={updatedDate ?? pubDate}
tags={tags}
structuredData={structuredData}
>
<article class="post section">
<div class="wrap prose">
<p class="post-nav"><a href="/blog/">← Back to the blog</a></p>
+1 -1
View File
@@ -6,7 +6,7 @@ const title = '404 — Green Tea.';
const description = 'This page steeped too long. It’s gone — but the rest of the garden is right here.';
---
<Base title={title} description={description}>
<Base title={title} description={description} robots="noindex, follow">
<section class="notfound section">
<div class="wrap notfound__inner">
<div class="notfound__text">
+31 -1
View File
@@ -13,9 +13,39 @@ import HonestBeta from '../components/sections/HonestBeta.astro';
const title = 'Green Tea — Type-safe graph-pipeline framework for Node, Deno & Bun';
const description =
'Your API is a graph, not a middleware chain. Declare what each step needs and Green Tea computes the order — one runtime dependency, type-safe, runtime-agnostic, calm by design.';
const canonicalURL = new URL('/', Astro.site).toString();
const repositoryURL = 'https://github.com/Expressive-Tea/green-tea';
const structuredData = {
'@context': 'https://schema.org',
'@graph': [
{
'@type': 'WebSite',
'@id': `${canonicalURL}#website`,
url: canonicalURL,
name: 'Green Tea',
description,
},
{
'@type': 'SoftwareApplication',
'@id': `${canonicalURL}#software`,
name: 'Green Tea',
description,
applicationCategory: 'DeveloperApplication',
operatingSystem: 'Cross-platform',
url: canonicalURL,
sameAs: repositoryURL,
license: `${repositoryURL}/blob/main/LICENSE`,
offers: {
'@type': 'Offer',
price: '0',
priceCurrency: 'USD',
},
},
],
};
---
<Base title={title} description={description}>
<Base title={title} description={description} structuredData={structuredData}>
<Hero />
<GraphNotChain />
<HowItCompares />
+21 -1
View File
@@ -1,5 +1,25 @@
/* Green Tea. — marketing site global styles */
@import './brand.css';
@font-face {
font-family: 'Zen Maru Gothic';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('/fonts/zen-maru-gothic-latin-500.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Zen Maru Gothic';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/fonts/zen-maru-gothic-latin-700.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
:root {
--base: #0d1117;