pretext

Measure and lay out text without DOM using the Pretext TypeScript library.

Updated May 11, 2026
One-click install
npx skills add https://github.com/heximao/agents --skill pretext-heximao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pretext
Source: https://github.com/heximao/agents/tree/main/skill-archive/docker-hermes/creative/pretext
Command: npx skills add https://github.com/heximao/agents --skill pretext-heximao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @chenglou/pretext, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill enables the creation of dynamic, text-based demos and visual effects using the Pretext library, allowing for unique and engaging text layouts.

Core Features & Use Cases

  • Text Measurement and Layout: Provides precise text measurement and layout capabilities without relying on DOM.
  • Creative Applications: Suitable for ASCII art, kinetic typography, and generative art.
  • Use Case: Design an interactive website header with text that flows around a moving orb, enhancing user engagement.

Quick Start

Use the pretext skill to create a demo that shows text flowing around a moving orb.

Frequently Asked Questions about pretext

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure text layout for ASCII art without relying on the DOM?

You can perform DOM-free text measurement and layout for ASCII art using a TypeScript library designed for creative applications. This allows precise text reflow and generative art creation in environments lacking a browser DOM.

What is kinetic typography and how can I implement interactive text demos?

Kinetic typography involves creating dynamic, moving text layouts. You can implement interactive text-based demos by utilizing libraries that support DOM-free text measurement, enabling effects like text reflowing around moving objects for enhanced user engagement.

Can I create generative art in TypeScript using text reflow around interactive elements?

Yes, you can create generative art in TypeScript with text reflowing around interactive elements. By using a DOM-free text layout library, you can design demos where text dynamically flows around moving shapes like an orb.

Does the @chenglou/pretext library support dynamic text layout for website headers?

Yes, the @chenglou/pretext library supports dynamic text layout suitable for interactive website headers. It enables DOM-free text measurement, allowing you to build headers where text flows around moving elements to increase engagement.

What are the limitations of using DOM-free text measurement for generative art?

The limitations of using DOM-free text measurement for generative art include the requirement to use the specific @chenglou/pretext dependency. Complex interactive typography relies entirely on this library's specific layout engine rather than native browser rendering.