Welcome to the documentation for @artisanpack-ui/hooks-js — WordPress-style actions and filters for JavaScript, with a first-class React adapter.
This package is the JavaScript counterpart to artisanpack-ui/hooks for PHP. The two share a naming convention (ap.<domain>.<event>, dot-notation lowerCamelCase) and identical semantics for priorities, dedup, and deprecation aliases — so a hook you know from the PHP side behaves the same in the browser.
Use the navigation below to explore topics. Links use the GitLab wiki page style, so you can jump between pages like Getting Started or Actions.
- Getting Started
- Actions
- Filters
- Priorities and Execution Order
- Hook Naming and Deprecations
- React —
useFilter,useAction,useHookedChildren,<HookSlot>, SSR - Module Federation — singleton config,
globalThis.ApHooksescape hatch,bootModule - DevTools Debug
- Migration from wordpress-hooks
- Testing
- FAQ
- Security
- Contributing
- Changelog
Cross-links
- PHP twin package:
artisanpack-ui/hooks— the same primitives for Laravel, with Blade directives and Facades. - Repository: https://github.com/ArtisanPack-UI/hooks-js
- npm:
@artisanpack-ui/hooks-js

