{"id":19044607,"url":"https://github.com/brakmic/htmx_server","last_synced_at":"2026-03-19T07:52:31.698Z","repository":{"id":65354731,"uuid":"590436445","full_name":"brakmic/htmx_server","owner":"brakmic","description":"Showcase: HTMX with CrowCpp web server","archived":false,"fork":false,"pushed_at":"2023-01-18T16:02:36.000Z","size":4889,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T17:56:26.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Meson","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/brakmic.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}},"created_at":"2023-01-18T12:16:44.000Z","updated_at":"2024-04-16T00:07:16.000Z","dependencies_parsed_at":"2023-02-10T16:01:30.331Z","dependency_job_id":null,"html_url":"https://github.com/brakmic/htmx_server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brakmic/htmx_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2Fhtmx_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2Fhtmx_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2Fhtmx_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2Fhtmx_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brakmic","download_url":"https://codeload.github.com/brakmic/htmx_server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brakmic%2Fhtmx_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29779262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-08T22:46:51.184Z","updated_at":"2026-02-24T10:03:11.349Z","avatar_url":"https://github.com/brakmic.png","language":"Meson","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Web server based on CrowCpp and htmx\n\nThis web server uses [CrowCpp](https://github.com/CrowCpp/Crow) as its backend and [htmx](https://htmx.org) on the frontend.\n\nC++ in the backend provides fast, native binaries, while htmx on the frontend provides responsive web apps that don't need JS-frameworks.\n\nThis reduces code bloat on both sides.\n\n**Notice**: *This project is still in development. There is not much to see in the browser.*\n\n### Compilation\n\n* Windows\n\nWindows users will have to setup [MSYS](https://www.msys2.org/) environment first. After the installation, select the `MSYS2 MINGW64` entry in the Windows Start Menu. **Do not use the `MSYS UCRT4` or any other entry!**\n\n#### Build system\n\nIn the newly opened bash window, enter this command to install the required packages:\n\n`pacman -S git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake make mingw-w64-x86_64-c-ares mingw-w64-x86_64-jsoncpp mingw-w64-x86_64-openssl`\n\nCheck if the compiler is available with `which g++`. You should see a message like this:\n\n```shell\n$ which g++\n/mingw64/bin/g++\n```\n\nYou will also need an editor to update the environment paths, so install your preferred one, e.g. `pacman -Sy nano` or `pacman -Sy vim`\n\nOpen your `.bash_profile` with `nano .$HOME/.bash_profile` and add these three lines to the end of the file:\n\n\n```bash\nPATH=/mingw64/bin:$PATH\nexport VCPKG_DEFAULT_TRIPLET=x64-mingw-static\nexport VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-static\n```\n\nSave \u0026 close the file. Reload it with: `source $HOME/.bash_profile` or `. ~/.bash_profile`\n\nThe two triplet entries will be needed later to instruct `vcpkg` to use MinGW instead of the default Visual C++ compiler. And as we also want to compile static libraries only, we announce it by using the `static` suffix.\n\n* macOS / Linux\n\nInstall `brew` package manager and then use it to install Meson with `brew install meson`.\n\n#### Installing CrowCpp\n\nThe easiest way to install it is by using [vcpkg](https://vcpkg.io/en/index.html): \n  * Windows: `vcpkg install crow:x64-mingw-static`\n  * macOS/Linux: `vcpkg install crow`\n### Meson\n\nMy build system of choice is [Meson](https://mesonbuild.com/), because `Makefiles` are hard to maintain and I simply don't want to learn how to use `CMake`. Life is too short for user-hostile software.\n\nThere are two scripts, `buildall.sh` (macOS/Linux) and `buildall.ps1` (Windows). With these two the following steps will be executed:\n\n* Copy web files (index.html, styles etc.) to `builddir` (*only on Windows, in macOS/Linux this will be done by Meson*)\n* Initialize and run Meson:\n   * compile sources from `src`\n   * put the output binary into `builddir`\n\nBefore trying to build the project, please, adapt these two variables in the `meson.build` file:\n\n* [triplet](meson.build#L22)\n* [vcpkg_root](meson.build#L27)\n\nThe `triplet` carries the information about the host machine, e.g. `x64-osx`.\n\nThe `vcpkg_root` is the root folder containing packages installed by `vcpkg`.\n\n### Compilation\n\n* Windows: in PowerShell with `./buildall.ps1`\n* macOS/Linux: `./buildall.sh`\n\n### Usage\n\nAfter a successful compilation, run the htmx_server executable from `builddir`. \n\nOpen the page on https://127.0.0.1:8082\n\nThis demo uses SSL by default and the self-signed certificates are included.\n\n![htmx_server_macos](images/htmx_server_macos.png)\n\n![htmx_server_win](images/htmx_server_win.png)\n## LICENSE\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrakmic%2Fhtmx_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrakmic%2Fhtmx_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrakmic%2Fhtmx_server/lists"}