Skip to content

Commit ff0eb7a

Browse files
authored
Show Mastra's current mark (#1822)
The Mastra mark was Mastra's old orb. Mastra rebranded in November 2025, and the icon set most of our marks come from still ships the old one. shared/marks/mastra.svg now holds the current mark's outline exactly as Mastra publishes it (mastra.ai/favicon/new-brand/icon.svg), drawn in one colour at the size of the other single-colour marks, with its source row in shared/marks/README.md. The New Bot sheet, the agent sheet, the Agents list and Desktop's setup window all read this file. Tested: shared/marks.test.ts fails on main's file (old orb present) and passes with the new mark; the harness and harness-mark tests pass. Screenshots in Chromium and WebKit, light and dark, of the New Bot list, the chosen Mastra row, the agent sheet and the Agents list: the mark matches its neighbours in size and alignment.
1 parent 927b8db commit ff0eb7a

3 files changed

Lines changed: 38 additions & 1 deletion

File tree

‎shared/marks.test.ts‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { expect, test } from "bun:test";
2+
import { createHash } from "node:crypto";
3+
4+
/*
5+
* Mastra rebranded in November 2025 (mastra.ai/blog/rebrand). The orb the icon sets still carry is
6+
* the old mark, and the New Bot sheet showed it beside Mastra's name.
7+
* The current mark is the glyph inside Mastra's own favicon, so the vendored file holds that glyph's
8+
* path exactly as published and this pins it: anyone can re-fetch the source and compare the hash.
9+
*
10+
* curl -s https://mastra.ai/favicon/new-brand/icon.svg
11+
* (the white path; its `d` attribute hashes to the value below)
12+
*/
13+
const OFFICIAL_GLYPH_SHA256 =
14+
"ef16163e97a2014cc732ed66437a27c7ba955662d28923f231a5428ede499d5a";
15+
16+
/** The start of the old orb's outline, as @lobehub/icons-static-svg@1.103.0 still ships it. */
17+
const OLD_ORB = "M11.99.083c6.575 0 11.905 5.332 11.905 11.907";
18+
19+
const svg = await Bun.file(`${import.meta.dir}/marks/mastra.svg`).text();
20+
21+
test("Mastra's mark is the current one from Mastra's own site, not the old orb", () => {
22+
expect(svg).not.toContain(OLD_ORB);
23+
const paths = [...svg.matchAll(/\sd="([^"]+)"/g)].map((m) => m[1]);
24+
expect(paths).toHaveLength(1);
25+
const hash = createHash("sha256")
26+
.update(paths[0] ?? "")
27+
.digest("hex");
28+
expect(hash).toBe(OFFICIAL_GLYPH_SHA256);
29+
});
30+
31+
test("Mastra's mark is drawn like the other single-colour marks", () => {
32+
expect(svg).toContain('viewBox="0 0 24 24"');
33+
expect(svg).toContain('fill="currentColor"');
34+
expect(svg).toContain('width="1em"');
35+
expect(svg).toContain("<title>Mastra</title>");
36+
});

‎shared/marks/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ own repository:
1111
| `agno.svg` | [`agno-agi/docs`](https://github.com/agno-agi/docs) `favicon.png`, embedded unchanged in an SVG |
1212
| `langgraph.svg` | LangChain's own symbol, `LangChain_Symbol_Black.svg` from the brand pack on [langchain.com/brand-assets](https://www.langchain.com/brand-assets) (downloaded 2026-11-09), verbatim apart from a `<title>`. Named for the harness id it belongs to |
1313
| `langroid.svg` | [`langroid/langroid`](https://github.com/langroid/langroid) `public/logo_light.png`, scaled to 128 px and embedded in an SVG |
14+
| `mastra.svg` | The glyph from Mastra's own favicon, [mastra.ai/favicon/new-brand/icon.svg](https://mastra.ai/favicon/new-brand/icon.svg) (downloaded 2026-11-18), the mark from its November 2025 [rebrand](https://mastra.ai/blog/rebrand). Its path is verbatim; the black tile behind it is dropped and the glyph drawn in `currentColor`, scaled into the 24-unit box, with a `<title>` and `1em` sizing. The lobehub set still has the old orb, so `shared/marks.test.ts` pins this path |
1415
| `kubernetes.svg` | The Kubernetes icon from the CNCF's own artwork repository, [`cncf/artwork`](https://github.com/cncf/artwork) `projects/kubernetes/icon/color/kubernetes-icon-color.svg`, verbatim apart from a `<title>`. Used under the Linux Foundation's trademark usage guidelines, to name the project |
1516
| `unbiased.svg` | Unbiased AI's own icon, as served at `platform.unbiased.ai/logos/unbiased-icon.svg` and supplied by Unbiased AI for this row, verbatim apart from a `<title>` and `1em` sizing |
1617

‎shared/marks/mastra.svg‎

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)