notmyhostname/posse
Composer 安装命令:
composer require notmyhostname/posse
包简介
POSSE plugin for Kirby CMS
README 文档
README
This plugin enables Publish (on your) Own Site, Syndicate Elsewhere (POSSE) functionality for your Kirby site. Automatically syndicate your posts to Mastodon, Bluesky, and Nostr, or manually decide which ones you want to syndicate.
Features
- Automatically syndicates your posts to Mastodon, Bluesky, and Nostr
- Customizable post template with support for title, URL and tags
- Queue system for managing which posts get syndicated when
- Configurable delay before syndication (To fix typos, etc.)
- Support for syndication image limits (Up to 4 images) and image size presets
- Automated cron job endpoint for scheduled syndication
- SQLite database for storing syndication history and queue
Installation
- Download or clone this repository to
/site/plugins/posse - Configure the plugin through the Panel at "POSSE > Settings"
Optional: Add /site/db/posse.sqlite and /site/config/posse.yml to .gitignore for git-based deployment strategies.
Configuration
Everything related to the plugin can be configured through the Kirby Panel. The automated syndication feature requires Basic Auth to be enabled in your config.php:
return [ 'api.basicAuth' => true ];
Configuration File Structure
The plugin stores all settings in a YAML file at site/config/posse.yml, making settings persistent even when reinstalling the plugin. The posse.yml file contains all plugin settings with the following structure:
# Content types to track (post, photo, etc.) contenttypes: post: true photo: true # Delay in minutes before syndication syndication_delay: 60 # Post template using placeholders: {{title}}, {{url}}, {{tags}} template: | {{title}} {{url}} {{tags}} services: mastodon: enabled: true instance_url: https://mastodon.social api_token: your-api-token image_limit: 4 bluesky: enabled: true instance_url: https://bsky.social api_token: yourname.bsky.social:1234-4567-... image_limit: 4 nostr: enabled: true private_key: nsec1... relay_url: wss://relay.damus.io image_limit: 4
Database
The plugin uses SQLite to store the syndication history and queue. The database file is automatically created and located at:
/site/db/posse.sqlite
This database tracks which posts have been syndicated to which services and manages the queue of pending syndications.
Automated Syndication
To set up automated syndication with a cron job:
- Make sure Basic Auth is enabled in your config.php
- Set up a cron job that runs a few times per hour. In this example every 10 minutes:
*/10 * * * * curl -s -u "USERNAME:PASSWORD" "https://yourdomain.com/api/posse/cron-syndicate" > /dev/null 2>&1
Replace USERNAME and PASSWORD with your Kirby panel credentials.
For monitoring with Healthchecks.io:
*/10 * * * * curl -s -u "USERNAME:PASSWORD" "https://yourdomain.com/api/posse/cron-syndicate" && curl -fsS -m 10 https://hc-ping.com/YOUR-UUID > /dev/null 2>&1
Post Templates
The post template supports these placeholders:
{{title}}- The post title{{url}}- The URL to your post{{tags}}- Hashtags generated from the post's tags
Example template:
{{title}}
{{url}}
{{tags}}
License
MIT License
notmyhostname/posse 适用场景与选型建议
notmyhostname/posse 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 59 次下载、GitHub Stars 达 20, 最近一次更新时间为 2025 年 05 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 notmyhostname/posse 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 notmyhostname/posse 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 59
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-20
