Skip to content

docs: document JungleBus subscription pattern + fix TS/verify leftovers#5

Merged
kryp2 merged 1 commit into
mainfrom
docs/subscriptions-and-ts-cleanup
Jun 4, 2026
Merged

docs: document JungleBus subscription pattern + fix TS/verify leftovers#5
kryp2 merged 1 commit into
mainfrom
docs/subscriptions-and-ts-cleanup

Conversation

@kryp2

@kryp2 kryp2 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

What

1. Document the subscription pattern — the actual reason to use JungleBus. The README told you to "create a subscription" but never explained what that is or how to define the filter. New Subscriptions section covers:

  • A subscription = a server-side filter on GorillaPool's pre-indexed node, so you never sync the chain yourself
  • What to filter on (MAP/B protocol addresses, or app/wallet addresses)
  • How { type, id } maps to an independent, watchdog-monitored stream (id = on-chain filter, type = your routing label)

2. Fix two leftovers from the TS migration + AIP-verify removal:

  • Architecture diagram referenced .js source files → now .ts
  • examples/social.js still wrote a removed signer_verified column / tx.signerVerified field → dropped both, renumbered INSERT params ($1..$10)

Verification

Build clean (tsc), 11/11 vitest tests green. Docs + example only — no library API change.

…overs

The core value of JungleBus is filtering through GorillaPool's pre-indexed node
instead of syncing the whole chain yourself — but the README never explained how
to actually define that filter. Add a "Subscriptions" section covering what a
subscription is (a server-side filter you create once → an ID), what to filter on
(MAP/B protocol addresses, or app/wallet addresses), and how {type,id} maps to an
independent watchdog-monitored stream.

Also clean up two leftovers from the TS migration + AIP-verify removal:
- README architecture diagram referenced .js source files (now .ts)
- examples/social.js still wrote a removed `signer_verified` column / `tx.signerVerified`
  field; drop both and renumber the INSERT params (now $1..$10)

Build clean, 11/11 tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kryp2 kryp2 merged commit 6355de9 into main Jun 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant