Pageboy (pboy / pb)
Local-first Zero-Ops event orchestrator for Python: Telegram Bot API long-poll and Slack Socket Mode wake-ups → topic-matched hooks (exec) on your machine. CloudEvents-shaped events, loopback-only daemon + /ui, no public webhook URL.
Alpha on PyPI. Jira/Confluence are not daemon webhooks — hook programs call their REST APIs. → docs/architecture-channels.md
Install · run
uvx pboy ui
# pin: uvx pboy@0.1.0 ui
Open http://127.0.0.1:8080/ui.
No login — API and UI are reachable only from this machine (loopback).
| Path | Role |
|---|---|
/ui |
Hooks · events · executions |
/ui/settings |
Telegram / Slack tokens · channel on/off · Telegram allowlist pairing |
Default data locations: DB ~/.local/share/pboy/pboy.db · encryption key ~/.config/pboy/secret.key
First scenario (Telegram)
- Create a bot token with @BotFather.
- In
/ui/settings: paste the Telegram token → save → Enable → pair your chat with the 6-digit code (or fill the Allowlist field). Prefer this UI path over env vars. An empty allowlist allows any chat that messages the bot — pair before attaching sensitive hooks. - Register a hook (second shell while the daemon is up — CLI auto-connects to
http://127.0.0.1:8080):
uvx pboy hook register \
--name tg-echo \
--topic 'telegram:message' \
--exec 'echo hello-from-pboy' \
--timeout 30
On Windows, if echo fails: --exec 'cmd /c echo hello-from-pboy'
- Message the bot in Telegram →
/uishows the event and execution. - (Optional) Reply via the bot:
uvx pboy event complete <event_id> --summary 'Resolved' --sync telegram
Slack needs both a bot token (xoxb-) and an app token (xapp-, connections:write) for Socket Mode. Full steps: src/pboy/channels/README.md
Operator guide
Deploy/restart, happy-path checklist, channel/hook/--daemon-url split-brain and 403 troubleshooting:
docs/operator.md
Security (short)
Pageboy is local-only. It binds loopback only; every request must come from the same machine with a local Host. LAN / 0.0.0.0 are not supported. Do not put a reverse proxy in front (rewriting Host to localhost makes remote clients look local). Other local users/processes on the same machine can also reach the daemon.
Production checklist · Telegram SSRF policy (fixed api.telegram.org, no user-controlled URLs) · inbound allowlist · local API/execution disclosure · known limits:
docs/security-contract.md
Layman path needs no environment variables — configure channels in /ui/settings.
CLI / PB_* overrides (split-brain, tokens, paths): docs/operator.md.
Common commands
uvx pboy --help
uvx pboy channel list
uvx pboy hook register --name ... --topic 'telegram:message' --exec '...' --timeout 30
uvx pboy event list
uvx pboy event get <id> # omit execution stdout/stderr
uvx pboy event get <id> --verbose # include streams (local trust)
uvx pboy event complete <id> --summary '...' --sync telegram
Developers
git clone https://github.com/fritzprix/pboy.git
cd pboy
uv sync --extra dev
uv run pboy ui
uv run pytest -q
uv run ruff check src tests
uv run mypy src
./scripts/smoke_demo.sh
Ops / PB_* env: docs/operator.md · Security: docs/security-contract.md
Release: docs/releasing.md · skill release patch|minor|major
Roadmap: ROADMAP.md · Issues
UI / channels: src/pboy/ui/README.md · src/pboy/channels/README.md
Filters
Supported: .path.to.field == "value" / !=
Other expressions are fail-closed (never match).
HTTP API (direct calls)
OpenAPI is available while the daemon is running at http://127.0.0.1:8080/docs (/openapi.json).
1. Event inject (POST /v1/events) — expected payload per source
POST /v1/events normalizes platform fields into CloudEvent data (summary, description, channel_id, entity_key, actor, …) via EventNormalizer, based on source (telegram · slack · jira · confluence · generic). A payload shape that does not match source yields empty data.summary / description.
- Telegram (
source: "telegram", topictelegram:message):curl -X POST http://127.0.0.1:8080/v1/events \ -H 'Content-Type: application/json' \ -d '{ "source": "telegram", "payload": { "message": { "message_id": 42, "chat": {"id": 123456789}, "from": {"id": 987654321, "username": "alice"}, "text": "hello from curl" } } }'
- Slack (
source: "slack", topicslack:message):{ "source": "slack", "payload": { "event": { "client_msg_id": "msg-1", "channel": "C01234567", "thread_ts": "1700000000.000100", "user": "U01234567", "text": "deploy status?" } } }
- Jira (
source: "jira", topicsjira:issue.created/jira:issue.updated):{ "source": "jira", "payload": { "webhookEvent": "jira:issue_created", "issue": { "id": "10001", "key": "PROJ-123", "fields": { "summary": "Login page 500 error", "description": "Steps to reproduce...", "priority": {"name": "High"}, "project": {"key": "PROJ"}, "creator": {"accountId": "acc-1", "displayName": "Alice"}, "labels": ["bug"] } } } }
- Confluence (
source: "confluence", topicconfluence:page.updated):{ "source": "confluence", "payload": { "page": { "id": "98765", "title": "Runbook", "body": {"storage": {"value": "<p>Updated content</p>"}}, "version": {"number": 2} }, "space": {"key": "ENG"}, "user": {"accountId": "acc-1", "displayName": "Alice"} } }
- Generic (
source: "generic"):{"type": "com.custom.event", "data": {...}}(or an arbitrary JSON object stored asdata).
2. Event complete (POST /v1/events/{event_id}/complete) — sync type
- The CLI (
pboy event complete <id> --sync telegram) accepts a comma-separated string, but the HTTP APIsyncfield is a string array (list[str]) (e.g.["telegram"]).
curl -X POST http://127.0.0.1:8080/v1/events/<event_id>/complete \
-H 'Content-Type: application/json' \
-d '{
"summary": "Resolved",
"sync": ["telegram"]
}'
License
Apache-2.0
Metadata
Release files for pboy 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pboy-0.2.0.tar.gz | 254.3 kB | With provenance | Details for pboy-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pboy-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pboy-0.2.0-py3-none-any.whl |
Total release size: 373.4 kB
Release files / pboy-0.2.0.tar.gz
| Download URL | pboy-0.2.0.tar.gz |
|---|---|
| Size | 254.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53915b5daa199a7bf38c2dd0a55100b7b64a1dfc79cceb9f9c40626add6bd022
|
|
BLAKE2b-256 checksum How to use checksums |
e0cc8c1d27ce993c282cf009f347df5424f28bcf6d200cc88a63de12c9f14d67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.
Transparency logRelease files / pboy-0.2.0-py3-none-any.whl
| Download URL | pboy-0.2.0-py3-none-any.whl |
|---|---|
| Size | 119.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39f310111245e8b3eb83bde4fa95b520506df6983007eb4cda373bf4e0504a97
|
|
BLAKE2b-256 checksum How to use checksums |
dd97a0e9e05c564a574bf623f15e9ba2a1c5e5271d413a49cd7e33dbaa1a0689
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.
Transparency logSecurity for pboy 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pboy-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.