Hooks

Run your own code when someone signs up or pays, on a schedule, or behind your own API routes.

What it does

Your own code on events and schedules

  1. Typed functions for 23 events in one file you own, retried for about a day.

  2. Guards that can turn away a sign-up or a new organisation.

  3. Scheduled jobs and your own API routes, checked by role or plan.

  4. Every run in the admin, with its error, Retry now and Replay.

Hooks

How it works

Open it in the demo account and follow the steps.

The demo is a shared read-only account: every screen opens, but nothing you change is saved.

  1. Step 01

    Write a function

    Register a typed function for an event, such as user.signed_up, in the hooks file in your own folder.

  2. Step 02

    Try it locally

    Fire the event at your local database with pnpm hooks:fire, and watch your code run before you deploy.

  3. Step 03

    Watch it run

    Every run is in Admin → Developers, with its attempts, its error, Retry now and Replay.

Ready to build your product on the starter?

Get in touch