{"id":51331653,"url":"https://github.com/ryanlewis/spring-kotlin-htmx","last_synced_at":"2026-07-01T23:05:00.947Z","repository":{"id":193133584,"uuid":"688190991","full_name":"ryanlewis/spring-kotlin-htmx","owner":"ryanlewis","description":"A Spring Boot demo utilising kotlinx.html and htmx","archived":false,"fork":false,"pushed_at":"2023-09-06T21:13:59.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-09-06T23:29:26.191Z","etag":null,"topics":["htmx","htmx-template","kotlin","spring","spring-boot","springboot"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/ryanlewis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-06T20:54:43.000Z","updated_at":"2023-09-06T23:29:41.424Z","dependencies_parsed_at":"2023-09-07T00:01:26.784Z","dependency_job_id":null,"html_url":"https://github.com/ryanlewis/spring-kotlin-htmx","commit_stats":null,"previous_names":["ryanlewis/spring-kotlin-htmx"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ryanlewis/spring-kotlin-htmx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlewis%2Fspring-kotlin-htmx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlewis%2Fspring-kotlin-htmx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlewis%2Fspring-kotlin-htmx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlewis%2Fspring-kotlin-htmx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanlewis","download_url":"https://codeload.github.com/ryanlewis/spring-kotlin-htmx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlewis%2Fspring-kotlin-htmx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35025993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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":["htmx","htmx-template","kotlin","spring","spring-boot","springboot"],"created_at":"2026-07-01T23:04:59.925Z","updated_at":"2026-07-01T23:05:00.935Z","avatar_url":"https://github.com/ryanlewis.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot + kotlinx.html + HTMX Pattern Showcase\n\nA showcase of common [HTMX](https://htmx.org/) patterns built with\n[Spring Boot](https://spring.io/projects/spring-boot),\n[Kotlin](https://kotlinlang.org/), and\n[kotlinx.html](https://github.com/Kotlin/kotlinx.html).\n\n- **No template engine** — kotlinx.html generates all markup in pure Kotlin\n- **No JavaScript** — HTMX handles interactivity through HTML attributes\n- **No database** — an in-memory data store keeps things simple\n\n![Home page](docs/screenshots/home.png)\n\n## Patterns Demonstrated\n\n### Active Search\n\nReal-time search-as-you-type with `hx-trigger` delay and loading indicators.\n\n![Active Search](docs/screenshots/active-search.png)\n\n### Click to Edit\n\nInline editing with `hx-get`/`hx-put` and `outerHTML` swaps between view and edit modes.\n\n![Click to Edit](docs/screenshots/click-to-edit.png)\n\n### Bulk Update\n\nSelect multiple contacts and toggle their status in batch using `hx-include` and targeted `hx-target`.\n\n![Bulk Update](docs/screenshots/bulk-update.png)\n\n### Infinite Scroll\n\nAutomatic pagination that loads more rows as you scroll, using `hx-trigger=\"revealed\"`.\n\n![Infinite Scroll](docs/screenshots/infinite-scroll.png)\n\n### Delete Row\n\nConfirmation dialogs with `hx-confirm` and smooth CSS fade-out transitions on `hx-delete`.\n\n![Delete Row](docs/screenshots/delete-row.png)\n\n### Lazy Loading\n\nDeferred content loading with `hx-trigger=\"load\"` and spinners for expensive operations.\n\n![Lazy Loading](docs/screenshots/lazy-loading.png)\n\nEach pattern page includes a \"View source pattern\" section showing the key HTMX attributes used.\n\n## Running\n\n```bash\n# Linux / macOS\n./gradlew bootRun\n\n# Windows\ngradlew.bat bootRun\n```\n\nThen visit http://localhost:8080/ in your browser.\n\n## Tech Stack\n\n- Spring Boot 3.5 with WebFlux\n- Kotlin 2.0\n- kotlinx.html 0.12 (type-safe HTML DSL)\n- HTMX 2.0\n- Pico CSS 2 (classless CSS framework)\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanlewis%2Fspring-kotlin-htmx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanlewis%2Fspring-kotlin-htmx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanlewis%2Fspring-kotlin-htmx/lists"}