{"id":15639905,"url":"https://github.com/danawoodman/bun-htmx","last_synced_at":"2025-10-29T11:02:21.436Z","repository":{"id":194442256,"uuid":"690828958","full_name":"danawoodman/bun-htmx","owner":"danawoodman","description":"An example app using Bun's built-in HTTP server + HTMX + TailwindCSS + DaisyUI","archived":false,"fork":false,"pushed_at":"2023-12-01T20:28:20.000Z","size":54,"stargazers_count":42,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T18:47:27.887Z","etag":null,"topics":["bun","daisyui","demo","example","htmx","javascript","node","tailwind","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://bun-htmx.fly.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danawoodman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-13T01:02:37.000Z","updated_at":"2025-02-26T09:51:55.000Z","dependencies_parsed_at":"2023-09-13T10:36:27.911Z","dependency_job_id":"90fc968b-be25-4e53-95cc-c81f7e8a008c","html_url":"https://github.com/danawoodman/bun-htmx","commit_stats":null,"previous_names":["danawoodman/bun-htmx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danawoodman%2Fbun-htmx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danawoodman%2Fbun-htmx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danawoodman%2Fbun-htmx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danawoodman%2Fbun-htmx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danawoodman","download_url":"https://codeload.github.com/danawoodman/bun-htmx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242619122,"owners_count":20159001,"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":["bun","daisyui","demo","example","htmx","javascript","node","tailwind","tailwindcss","typescript"],"created_at":"2024-10-03T11:28:10.756Z","updated_at":"2025-10-29T11:02:21.345Z","avatar_url":"https://github.com/danawoodman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bun + HTMX + TailwindCSS example app\n\nA simple example app using Bun and it's HTML server along with HTMX for interactivity and Tailwind + DaisyUI for styling.\n\n- [TypeScript](https://www.typescriptlang.org)\n- [Bun](https://bun.sh)\n- [HTMX](https://htmx.org)\n- [Tailwind](https://tailwindcss.com)\n- [DaisyUI](https://daisyui.com)\n- [Docker](https://docker.com)\n- [Fly.io](https://fly.io)\n\nSource code can be found in `./src`. JSX components live in `./src/components`.\n\nComponents are converted to static strings and served as HTML to the browser. HTMX is used to add interactivity to the page as needed.\n\nTailwindCSS classes can be given to any component and the `bun dev:tailwind` command will regenerate the CSS file when needed.\n\nThere is a very dumb/simple static file server in `./src/response.tsx` which takes any file in `./public` and serves it using the `Bun.file` helper. This probably shouldn't be used in any production capacity and instead you should use a static file server for these files, but it's here for demonstration purposes.\n\n## Setup\n\nClone the repo and make sure you have Bun installed, then:\n\n```sh\nbun i\n```\n\n## Development\n\n```sh\n# Run dev server with hot reload (in one tab)\nbun dev:server\n\n# Run production server (in another tab)\nbun dev:tailwind\n```\n\nNow open up \u003chttp://localhost:3000\u003e to see the app running.\n\nIf you want a custom port or to enable dev mode, create a `.env` file:\n\n```sh\nPORT=3000\nNODE_ENV=\"development\"\n```\n\n## Production\n\nBuild a compiled version of the server for running in Bun and TalwindCSS classes:\n\n```sh\nbun build:tailwind\nbun build:server\n```\n\nNow run the built production bundle:\n\n```sh\nbun start\n```\n\n## Deployment\n\nThis projet includes a Dockerfile and docker-compose.yml file so you can run anywhere Docker is supported.\n\nUsing Fly.io, you can deploy this by running:\n\n```sh\nflyctl launch\n```\n\nOn subsequent changes, run:\n\n```sh\nflyctl deploy\n```\n\n## Credits\n\nPut together by me, [Dana Woodman](https://danawoodman.com).\n\n## License\n\nMIT\n\nUse it however you please. [Tweet me](https://twitter.com/danawoodman) if you do something cool with it 🤓\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanawoodman%2Fbun-htmx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanawoodman%2Fbun-htmx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanawoodman%2Fbun-htmx/lists"}