We're excited to introduce Pre Hooks, one of the most powerful features we've added to NoCodeBackend.
Pre Hooks let you validate, transform, secure, and control data before it reaches your database — without writing backend code.
Think of it as visual middleware. Simply add steps, configure your logic, and NoCodeBackend runs them automatically before an INSERT, UPDATE, or DELETE operation.
✨ What can you do with Pre Hooks?
With our visual builder, you can:
- Transform Data — lowercase emails, uppercase names, trim text, add timestamps, and more.
- Set Variables — create strings, numbers, booleans, or JSON values for later steps.
- Date & Time — generate or calculate dynamic dates and timestamps.
- Math & UUID — perform calculations or automatically generate UUIDs.
- Crypto Hash — hash values using SHA-256 or MD5 and save the result directly to your record.
- Conditions — build powerful If / Else If / Else logic with AND/OR conditions and nested steps.
- JSON & Text Processing — parse JSON, slugify text, split strings, and find/replace values.
- Validate Data — validate emails, URLs, numbers, or custom regex patterns.
- Rate Limit Requests — limit requests by IP or User ID to prevent spam and abuse.
- DB Query — query your databases during a hook and make decisions based on existing data.
- Reject Requests — stop an operation instantly with your own HTTP status code and error message.
💡 What can you build?
For example, you can create a signup flow that:
Request → Check Rate Limit → Validate Email → Block Gmail Addresses → Transform Name → Hash Sensitive Data → Save to Database
All of this can be built visually — without writing middleware or backend code.
📦 Pre Hooks Limits
Pre Hooks are available across all tiers, with more hooks, steps, and capabilities unlocked as you move up.
🚀 Pre Hooks are available now in your NoCodeBackend dashboard.