pocketbase-templ

Build PocketBase apps with type-safe Go templ templates and HTMX.

Updated Sep 28, 2025
One-click install
npx skills add https://github.com/jbhicks/sound-cistern --skill pocketbase-templ
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pocketbase-templ
Source: https://github.com/jbhicks/sound-cistern/tree/main/skill/pocketbase-templ
Command: npx skills add https://github.com/jbhicks/sound-cistern --skill pocketbase-templ

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides Go developers in building modern PocketBase apps using the Templ template engine to deliver type-safe, maintainable UI templates.

Core Features & Use Cases

  • Type-safe templating: Build Go templates that render PocketBase data with compile-time checks.
  • PocketBase integration: Structure projects with conventional layouts (views/, pb_migrations/, pb_data/, public/) for predictable development.
  • HTMX-powered UI: Enable dynamic, responsive interfaces with minimal JavaScript, improving UX for admin dashboards and content portals.
  • Use Case: Rapidly scaffold dashboards and admin panels that scale with data models in PocketBase.

Quick Start

Install the templ CLI: go install github.com/a-h/templ/cmd/templ@latest Generate templates: make templ Run the development server: make dev Visit http://127.0.0.1:8090 to see the app in action.

Frequently Asked Questions about pocketbase-templ

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

FAQPage Schema
How do I build type-safe PocketBase apps with Go templates?▼

You can build type-safe PocketBase apps by using the Templ template engine to render data with compile-time checks, structuring your project with conventional layouts like views/ and pb_migrations/ for maintainable UI development.

What is the best way to create dynamic admin dashboards in PocketBase?▼

The best way to create dynamic admin dashboards in PocketBase is by integrating HTMX with Templ templates, enabling responsive, data-driven interfaces with minimal JavaScript for an improved user experience.

Do I need the Templ CLI to develop PocketBase web apps?▼

Yes, you need the Templ CLI installed to generate Go templates, alongside a standard Go environment and an existing PocketBase project to implement templ-driven routes, components, and views.

How does HTMX integration work with PocketBase and Templ?▼

HTMX integration works with PocketBase and Templ by rendering type-safe Go templates on the server and swapping HTML fragments dynamically, allowing you to build responsive interfaces without writing heavy JavaScript.

What is the conventional project layout for a PocketBase app using Templ?▼

The conventional project layout for a PocketBase app using Templ includes views/ for templates, pb_migrations/ for database migrations, pb_data/ for storage, and public/ for static assets to ensure predictable development.

Can I use compile-time checks for PocketBase data rendering in Go?▼

Yes, you can use compile-time checks for PocketBase data rendering by leveraging the Templ template engine, which ensures your Go templates are type-safe and errors are caught during the build process rather than at runtime.