Skip to content

feat(gsap): add Octane useGSAP binding - #423

Merged
leonidaz merged 40 commits into
octanejs:mainfrom
jonkwheeler:jon/gsap-react-binding
Aug 9, 2026
Merged

leonidaz merged 40 commits into
octanejs:mainfrom
jonkwheeler:jon/gsap-react-binding

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Octane applications can now use GSAP's official useGSAP lifecycle contract without React.
  • The binding preserves scoped contexts, dependency cleanup, contextSafe, SSR suppression, and the upstream static registration API while keeping GSAP as an external peer.
  • A playground demo makes dependency replay and context-safe event animation directly testable.

Why

GSAP itself is framework-neutral, so no prerequisite binding migration was needed. The missing layer was the React-specific lifecycle adapter: this package replaces that layer with compiler-selected Octane hook slots and leaves GSAP's runtime and licensing boundary unchanged.

Changes

  • Add @octanejs/gsap, public types, lifecycle and SSR coverage, compatibility status, licensing disclosure, and release metadata.
  • Register @gsap/react -> @octanejs/gsap in the bridge and generated package/binding inventories.
  • Add a production-built playground demo for scoped entrance, dependency replay, and contextSafe event animations.

Validation

  • pnpm --dir packages/gsap test (2 files, 4 tests)
  • pnpm exec tsrx-tsc --noEmit -p packages/gsap/tsconfig.json
  • pnpm --dir packages/octane-mcp-server test (2 files, 34 tests)
  • pnpm --dir playground/octane build
  • pnpm changeset:check
  • targeted Prettier check for all authored package, playground, config, and changeset files
  • CLI data, binding status, parity-gap, and package inventory checks
  • browser QA: scoped entrance, reversed dependency replay, context-safe pulse, and no console errors or warnings
  • full repository pnpm typecheck
  • full repository pnpm test

Risk / follow-ups

  • GSAP remains a peer dependency under its own license; this MIT adapter does not redistribute GSAP.
  • The binding intentionally tracks the focused @gsap/react 2.1.2 useGSAP surface rather than introducing additional animation abstractions.

Post-Deploy Monitoring & Validation

  • Validation window/owner: maintainers during package publication and the first downstream install.
  • Healthy signals: package publish succeeds, @octanejs/gsap resolves with gsap@^3.12.5, the playground demo renders, and lifecycle/SSR tests remain green.
  • Failure signals: package export resolution errors, peer dependency failures, SSR import errors, leaked animations after dependency changes, or playground console errors.
  • Search terms: @octanejs/gsap, useGSAP, Cannot find package 'gsap', context.revert, and First parameter must be a function or config object.
  • Rollback trigger: revert the release if consumers cannot import the package with the documented peer range or if SSR evaluates animation effects.

Compound Engineering


Note

Low Risk
New isolated binding package with peer GSAP and test-backed parity; schema change only affects parity metadata for bindings without upstream test suites.

Overview
Adds a new @octanejs/gsap framework binding that ports @gsap/[email protected]’s useGSAP API onto Octane: callback/config/dependency overloads, scoped GSAP contexts, contextSafe, revertOnUpdate, useGSAP.register, and useGSAP.headless. Implementation uses Octane hooks and manual compiler hook slots (internal.ts); GSAP stays a peer dependency (MIT adapter, no GSAP redistribution).

Evidence and tooling: lifecycle unit tests, SSR test (effects not run on server), differential parity vs published @gsap/react, pristine/adapted type lanes, audit/react-parity.json, and Vitest projects (gsap, gsap-ssr, gsap-differential). Root bindings:typecheck includes packages/gsap.

Repo wiring: changeset patch; generated docs/inventories bump binding count to 59; @gsap/react → @octanejs/gsap in CLI octane-data.json; hook-form/audit/react-parity.schema.json no longer requires an adapted-octane vitest lane when upstream runtime/types suites are absent (differential-only parity is enough).

Reviewed by Cursor Bugbot for commit b14dabb. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview Aug 2, 2026 7:06am
octane-website-mcp Ready Ready Preview Aug 2, 2026 7:06am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 16:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 16:43 Inactive
Comment thread package.json Resolved
Comment thread playground/octane/src/demos/GSAP.tsrx Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 16:53 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 16:55 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 17:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 17:03 Inactive
Comment thread packages/gsap/src/index.ts Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 17:07 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 17:09 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 17:13 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 17:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 17:21 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 17:21 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review July 30, 2026 17:31
# Conflicts:
#	package.json
#	packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl
#	website/public/llms.txt
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 19:47 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 19:48 Inactive
Comment thread packages/gsap/src/index.ts Resolved
@leonidaz
leonidaz marked this pull request as draft July 30, 2026 20:18
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 20:22 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 20:22 Inactive
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main, resolved conflicts, and refreshed generated inventory/parity hashes. Bugbot is clean on the current head.

READY FOR REVIEW

jonkwheeler and others added 2 commits August 9, 2026 12:42
Resolve DIRTY currency against main: take main's generated eval
manifest digests and regenerate React parity lockfileSha256 values
for the merged lockfile.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency repaired (merged origin/main; generated digest/lockfile integrity refreshed). No unresolved review threads; Cursor Bugbot completed on current head with no open findings; merge state CLEAN while remaining draft.

READY FOR REVIEW

Resolve inventory conflicts for the inertia landing on main: keep both
gsap and inertia in bindings:typecheck, regenerate lockfile/sync outputs,
and restore gsap in llms.txt.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency fixed (merged origin/main). Checklist green again.

READY FOR REVIEW

@leonidaz
leonidaz marked this pull request as ready for review August 9, 2026 17:03
@jonkwheeler
jonkwheeler marked this pull request as draft August 9, 2026 17:03
@leonidaz
leonidaz marked this pull request as ready for review August 9, 2026 17:06
@jonkwheeler
jonkwheeler marked this pull request as draft August 9, 2026 17:17
@leonidaz
leonidaz marked this pull request as ready for review August 9, 2026 17:21
@jonkwheeler
jonkwheeler marked this pull request as draft August 9, 2026 17:28
@leonidaz
leonidaz marked this pull request as ready for review August 9, 2026 17:29
@jonkwheeler
jonkwheeler marked this pull request as draft August 9, 2026 17:29
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@leonidaz
leonidaz marked this pull request as ready for review August 9, 2026 17:33
@jonkwheeler
jonkwheeler marked this pull request as draft August 9, 2026 17:33
@leonidaz
leonidaz marked this pull request as ready for review August 9, 2026 17:34
@leonidaz
leonidaz merged commit a5900bd into octanejs:main Aug 9, 2026
79 of 114 checks passed
@jonkwheeler
jonkwheeler deleted the jon/gsap-react-binding branch October 20, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat PR: new feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants