{"id":21223683,"url":"https://github.com/shtrophic/gmlgcd","last_synced_at":"2025-07-10T14:30:46.233Z","repository":{"id":255737478,"uuid":"843698687","full_name":"shtrophic/gmlgcd","owner":"shtrophic","description":"The gemlog comment daemon","archived":true,"fork":false,"pushed_at":"2024-09-20T21:43:49.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T12:18:13.819Z","etag":null,"topics":["comment-system","fastcgi","gemini","gemini-protocol"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shtrophic.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,"publiccode":null,"codemeta":null}},"created_at":"2024-08-17T06:28:04.000Z","updated_at":"2024-09-20T21:44:16.000Z","dependencies_parsed_at":"2025-01-20T12:33:54.538Z","dependency_job_id":null,"html_url":"https://github.com/shtrophic/gmlgcd","commit_stats":null,"previous_names":["sir-photch/gmlgcd","shtrophic/gmlgcd"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/shtrophic/gmlgcd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shtrophic%2Fgmlgcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shtrophic%2Fgmlgcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shtrophic%2Fgmlgcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shtrophic%2Fgmlgcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shtrophic","download_url":"https://codeload.github.com/shtrophic/gmlgcd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shtrophic%2Fgmlgcd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264590755,"owners_count":23633633,"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":["comment-system","fastcgi","gemini","gemini-protocol"],"created_at":"2024-11-20T22:52:59.466Z","updated_at":"2025-07-10T14:30:45.932Z","avatar_url":"https://github.com/shtrophic.png","language":"C","readme":"**moved to sourcehut:** https://git.sr.ht/~chrs/gmlgcd\n\n# gmlgcd\n\ngmlgcd is your gemlog companion enabling your visitors to interact with your posts.\nIt accepts FastCGI connections from a gemini server and handles them as comment requests.\n\n## Building\n\nRequirements:\n- `libevent`\n- `libconfuse`\n- `libbsd` (on linux)\n- `meson` (build)\n- `ninja` (build)\n- `fish` (test)\n\n```bash\n$ meson setup builddir --buildtype release\n\n# opional: (systemd)\n$ meson configure builddir -Dsystemddir=/etc/systemd/system\n\n$ ninja -C builddir\n$ sudo ninja -C builddir install\n```\n\n### OpenBSD\n\nWhile I am using this on Linux, I paid attention to make it compatible with and buildable on OpenBSD.\nPlatform specific functionality like landlock(7) is replaced by pledge(2) and unveil(2).\nYour mileage may vary, I haven't thouroughly tested gmlgcd on that platform, however.\n\n### Archlinux\n\nA PKGBUILD on the AUR exists: [gmlgcd](https://aur.archlinux.org/packages/gmlgcd)\n\n## Usage\n\nEdit `/etc/gmlgcd.conf` or set a different config file with `gmlgcd -c my.conf`.\nAn example configuration file is provided under [`gmlgcd.conf`](/gmlgcd.conf).\n\nThen, redirect a given location / subpath to gmlgcd via fastcgi.\nFor example, with [gmid](https://github.com/omar-polo/gmid):\n\n```nginx\nserver example.tld {\n  ...\n  location \"/add-comment/*\" {\n    fastcgi socket \"/run/gmlgcd/fcgi.sock\"\n    # or, depending on gmlgcd.conf\n    fastcgi socket tcp \"127.0.0.1\" port 1851\n  }\n}\n```\n\nThen, in your gemini server webroot, create a directory to store your comments.\nSay, your gemini webroot is at `/srv/gemini/example.tld`;\nFor every file that is supposed to receive comments, a writeable file needs to exist in `/srv/gemini/example.tld/comments`.\nSo, for `/srv/gemini/example.tld/{about.gmi,blog/post.gmi}`, `/srv/gemini/example.tld/comments/{about.gmi,blog/post.gmi}` have to exist.\nYou can then serve the `comments/` location just like any other location using your gemini server.\nIf the file does not exist, users will receive a warning indicating that comments are not enabled.\nIf the file is not writeable for gmlgcd, users will receive a warning that comments are not allowed.\n\nUsers may supply a username by prefixing their username, followed by a colon and a space: `username: comment` to set their displayed username.\nOtherwise, a name will be taken from the user certificate. User certificates are required.\nAlso, ratelimiting takes place when too many bad requests have been issued in a too short amound of time.\n\n## todo\n\nNon-exhaustive, randomly ordered list of things I still want to do, until I consider this to be complete: (Contributions welcome)\n\n- fully specify comment formatting, using a configuration string\n- configuration of quarantine (rate-limiting)\n- replace user hashes with emojis (maybe, configurable)\n- test compatibility with other gemini servers\n- write `gmlgcd.conf(5)` (and switch to manpage generation via pandoc. yikes!)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshtrophic%2Fgmlgcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshtrophic%2Fgmlgcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshtrophic%2Fgmlgcd/lists"}