{"id":15097762,"url":"https://github.com/sombriks/sample-htmx-koa","last_synced_at":"2025-08-03T06:42:17.120Z","repository":{"id":224449481,"uuid":"763188109","full_name":"sombriks/sample-htmx-koa","owner":"sombriks","description":"sampling htmx using nodejs ecosystem ","archived":false,"fork":false,"pushed_at":"2024-02-29T23:27:29.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T17:44:33.345Z","etag":null,"topics":["ava","htmx","knexjs","koajs","nodejs","nunjucks","sqlite3","study-project","supertest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sombriks.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-25T19:27:35.000Z","updated_at":"2024-05-13T22:03:01.000Z","dependencies_parsed_at":"2024-03-01T00:30:08.790Z","dependency_job_id":null,"html_url":"https://github.com/sombriks/sample-htmx-koa","commit_stats":null,"previous_names":["sombriks/sample-htmx-koa"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-htmx-koa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-htmx-koa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-htmx-koa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-htmx-koa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sombriks","download_url":"https://codeload.github.com/sombriks/sample-htmx-koa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245853912,"owners_count":20683268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ava","htmx","knexjs","koajs","nodejs","nunjucks","sqlite3","study-project","supertest"],"created_at":"2024-09-25T16:40:28.061Z","updated_at":"2025-03-27T13:30:17.536Z","avatar_url":"https://github.com/sombriks.png","language":"JavaScript","readme":"# [sample-htmx-koa][repo]\n\nSampling htmx using nodejs ecosystem so i can compare with [this one][other].\n\n## How to run\n\n```bash\nnpm install\nnpm run dev\n```\n\n## How to test\n\n```bash\nnpm install\nnpm run coverage\n```\n\nCheck the small todo list on \u003chttp://localhost:3000\u003e\n\n## Noteworthy\n\n- [Koa][koa] has a nice [render/view middleware][koa-view] supporting a lot of\n  [templating languages][temp-langs].\n- [Nunjucks][njk] was chosen by no special reason except the good documentation.\n  It is superior to velocity in some ways, but the point isn't that but show how\n  [htmx][htmx] behaves well with literally any server side templating engine.\n- Thanks to [koa-bodyparser][body-parser] the ui sends form data to controller\n  and tests send json yet no problem due the simple nature of data. The\n  middleware does the conversion in a very transparent way. I might need to\n  improve testcase in future to send form data as well.\n\n## Next steps\n\n- [X] ~~better logging~~ we configured [cabin][cabin]/[signale][signale]\n- [X] write tests with [ava][ava]\n- [ ] field to search for todos\n- [ ] detailed comparison with javalin version\n- [ ] docker\n- [ ] other database engine\n\n[repo]: https://github.com/sombriks/sample-htmx-koa\n[other]: https://github.com/sombriks/sample-htmx-javalin\n[koa]: https://koajs.com/\n[koa-view]: https://github.com/ladjs/koa-views\n[temp-langs]: https://github.com/tj/consolidate.js#supported-template-engines\n[njk]: https://mozilla.github.io/nunjucks/getting-started.html\n[htmx]: https://htmx.org\n[cabin]: https://cabinjs.com\n[signale]: https://github.com/klaudiosinani/signale\n[ava]: https://github.com/avajs/ava\n[body-parser]: https://github.com/koajs/bodyparser\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsombriks%2Fsample-htmx-koa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsombriks%2Fsample-htmx-koa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsombriks%2Fsample-htmx-koa/lists"}