Liquidity that
runs your rules.
Hookify is programmable liquidity infrastructure for Solana CLMMs. Compose hooks — dynamic fees, launch gates, anti-MEV, time-locks — into Orca Whirlpools and Raydium CLMM pools. No AMM fork required.
{{ v.d }}
Six hooks, one schema.
Configure → simulate → deploy → monitor.
{{ s.d }}
Simulation before deployment, PDA-derived account constraints, bug bounty and transparent event logs.
security & audits →Governance, premium templates, staking and protocol fee sharing across the hook ecosystem.
tokenomics & governance →Hooks reference.
Each hook registers against CPI lifecycle points and exposes a small parameter set. The same definition installs on both Orca Whirlpools and Raydium CLMM.
{{ h.desc }}
How a hook executes.
From the dashboard to the pool, every layer is verifiable. Hookify is the engine and library; Patcha is the underlying hook primitive; Orca and Raydium are the venues.
Integrations
Hooks trigger on whirlpool swap and liquidity CPIs. Dynamic fees and gating apply per position without touching the core program.
The same hook definitions install against Raydium CLMM pools — one module, two venues, identical parameter schema.
Anchor on-chain executor
Govern the protocol.
$HKFY aligns the people who build, run and rely on hooks.
Roadmap
Secure by construction.
Hookify is infrastructure and tooling. Every hook is simulated, validated and enforced on-chain by a single open-source Anchor program — and users always retain custody and control of deployment decisions.
Security model
Audits & bounty
{{ a.scope }}
Report vulnerabilities to security@hookify.xyz. Hookify provides infrastructure and tooling only; users remain responsible for deployment decisions and associated risks. Smart-contract interactions carry inherent risk — review the docs and audit reports before use.
Build with Hookify.
Hookify is programmable liquidity infrastructure for Solana CLMMs, built on the Patcha hook framework. A hook is a small, composable module that the on-chain executor calls at specific points in a pool's lifecycle — letting you change fees, gate access, dampen MEV or time-lock liquidity without forking the AMM.
These docs cover the full path: install the CLI, scaffold a hook, simulate it against real Orca and Raydium liquidity, then deploy it to a live pool.
Quickstart
From zero to a deployed hook in five commands. Requires Node 18+ and a Solana wallet.
Every command also runs from the dashboard — simulate and deploy share the same hook.toml schema in both places.
Core concepts
Four ideas underpin everything in Hookify.
A module that runs custom logic at a lifecycle point. Reads pool context, returns an override (a fee, an allow/deny, an order).
A CPI entry where the executor is invoked: beforeSwap, afterSwap, beforeAddLiquidity, beforeRemoveLiquidity.
A single Anchor program that enforces installed hooks via PDA-derived accounts. One program, every pool.
The CLMM a hook installs against — Orca Whirlpools or Raydium CLMM. The same definition targets both.
Hook lifecycle
A hook registers against one or more points. The executor calls your handler with the pool context; the return value can modify the action before it settles.
Anatomy of a hook
A hook is a hook.toml manifest plus a handler. The manifest declares identity, target venue and parameters; the handler implements the lifecycle logic.
Parameter schema
Each standard hook exposes a small, typed parameter set. Values are validated against these ranges before deployment.
See the full hooks reference for descriptions and lifecycle points per module.
CLI reference
Install with npm i -g hookify-cli. All commands accept --json and --cluster.
Error codes
The executor returns typed Anchor errors. Handle these in your client.
Simulation & backtest
hookify simulate replays your hook against sampled historical liquidity from the target venue and reports fee APR, performance vs. an unhooked baseline, and volatility capture — before any on-chain transaction.
Backtests are estimates from sampled data, not guarantees. Always review results and start with conservative parameters on mainnet.
Integrations
One hook definition installs against either CLMM. The executor wires into each venue's CPI entry points.
Triggers on whirlpool swap and liquidity CPIs. Applies per position without touching the core program.
Same hook definitions install against Raydium CLMM pools — identical parameter schema.
On-chain executor
A single Anchor program enforces every installed hook. Each install derives a PDA from the pool and hook id, so config and authority are deterministic and verifiable.
Required accounts: pool, hook_config (PDA), authority, and the venue's swap/liquidity accounts passed through by CPI.
Events & monitoring
Every hook invocation emits a structured Anchor event. Index them off-chain to monitor hook performance and pool health.
Security
Hooks are simulated, validated and enforced on-chain by an open-source executor. See the dedicated Security & audits page for the full model, audit status and bug bounty.
- ✓ Simulation & config validation before deployment
- ✓ PDA-derived account constraints & per-pool authority
- ✓ Transparent on-chain event logs
- ✓ Report issues to security@hookify.xyz
FAQ
{{ f.a }}