Pular para o conteúdo
Kitbay
Skill

pretext

MITAtualizado em 11 de nov. de 2026262.606Estrelas no GitHub

An optional Hermes Agent skill for building creative browser demos with pretext, a small TypeScript library by Cheng Lou that measures and lays out multiline text without reading the DOM, returning line breaks, widths and character positions.

O que a skill ensina

An optional Hermes Agent skill for building creative browser demos with pretext, a small TypeScript library by Cheng Lou that measures and lays out multiline text without reading the DOM, returning line breaks, widths and character positions. The agent produces one self-contained HTML file with no build step, loading a pinned library version from a CDN and drawing on a 2D canvas. Suggested patterns include text flowing around moving shapes, games whose levels are made of text, ASCII effects built from real prose, kinetic typography and shrink-wrapped layouts. It asks for a dark palette, real source text and proportional fonts, explains caching the prepared text, and lists pitfalls such as font strings that differ between canvas and CSS.

O que faz

  • Flow text around moving shapes on canvas
  • Build kinetic typography demos
  • Measure text height without DOM reads
  • Start from bundled HTML templates