Skip to content

standalone cursor codec - #409

Merged
Lakes41 merged 4 commits into
Adamantine-guild:mainfrom
Jumongweb:opaqueCursorPagination
Sep 5, 2026
Merged

standalone cursor codec#409
Lakes41 merged 4 commits into
Adamantine-guild:mainfrom
Jumongweb:opaqueCursorPagination

Conversation

@Jumongweb

Copy link
Copy Markdown
Contributor

Closes #351

Summary

  • Add @guildpass/cursor-codec as a standalone workspace package for opaque API pagination cursors.
  • Encode deterministic v1 cursor payloads as URL-safe payload.signature tokens.
  • Protect cursors with externally supplied HMAC-SHA256 secrets and timing-safe signature verification.
  • Return typed decode failures for malformed, oversized, tampered, invalid, and unsupported-version cursors.

Tests

  • pnpm typecheck
  • pnpm build
  • pnpm test

@Lakes41

Lakes41 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This PR cannot be merged automatically because it has merge conflicts.

Please update the branch with the latest base branch and resolve the conflicts.

After the conflicts are resolved and checks pass, the automation can review it again.

@Lakes41

Lakes41 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This PR cannot be merged automatically because one or more workflow checks failed.

Please review the failed checks, push a fix, and wait for the workflows to pass.

After the checks pass and there are no merge conflicts, the automation can review it again.

@Lakes41
Lakes41 merged commit fa8bc60 into Adamantine-guild:main Sep 5, 2026
2 checks 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.

Build a secure opaque cursor pagination codec for GuildPass APIs

2 participants