← Projects

signwright

TypeScript · Apache-2.0 · Active

On this page

Code

The colors, the home banners, the 404 illustration, the category icons, the avatar, the favicon and the share images of this site come from one package. signwright keeps the visual identity of brunosouzas.com in code: what each color means, who the characters are and which pieces draw a diagram, so covers, diagrams and videos start from the same source.

The covers of the articles already published are not ported to it yet.

The cast

Seven characters share one skin (white body, dark outline, a visor): a character’s identity is its shape, not its color. Mira is the protagonist, Visor is the AI agent, Drone handles delivery, Kiu is the wiki and the series, Sinal is stackledger, Balão asks and approves, and Chaves is the developer. The last two arrived in 0.13.0.

The seven characters of the design system on one ground line, each with its name below: Mira, Visor, Balão, Chaves, Drone, Kiu and Sinal.

Eight reaction symbols with a fixed meaning go with the cast: idea, doubt, problem, worked, refused, pressure, liked and waiting.

The eight reaction symbols in a row, each labelled with its kind: idea, doubt, problem, worked, refused, pressure, liked and waiting.

The colors

The state colors have a fixed meaning: green is healthy, orange is blocked, yellow is transitional, red is the failure path. The drawing below also holds the brand in light and dark themes and the cover backgrounds of each track (eleven, plus the neutral), each color with its token name and hex value.

The design system palette in three groups: the state colors, the brand in light and dark themes and the cover backgrounds of each track (eleven, plus the neutral), each color with its token name and hex value.

The pieces

Each piece is a TypeScript function that returns SVG: label, sheet, code panel, gear, the 34 EIP icons, diagram boxes and message arrows. None paints a color that does not mean something. Below, a selection of the pieces, each with its name.

A selection of the library’s pieces, each with its name below.

The motion

React components for Remotion animate the same pieces: a block, an arrow that draws itself, a token that travels through the transition. The video scenes live in a separate, private repository; circuit-breaker-topology is published in the article Circuit Breaker in MuleSoft: When Retry Makes Things Worse.

The same checkout plays twice. With retry only, 20 requests become 60 calls and the payment service goes down. With a circuit breaker, the circuit opens after 5 failed calls, the other requests fail at once with CIRCUIT-BREAKER:OPEN, and after the resetTimeout a successful test call closes it again.

Circuit breaker state diagram: it starts CLOSED; goes to OPEN when the failure rate in the window exceeds the threshold, with a minimum call count; goes to HALF_OPEN when the wait period (resetTimeout) elapses; returns to CLOSED after enough successful test calls and to OPEN on any failure during the test.

Getting started

The tokens and the pieces are on npm. They need Node.js 22.12 or later.

npm install @brunosouzas/signwright
import { pill, toSvg, tokens } from "@brunosouzas/signwright";
const label = pill({ x: 60, y: 30, text: "main" });

Code for this page