Canarytokens
@mgreten/canarytokensv2026.11.06.1
01README
Normalize caller-supplied Canarytoken incidents with deterministic bounded deduplication, and optionally create preview-confirmed web tokens against one pinned self-hosted server through a separate creator model.
02Behaviors
@mgreten/canarytokensv2026.07.29.1model.ts
fn ingest(events: array)
Normalize supplied Canarytoken events, deduplicate bounded repeats, and persist response guidance. No network or notification side effects.
| Argument | Type | Description |
|---|---|---|
| events | array | Caller-supplied authorized Canarytoken observations |
fn acknowledge(keys: array)
Mark persisted incidents as operator-acknowledged; does not notify, close provider incidents, or change token deployment.
| Argument | Type | Description |
|---|---|---|
| keys | array |
Resources
canaryIncidentReport(infinite)— Current normalized Canarytoken incidents, deduplication decisions, acknowledgements, and response guidance
@mgreten/canarytokens/creatorv2026.07.29.1creator.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiEndpoint | string | Exact HTTPS URL of the self-hosted Canarytokens /generate endpoint. The method never accepts a per-call override. |
| webhookUrl | string | Alert webhook attached to every created token. Wire this from a Swamp vault; it may contain an ingestion secret. |
| timeoutSeconds? | number | Provider request timeout in seconds |
fn preview(requestId: string, label: string)
Validate and persist a safe preview. Makes no provider request and returns the confirmation required by create.
| Argument | Type | Description |
|---|---|---|
| requestId | string | Unique non-secret idempotency key chosen by the operator |
| label | string | Non-secret token label sent to Canarytokens as its memo |
fn create(requestId: string, label: string)
Create exactly one web Canarytoken after exact preview confirmation. Redirects are refused and ambiguous retries are blocked.
| Argument | Type | Description |
|---|---|---|
| requestId | string | Unique non-secret idempotency key chosen by the operator |
| label | string | Non-secret token label sent to Canarytokens as its memo |
fn inventory()
Return bounded, non-secret creation receipts
Resources
creatorPreview(1d)— Safe preview and confirmation value for one proposed token
creatorInventory(infinite)— Bounded non-secret token-creation receipts
creatorReceipt(infinite)— Durable non-secret receipt preserving one request's idempotency decision even after bounded inventory eviction
createdToken(infinite)— Generated token material; Swamp stores every field in its configured vault
03Previous Versions
2026.10.14.1MIT(was none)
Adds SPDX license metadata and updates the package release; model schemas and behavior versions are unchanged.
2026.07.29.1
Added 1 behaviors
2026.07.28.1
04Stats
A
100 / 100
Downloads
34
Archive size
23.1 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
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
05Platforms