diff --git a/README.md b/README.md index beb348a..eebd0d8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,15 @@ -# ๐Ÿต green-tea +

+ Green Tea +

-> A calm, type-safe HTTP framework for Node. Your API is an explicit **dependency graph** you can see, slice, and trust โ€” not a mutable bag threaded through positional middleware. +

Green Tea.

+ +

A zen, opinionated, type-safe framework.

+ +

+ Your API is an explicit dependency graph you can see, slice, and trust โ€”
+ not a mutable bag threaded through positional middleware. That's the tea. ๐Ÿต +

`@green-tea/core` โ€” **beta**, RC-track. One runtime dependency: `reflect-metadata`. Two optional peers you install only if you use them: `ws` (WebSocket / mesh) and `busboy` (multipart uploads). diff --git a/assets/logo-mono.svg b/assets/logo-mono.svg new file mode 100644 index 0000000..24b5076 --- /dev/null +++ b/assets/logo-mono.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..7bea53f Binary files /dev/null and b/assets/logo.png differ diff --git a/assets/logo.svg b/assets/logo.svg new file mode 100644 index 0000000..03eb98c --- /dev/null +++ b/assets/logo.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/package.json b/package.json index 93bc7c0..f9cb8c5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@green-tea/core", "version": "26.7.0-beta.0", - "description": "Declarative, type-safe HTTP framework. The pipeline is a graph, not a middleware chain.", + "description": "A zen, opinionated, type-safe framework โ€” your API is a graph, not a middleware chain.", "license": "MIT", "author": "green-tea contributors", "keywords": [ @@ -40,6 +40,7 @@ }, "files": [ "dist", + "assets", "README.md", "CHANGELOG.md", "LICENSE" diff --git a/src/graph-viz.ts b/src/graph-viz.ts index ee252d4..2169c03 100644 --- a/src/graph-viz.ts +++ b/src/graph-viz.ts @@ -77,6 +77,10 @@ export function toDOT(view: GraphView): string { * The whole {@link GraphView} is embedded as JSON, so all interaction is * client-side โ€” the page needs nothing from the server after it loads. */ +/** The Green Tea. mark (leaf whose venation is a dependency graph), inlined for the dev graph header. */ +const BRAND_LOGO = + ''; + export function graphHtml(view: GraphView): string { const data = JSON.stringify(view).replace(/ @@ -85,17 +89,22 @@ export function graphHtml(view: GraphView): string { + -
๐Ÿต green-tea ยท click a route for its slice ยท click a provider/step for its blast radius ยท drag to rearrange ยท click canvas to reset +
${BRAND_LOGO}Green Tea.
click a route for its slice ยท click a provider/step for its blast radius ยท drag to rearrange ยท click canvas to reset
providerstepneedsfeeds endpointHTTPSSEWS
diff --git a/website/astro.config.mjs b/website/astro.config.mjs index a331056..ea69358 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -6,8 +6,11 @@ export default defineConfig({ site: 'https://green-tea.dev', integrations: [ starlight({ - title: 'green-tea', - description: 'A calm, type-safe HTTP framework for Node โ€” your API is an explicit dependency graph.', + title: 'Green Tea.', + description: 'A zen, opinionated, type-safe framework โ€” your API is a graph, not a chain.', + logo: { src: './src/assets/logo.svg', alt: 'Green Tea' }, + favicon: '/favicon.svg', + customCss: ['./src/styles/brand.css'], tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 3 }, sidebar: [ { diff --git a/website/public/favicon.svg b/website/public/favicon.svg new file mode 100644 index 0000000..03eb98c --- /dev/null +++ b/website/public/favicon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/website/src/assets/logo.svg b/website/src/assets/logo.svg new file mode 100644 index 0000000..03eb98c --- /dev/null +++ b/website/src/assets/logo.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/website/src/content/docs/index.mdx b/website/src/content/docs/index.mdx index e3be954..ce98f9d 100644 --- a/website/src/content/docs/index.mdx +++ b/website/src/content/docs/index.mdx @@ -1,9 +1,12 @@ --- -title: green-tea -description: A calm, type-safe HTTP framework for Node โ€” your API is an explicit dependency graph you can see, slice, and trust. +title: Green Tea. +description: A zen, opinionated, type-safe framework โ€” your API is a graph you can see, slice, and trust, not a chain. template: splash hero: - tagline: Your API is an explicit dependency graph you can see, slice, and trust โ€” not a mutable bag threaded through positional middleware. + image: + file: ../../assets/logo.svg + alt: Green Tea + tagline: A zen, opinionated, type-safe framework. Your API is a dependency graph you can see, slice, and trust โ€” not a mutable bag threaded through positional middleware. That's the tea. ๐Ÿต actions: - text: Get started link: /getting-started/ diff --git a/website/src/styles/brand.css b/website/src/styles/brand.css new file mode 100644 index 0000000..0f94940 --- /dev/null +++ b/website/src/styles/brand.css @@ -0,0 +1,32 @@ +/* Green Tea. โ€” brand theme for Starlight */ +@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap'); + +/* Accent = matcha (dark theme in :root, light overridden below) */ +:root { + --sl-color-accent-low: #14352a; + --sl-color-accent: #348a5f; + --sl-color-accent-high: #b9e8cf; + --sl-color-text-accent: #6fc599; + --gt-purple: #a78bfa; +} +:root[data-theme='light'] { + --sl-color-accent-low: #d3efe1; + --sl-color-accent: #2f8a5f; + --sl-color-accent-high: #123528; + --sl-color-text-accent: #2f8a5f; + --gt-purple: #7c6cf0; +} + +/* Brand type: Zen Maru for the site title and headings */ +.site-title, +h1, h2, h3 { + font-family: 'Zen Maru Gothic', var(--sl-font, sans-serif); +} +.site-title { font-weight: 700; } +.site-title img { height: 1.7rem; width: auto; } + +/* Splash hero logo */ +.hero img { max-height: 190px; width: auto; } + +/* A little zen: soften the accent link underlines */ +a { text-underline-offset: 0.15em; }