gastro

Generate type-safe Go code from .gastro frontmatter and HTML templates.

8|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/andrioid/gastro --skill gastro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gastro
Source: https://github.com/andrioid/gastro/tree/main/.agents/skills/gastro
Command: npx skills add https://github.com/andrioid/gastro --skill gastro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gastro makes building server-rendered Go apps easier by allowing developers to author UI as .gastro files that combine Go frontmatter with HTML templates, generating type-safe Go code and providing built-in file-based routing.

Core Features & Use Cases

  • File-based routing with pages/ and components/ directories for clean project organization.
  • Frontmatter-driven code generation and a unified runtime for server-rendered UI.
  • Supports a dev server, static assets, and optional integration with SSE endpoints for real-time updates.

Quick Start

Scaffold a new Gastro project and start the dev server.

Frequently Asked Questions about gastro

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

FAQPage Schema
How do I build server-rendered Go web apps with file-based routing?

Server-rendered Go web apps use file-based routing by organizing UI into pages/ and components/ directories, generating type-safe Go code from frontmatter and HTML templates via a unified runtime.

What is frontmatter-driven code generation for Go templating?

Frontmatter-driven code generation for Go templating combines Go frontmatter with HTML templates in .gastro files to produce type-safe Go code, enabling a predictable development workflow for server-rendered UI.

Can I use server-sent events for real-time updates in a Go web framework?

Server-sent events are supported for real-time updates through optional SSE endpoint integration, allowing server-rendered Go apps to push live data updates to the client during the development workflow.

Does Gastro support embedded static assets for Go server-rendered apps?

Embedded static assets are supported by the Gastro runtime, allowing server-rendered Go apps to bundle and serve static files directly within the compiled binary using standard Go tooling.

What is the best way to scaffold pages and components in a Go web framework?

Scaffolding pages and components in a Go web framework is handled by using framework-mode or library-mode usage, structuring files into dedicated directories to generate type-safe Go code and built-in routing.

Do I need standard Go tooling to run a server-rendered Go app dev server?

Standard Go tooling and the Gastro runtime are required to run the dev server, enabling frontmatter-driven code generation, embedded static assets, and server-rendered UI compilation.