Skip to main content
For this example, we are using fastify and tsx to run a local server on port 4000. Before running any checks, we need to configure the check extension to point to our local server and set the secret key. For this example, we are using the following values:
  • Endpoint: http://localhost:4000/check-schema
  • Secret key: ...

Setting up the project

First, create a new directory for the project and navigate into it.
Once inside the project directory, initialize the project using your preferred package manager and install the required dependencies.
Finally, create a script in the package.json file to run the project.

Handler implementation

The following example includes the handler implementation, a helper for validating the request signature, and type definitions for the payload and reply.