posthtml-fetch

JSON →
library 4.0.3 ·javascript
verified Jun 7, 2026

PostHTML plugin that fetches remote or local content and interpolates it into HTML using posthtml-expressions. Current stable version: 4.0.3. Release cadence is irregular; the plugin is mature and stable. Key differentiators: simple declarative <fetch> tag, supports JSON and text responses, integrates with PostHTML ecosystem, uses ofetch under the hood for HTTP, and allows configuration of tag names, URL attribute, and expression options. It is designed for server-side rendering and build-time content injection, not for dynamic client-side fetching.