comments http.zig api for sccl.cc & bred.sccl.cc
  • Zig 99.7%
  • Dockerfile 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
scclie 14601b64c2
All checks were successful
deploy / deploy (push) Successful in 1m20s
nickname endpoint
2026-09-22 17:26:49 +03:00
.forgejo/workflows fix deploy(install zig) 2026-09-20 22:03:04 +03:00
migrations persist matrix since, idempotent owner replies 2026-09-22 16:51:21 +03:00
src nickname endpoint 2026-09-22 17:26:49 +03:00
.gitignore init 2026-09-20 19:17:41 +03:00
build.zig switch from tg to matrix for notify 2026-09-21 08:47:50 +03:00
build.zig.zon init 2026-09-20 19:17:41 +03:00
Dockerfile use deb instead of alpine for glibc compatibility 2026-09-20 22:19:48 +03:00
README.md init 2026-09-20 19:17:41 +03:00

comments.pierdol.ing

anon comment system api with tg moderation built with zig + httpz + pogsql

i use it on sccl.cc/guestbook/ and bred.sccl.cc/

api

  • GET /health # status
  • GET /api/threads/:id/comments?since=<timestamp> # fetch approved comments
  • POST /api/threads/:id/comments # submit comment (pending moderation)
  • POST /api/comments/:id/approve # approve comment (requires X-Bot-Token)
  • POST /api/comments/:id/delete # delete comment (requires X-Bot-Token)

stack

  • zig 0.16.0 + httpz for HTTP
  • pgsql storage
  • telegram bot for moderation notifications
  • comments rendered as markdown
  • rate limiting: 60 req/min (get), 5 req/min (post)