Table Sort

A Go library for rendering SQLite data as sortable, searchable HTML tables driven by HTMX. A config struct defines columns (like React HOC props, but for server-rendered HTML), a generic fetch function works with any config, and a single template block renders every table. Ships with a working example app.

Tech Stack

Gohtml/templatemodernc.org/sqlitehtmx 2

Key Features

  • Config-driven columns — one reusable template renders any table
  • Column sort toggling with debounced search preserved across requests
  • Pure-Go SQLite driver, no CGo
  • Tests passing for render and SQL-source packages