Stacosys (aka STAtic blog COmment SYStem)
Find a file
Yax 030fd258d0
Some checks failed
docker / build_docker (ubuntu-latest, 3.13.1) (push) Has been cancelled
pytest / test (ubuntu-latest, 3.13.1) (push) Has been cancelled
UTF-8 messages
2025-04-04 20:00:17 +02:00
.github/workflows Fix docker build 2024-12-14 14:21:19 +01:00
dbmigration CQ 2023-11-26 17:51:51 +01:00
docker Fix docker build 2024-12-14 14:21:19 +01:00
src/stacosys UTF-8 messages 2025-04-04 20:00:17 +02:00
tests Black formatting 2024-04-12 21:36:11 +02:00
.gitignore Improve code quality 2024-09-15 14:50:13 +02:00
.pylintrc fix pylintrc warnings 2023-11-26 17:06:01 +01:00
config.ini Replace DB layer Peewee by PyDal 2022-12-01 20:35:48 +01:00
Dockerfile Fix docker build 2024-12-14 14:21:19 +01:00
LICENSE update README, licence GPL v2 upgraded to v3 2021-01-31 17:01:26 +01:00
Makefile Fix docker build 2025-03-28 20:34:45 +01:00
pyproject.toml Fix docker build 2025-03-28 20:34:45 +01:00
README.md Zaclys migration 2025-03-29 19:48:29 +01:00
uv.lock Fix docker build 2024-12-14 14:21:19 +01:00

To be updated. Moved to CodeBerg Zaclys

License: GPL v3 Python version Code style: black Flask version

Build Status - pytest Coverage Status Build status - docker image

Stacosys

Stacosys (aka STAtic blog COmment SYStem) is a fork of Pecosys trying to fix Pecosys design drawbacks and to provide a basic alternative to comment hosting services like Disqus. Stacosys works with any static blog or even a simple HTML page.

Features overview

Stacosys main feature is comment management.

Here is the workflow:

  • Readers submit comments via a comment form embedded in blog pages
  • Blog administrator receives an e-mail notification from Stacosys when a comment is submitted
  • Blog administrator can approve or drop the comment through a simple web admin interface
  • Stacosys stores approved comment in its database.

Privacy concerns: only surname, gravatar id and comment itself are stored in DB. E-mail is optionally requested in submission form to resolve gravatar id but never sent to Stacosys.

Stacosys is more or less localized (english and french).

Technically speaking, how does it work?

Stacosys offers a REST API to retrieve and post comments. Static blog is HTML-based and a piece of JavaScript code interacts with Stacosys using HTTP requests. Each page has a unique id and a request allows retrieving comments for a given page. Similarly, a form request allows to post a comment which is relayed to the administrator by e-mail. For this purpose an SMTP configuration is needed.

Little FAQ

How do you block spammers?

  • Current comment form is basic: no captcha support but protected by a honeypot.

Which database is used?

  • SQLite.

Which technologies are used?

Installation

Build and Dependency management relies on Rye but you can also use Docker image.

Build executable with pyinstaller

make build

Update dependencies and sync virtual env

rye lock --update-all
rye sync

Improvements

Stacosys fits my needs, and it manages comments on my blog for a while. I don't have any plan to make big changes, it's more a python playground for me. So I strongly encourage you to fork and enhance the project if you need additional features.