Beeper
@gklijs/beeperv2026.10.18.1
01README
Integrate the Beeper Desktop local API with swamp: probe account health, list chats and messages, send messages from workflows, and introspect the access token.
02Behaviors
@gklijs/beeperv2026.10.18.1beeper.ts
fn health()
Check that the Beeper Desktop API is reachable and summarize account connectivity
fn listChats(limit?: number, maxChats?: number, accountIDs?: array, cursor?: string, direction?: enum)
List recent chats across all Beeper accounts, newest first
| Argument | Type | Description |
|---|---|---|
| limit? | number | Chats per page (Beeper maximum is 200). |
| maxChats? | number | Overall cap across pages; sets `truncated` when reached. |
| accountIDs? | array | Limit to specific account IDs. |
| cursor? | string | Opaque pagination cursor. |
| direction? | enum | Pagination direction used with `cursor`. |
fn listMessages(chatID?: string, maxMessages?: number, cursor?: string, direction?: enum)
Read recent messages from a Beeper chat
| Argument | Type | Description |
|---|---|---|
| chatID? | string | Chat to read; falls back to globalArguments.defaultChatID. |
| maxMessages? | number | Overall cap across pages; sets `truncated` when reached. |
| cursor? | string | Opaque pagination cursor. |
| direction? | enum | Pagination direction used with `cursor`. |
fn sendMessage(chatID?: string, text: string, replyToMessageID?: string)
Send a text message to a Beeper chat
| Argument | Type | Description |
|---|---|---|
| chatID? | string | Destination chat; falls back to globalArguments.defaultChatID. |
| text | string | Message body. |
| replyToMessageID? | string | Message ID to reply to. |
fn checkToken()
Introspect the Beeper access token and report its status and expiry
fn searchMessages(query: string, maxMessages?: number, chatIDs?: array, accountIDs?: array, sender?: string, dateAfter?: string, dateBefore?: string, cursor?: string, direction?: enum)
Search messages across chats via /v1/messages/search (literal word match)
| Argument | Type | Description |
|---|---|---|
| query | string | Literal word to search for. |
| maxMessages? | number | Overall cap across pages (API returns max 20 per page). |
| chatIDs? | array | Limit to specific chat IDs. |
| accountIDs? | array | Limit to specific account IDs. |
| sender? | string | "me", "others", or a user ID. |
| dateAfter? | string | ISO-8601 lower bound. |
| dateBefore? | string | ISO-8601 upper bound. |
| cursor? | string | Opaque pagination cursor. |
| direction? | enum | Pagination direction used with `cursor`. |
fn broadcast(chatIDs: array, text: string, replyToMessageID?: string, queueOnFailure?: boolean)
Send the same text to multiple chats; transient failures are queued for flushQueue
| Argument | Type | Description |
|---|---|---|
| chatIDs | array | Destination chats (max 50 per call). |
| text | string | Message body sent to every chat. |
| replyToMessageID? | string | Message ID to reply to (same value used for every chat). |
| queueOnFailure? | boolean | Queue chats that fail with a transient error for later flushQueue. |
fn queueMessage(chatID?: string, text: string, replyToMessageID?: string)
Queue a message in the outbox for later delivery via flushQueue
| Argument | Type | Description |
|---|---|---|
| chatID? | string | Destination chat; falls back to globalArguments.defaultChatID. |
| text | string | Message body. |
| replyToMessageID? | string | Message ID to reply to. |
fn flushQueue(maxFlush?: number)
Attempt delivery of queued outbox messages (pass pending from the outbox resource)
| Argument | Type | Description |
|---|---|---|
| maxFlush? | number | Maximum queued messages to attempt per call. |
Resources
health(7d)— Account connectivity snapshot from the Beeper Desktop API
chats(7d)— Most recent chats across all Beeper accounts
messages(30d)— Recent messages read from one Beeper chat
message(90d)— A message sent through Beeper
token(7d)— Access-token introspection result
search(7d)— Cross-chat message search results
broadcast(30d)— Multi-chat broadcast result
outbox(30d)— Retry queue for messages that failed with transient errors
03Workflows
@gklijs/beeper-poll-alerts3f6a1c2e-7b4d-4e8f-9a0c-5d2e6f7a8b9c
Poll a Beeper chat for new messages, search across chats for a keyword, forward a summary to the on-call chat, and flush any queued retries. Runnable documentation for @gklijs/beeper: shows the listMessages-then-search-then-send wiring and the flushQueue retry step.
poll-alerts
1.read-latest${{ inputs.beeperModel }}.listMessages— Read the latest messages from the alert chat.
2.search-keywords${{ inputs.beeperModel }}.searchMessages— Search across chats for the alert keyword.
3.forward${{ inputs.beeperModel }}.sendMessage— Forward the summary to the on-call chat.
4.flush-retries${{ inputs.beeperModel }}.flushQueue— Deliver queued messages from earlier transient failures.
04Previous Versions
2026.10.17.1MIT
05Stats
A
100 / 100
Downloads
9
Archive size
18.3 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
Repository
https://github.com/gklijs/beeper-swampbehavior-spelling1 accepted
- (extension) — Beeper Desktop integration targets the current swamp release; the behavior spelling is the current convention.
07Platforms