SkillTide Submit
Official descriptionOpen source7d ago
ALE7506/text-metrics-analyzer

ALE7506/text-metrics-analyzer

PretextPlugin 2026 – Deep MCP Tools for DOM-Free Text Layout & Measurement
View on GitHub ↗Direct link · no redirect page
Star count
2 ★ · ALE7506/text-metrics-analyzer · read from the repository page · (checked 2026-10-16 20:00:20)
Source
read directly from its GitHub page · type: open-source project
Harvest history
first seen 2026-10-10 · last seen 2026-10-10 · seen 2× · listed by 1 sources
Score
score 103 · 2 ★ · 1 sources · repo
Install
pip install textforge-ai
FAQ (answers come from our records)
How do I install it?
The repository provides this install command: pip install textforge-ai. It comes from the repository itself; we cannot guarantee it runs as-is in your client.
Who is it for?
We filed it under these tags: 开源项目. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository ALE7506/text-metrics-analyzer;first catalogued 2026-10-10;last seen 2026-10-10。There is no official certification or quality rating here — we record sources and dates only.
Third-party quality signals

TextForge AI: Intelligent Text Measurement & Layout Control for Large Language M

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Overview
TextForge AI is a powerful pretext plugin and knowledge layer that equips Claude, GPT-4, and other large language models with deep, DOM-free text measurement, layout intelligence, and precise spatial reasoning. Inspired by the PretextPlugin ecosystem, TextForge AI reimagines how AI models understand and manipulate text geometry without relying on browser-based Document Object Models. This repository provides a complete toolkit of skills, MCP (Model Context Protocol) tools, and reference documentation for developers building AI-native applications that demand pixel-perfect text layout, advanced typography control, and robust text measurement capabilities in zero-browser environments.
Think of TextForge AI as the architect's blueprint for language models — where every character, line, and paragraph is measured with surgical precision, allowing AI to reason about text in physical space rather than abstract tokens. This is not just another plugin; it is a cognitive bridge between linguistic understanding and visual layout design.
Why TextForge AI Matters
Imagine asking an AI model to write a headline that fits a 300-pixel container or to generate a table with perfect column alignment. Without TextForge AI, the model operates blindly, guessing at dimensions and layouts. This plugin transforms the AI into a text engineer, capable of calculating exact widths, heights, and layout constraints in real-time. For developers, this means the end of "close enough" formatting and the beginning of AI-generated content that looks like a professional designer crafted it.
Key Features
1. DOM-Free Text Measurement Engine
- **Zero-browser dependency** — measure text strings using canvas-like rendering algorithms
- **Character-level bounding box calculation** with sub-pixel accuracy
- **Unicode-aware measurement** for CJK characters, Arabic scripts, and emoji sequences
- **Variable font support** including weight, width, and optical size axes
2. MCP Tools for Spatial Text Reasoning
- **TextWidthEstimator** — Calculate exact pixel width of any string given font properties
- **LayoutOptimizer** — Distribute text across containers with smart line breaking
- **OverlapDetector** — Identify and resolve text collisions in complex layouts
- **MultiFontComparator** — Compare rendering differences across font families
3. AI-Native API Integration
- **OpenAI API compatibility** — Works seamlessly with GPT-4o, GPT-4 Turbo
- **Claude API integration** — Optimized for Claude's function calling and tool use
- **Custom skill definitions** — Teach any LLM to think in terms of text geometry
4. Responsive Layout Intelligence
- **Adaptive typing** — Auto-adjusts font sizes based on container dimensions
- **Breakpoint-aware text generation** — Produce content that fits mobile, tablet, and desktop
- **Dynamic hyphenation** — Language-specific word breaking for clean text flow
5. Multilingual Support
- 120+ language scripts supported
- Right-to-left (RTL) and bidirectional text measurement
- Vertical writing mode for Japanese and Chinese
Mermaid Diagram: TextForge AI Architecture
Getting Started
Prerequisites
- Python 3.9+ or Node.js 18+
- An active OpenAI or Claude API key
- Familiarity with LLM function calling patterns
Installation via NPM
Installation via Pip
Quick Start — Python
Example Profile Configuration
Configure TextForge AI for your specific LLM environment. Below is a sample profile that activates all measurement and layout tools:
Example Console Invocation
Demonstrate TextForge AI capabilities directly from your terminal:
Emoji OS Compatibility Table
Source
github · https://github.com/ALE7506/text-metrics-analyzer
Browse by field
Open source
Traction
2 ★
added
7d ago

More in Open source

All 731 in Open source →

Filed under

Every tag opens the full list for that filter. Counts are the live catalogue figures.

Browse all fields →

← Back to index