{"id":23408517,"url":"https://github.com/apis/go-htmx-post-css-example","last_synced_at":"2026-04-20T09:02:39.874Z","repository":{"id":269234978,"uuid":"906291920","full_name":"apis/go-htmx-post-css-example","owner":"apis","description":"Example CRUD Web application written in Go, HTMX, PostCSS","archived":false,"fork":false,"pushed_at":"2025-07-02T17:56:54.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T18:26:03.676Z","etag":null,"topics":["go-template","golang","htmx","postcss","vite"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-20T15:16:21.000Z","updated_at":"2025-07-02T17:10:28.000Z","dependencies_parsed_at":"2025-04-09T01:42:25.146Z","dependency_job_id":null,"html_url":"https://github.com/apis/go-htmx-post-css-example","commit_stats":null,"previous_names":["apis/go-htmx-post-css-example"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/apis/go-htmx-post-css-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apis%2Fgo-htmx-post-css-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apis%2Fgo-htmx-post-css-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apis%2Fgo-htmx-post-css-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apis%2Fgo-htmx-post-css-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apis","download_url":"https://codeload.github.com/apis/go-htmx-post-css-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apis%2Fgo-htmx-post-css-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32040353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go-template","golang","htmx","postcss","vite"],"created_at":"2024-12-22T15:15:13.868Z","updated_at":"2026-04-20T09:02:39.847Z","avatar_url":"https://github.com/apis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-htmx-post-css-example\n\n## Example CRUD Web application written in Go, HTMX, PostCSS\n\nThis is example Web application which is using [HTMX](https://htmx.org/) Javascript frontend library and \nframework-less CSS generated with [PostCSS](https://postcss.org/). Server side rendering done with [Go HTML \ntemplates](https://pkg.go.dev/html/template) on backend. \n\nApplication builds single executable with all frontend code and templates embedded into it.\n\n## Change History\n\n* v0.1 - Initial implementation. \n* v0.2 - Set of refactorings. Reduced payload and handling for some of the HTML actions. Also added dynamic UI button blocking in edit mode. Updated HTMX to v2. \n\n## Highlights\n\n### Frontend dependencies\n\n* [HTMX](https://htmx.org/) is a JavaScript library that streamlines web development by enabling you to define page behavior using HTML attributes and server-side logic, reducing the reliance on client-side JavaScript.\n* [Vite](https://vite.dev) is a frontend tooling framework.\n* [PostCSS](https://postcss.org/) plug-ins toolchain for consistent CSS styling and reducing assets size.\n\n### Server side Go dependencies\n* [Go HTML templates](https://pkg.go.dev/html/template) for server side rendering\n* [Chi](https://github.com/go-chi/chi) HTTP server \n* [Zerolog](https://github.com/rs/zerolog) for logging\n\nCode in this project partially based on this [repo](https://github.com/jritsema/go-htmx-tailwind-example). \nThanks a lot to an author ❤️ it was solid starting point for my HTMX Go trip! All CRUD models and Go HTML templates were \nshamelessly taken from there. \n\n## Screenshot\n\n![alt Screenshot](screenshot.png \"Screenshot\")\n\n## Build instructions\n\n```console\ncd web/frontend\nnpm i\nnpm run build\n```\n\nThis should build your frontend assets into \u003ccode\u003eweb/frontend/dist\u003c/code\u003e directory. \n\n```console\ncd ../..\ngo build .\n```\nThis should build Go executable and embed assets and templates into it.\n\n```console\n./htmx-example\n```\n\nBy default application runs on http://localhost:8080\n\n```console\n./htmx-example --Host 0.0.0.0 --Port 8081 --SimulatedDelay 1000\n```\n\nOptionally you can specify different host, port and simulate server side processing delay in milliseconds.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapis%2Fgo-htmx-post-css-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapis%2Fgo-htmx-post-css-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapis%2Fgo-htmx-post-css-example/lists"}