chrnxandClaude Opus 5 3e6fa7797b
CI / check (pull_request) Successful in 26s
chore: bump to 26.8.0-beta.0 so the README fix reaches crates.io
Cargo embeds README.md into the published .crate, so crates.io keeps serving
whatever was there at publish time. The install-path fix in this branch is
invisible to anyone reading crates.io until a new version ships — and that page
is the whole point, since it is where the broken curl command is currently
advertised.

Calendar versioning, same as the core package: this is the first matcha cut in
August 2026.

Note for tagging: the previous release tagged `v26.7.0` while Cargo.toml said
`26.7.0-beta.0`. Tag this one `v26.8.0-beta.0` so the tag and the crate version
match.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 14:18:44 -05:00

matcha

The green-tea CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate.

Install

cargo install matcha-cli

Builds from crates.io and installs the matcha binary. Needs a Rust toolchain; takes a few seconds.

Prebuilt binary (no Rust), from the latest GitHub release:

curl -fsSL https://raw.githubusercontent.com/Expressive-Tea/matcha/main/install.sh | sh

Drops the binary in ~/.local/bin. Env vars go on the sh side of the pipe:

curl -fsSL …/install.sh | MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin sh

From git (compiles the default branch):

cargo install --git https://github.com/Expressive-Tea/matcha

Usage

matcha new my-api                          # scaffold from the official starter
matcha new my-api --template-url gh:owner/repo   # scaffold from any git template
matcha run                                 # detect node/deno/bun and run in watch
matcha create controller Users             # generate + auto-wire into @Module
matcha add sse                             # add a capability (sse|stream|buffer) to your controller

The starter

matcha new <name> (no flags) scaffolds a live app: it serves an index.html with the green-tea logo and streams a rotating zen message over @Sse('/zen'). Open the browser and it's already alive — matcha run boots it.

create / add auto-wiring

create and add edit your TypeScript with tree-sitter: they insert imports and wire pieces into the right @Module array or controller. Edits are idempotent and revert themselves if they would break the file's syntax. Pass --check to create to type-check with your project's runtime afterward.

Runtime detection

matcha run picks the runtime by precedence, first match wins:

  1. matcha.toml — runtime = "node" | "deno" | "bun"
  2. deno.json / deno.jsonc → deno
  3. bun.lockb / bun.lock → bun
  4. package.json → node

Edge is a deploy target, not a matcha run target.

License

MIT — same as the green-tea framework. Contributions require a DCO sign-off (git commit -s).

S
Description
The green-tea CLI: scaffold a project, generate controllers, steps and providers already wired into their module, and run with your runtime detected. One native binary, no JS runtime needed to install it.
Readme MIT
760 KiB
0 Stars 3 Watchers 0 Forks
2026-08-07 22:13:19 +00:00
Languages
Rust 92.5%
Shell 5.8%
TypeScript 1.4%
HTML 0.3%